bav335x.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. /*
  2. * bav335x.h
  3. *
  4. * Copyright (c) 2012-2014 Birdland Audio - http://birdland.com/oem
  5. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation version 2.
  10. *
  11. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  12. * kind, whether express or implied; without even the implied warranty
  13. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #ifndef __CONFIG_BAV335X_H
  17. #define __CONFIG_BAV335X_H
  18. #include <configs/ti_am335x_common.h>
  19. #ifndef CONFIG_SPL_BUILD
  20. # define CONFIG_TIMESTAMP
  21. #endif
  22. #define CONFIG_SYS_BOOTM_LEN (16 << 20)
  23. #define CONFIG_MACH_TYPE MACH_TYPE_AM335XEVM
  24. /* Clock Defines */
  25. #define V_OSCK 24000000 /* Clock output from T2 */
  26. #define V_SCLK (V_OSCK)
  27. #ifdef CONFIG_MTD_RAW_NAND
  28. #define NANDARGS \
  29. "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
  30. "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
  31. "nandargs=setenv bootargs console=${console} " \
  32. "${optargs} " \
  33. "root=${nandroot} " \
  34. "rootfstype=${nandrootfstype}\0" \
  35. "nandroot=ubi0:rootfs rw ubi.mtd=9,2048\0" \
  36. "nandrootfstype=ubifs rootwait=1\0" \
  37. "nandboot=echo Booting from nand ...; " \
  38. "run nandargs; " \
  39. "nand read ${fdtaddr} u-boot-spl-os; " \
  40. "nand read ${loadaddr} kernel; " \
  41. "bootz ${loadaddr} - ${fdtaddr}\0"
  42. #else
  43. #define NANDARGS ""
  44. #endif
  45. #ifndef CONFIG_SPL_BUILD
  46. #define CONFIG_EXTRA_ENV_SETTINGS \
  47. DEFAULT_LINUX_BOOT_ENV \
  48. "boot_fdt=try\0" \
  49. "bootpart=0:2\0" \
  50. "bootdir=\0" \
  51. "fdtdir=/dtbs\0" \
  52. "bootfile=zImage\0" \
  53. "fdtfile=undefined\0" \
  54. "console=ttyO0,115200n8\0" \
  55. "loadaddr=0x82000000\0" \
  56. "fdtaddr=0x88000000\0" \
  57. "rdaddr=0x88080000\0" \
  58. "initrd_high=0xffffffff\0" \
  59. "fdt_high=0xffffffff\0" \
  60. "partitions=" \
  61. "uuid_disk=${uuid_gpt_disk};" \
  62. "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \
  63. "optargs=\0" \
  64. "cmdline=\0" \
  65. "mmcdev=0\0" \
  66. "mmcpart=1\0" \
  67. "mmcroot=/dev/mmcblk0p2 ro\0" \
  68. "mmcrootfstype=ext4 rootwait fixrtc\0" \
  69. "rootpath=/export/rootfs\0" \
  70. "nfsopts=nolock\0" \
  71. "static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off\0" \
  72. "ramroot=/dev/ram0 rw\0" \
  73. "ramrootfstype=ext2\0" \
  74. "mmcargs=setenv bootargs console=${console} ${optargs} " \
  75. "root=${mmcroot} rootfstype=${mmcrootfstype} ${cmdline}\0" \
  76. "server_ip=192.168.1.100\0" \
  77. "gw_ip=192.168.1.1\0" \
  78. "netmask=255.255.255.0\0" \
  79. "hostname=\0" \
  80. "device=eth0\0" \
  81. "autoconf=off\0" \
  82. "root_dir=/home/userid/targetNFS\0" \
  83. "nfs_options=,vers=3\0" \
  84. "nfsrootfstype=ext4 rootwait fixrtc\0" \
  85. "nfsargs=setenv bootargs console=${console} ${optargs} " \
  86. "root=/dev/nfs rw rootfstype=${nfsrootfstype} " \
  87. "nfsroot=${nfsroot} ip=${ip} ${cmdline}\0" \
  88. "netargs=setenv bootargs console=${console} " \
  89. "${optargs} root=/dev/nfs " \
  90. "nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp\0" \
  91. "bootenv=uEnv.txt\0" \
  92. "script=boot.scr\0" \
  93. "scriptfile=${script}\0" \
  94. "loadbootscript=load mmc ${bootpart} ${loadaddr} ${scriptfile};\0" \
  95. "bootscript=echo Running bootscript from mmc${bootpart} ...; " \
  96. "source ${loadaddr}\0" \
  97. "loadbootenv=load mmc ${bootpart} ${loadaddr} ${bootenv}\0" \
  98. "importbootenv=echo Importing environment from mmc ...; " \
  99. "env import -t -r $loadaddr $filesize\0" \
  100. "ramargs=setenv bootargs console=${console} " \
  101. "${optargs} root=${ramroot} rootfstype=${ramrootfstype}\0" \
  102. "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
  103. "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  104. "loadrd=load mmc ${bootpart} ${rdaddr} " \
  105. "${bootdir}/${rdfile}; setenv rdsize ${filesize}\0" \
  106. "loadfdt=echo loading ${fdtdir}/${fdtfile} ...; " \
  107. "load mmc ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}\0" \
  108. "mmcboot=mmc dev ${mmcdev}; " \
  109. "if mmc rescan; then " \
  110. "gpio set 54;" \
  111. "setenv bootpart ${mmcdev}:1; " \
  112. "if test -e mmc ${bootpart} /etc/fstab; then " \
  113. "setenv mmcpart 1;" \
  114. "fi; " \
  115. "echo Checking for: /uEnv.txt ...;" \
  116. "if test -e mmc ${bootpart} /uEnv.txt; then " \
  117. "if run loadbootenv; then " \
  118. "gpio set 55;" \
  119. "echo Loaded environment from ${bootenv};" \
  120. "run importbootenv;" \
  121. "fi;" \
  122. "echo Checking if uenvcmd is set ...;" \
  123. "if test -n ${uenvcmd}; then " \
  124. "gpio set 56; " \
  125. "echo Running uenvcmd ...;" \
  126. "run uenvcmd;" \
  127. "fi;" \
  128. "echo Checking if client_ip is set ...;" \
  129. "if test -n ${client_ip}; then " \
  130. "if test -n ${dtb}; then " \
  131. "setenv fdtfile ${dtb};" \
  132. "echo using ${fdtfile} ...;" \
  133. "fi;" \
  134. "gpio set 56; " \
  135. "if test -n ${uname_r}; then " \
  136. "echo Running nfsboot_uname_r ...;" \
  137. "run nfsboot_uname_r;" \
  138. "fi;" \
  139. "echo Running nfsboot ...;" \
  140. "run nfsboot;" \
  141. "fi;" \
  142. "fi; " \
  143. "echo Checking for: /${script} ...;" \
  144. "if test -e mmc ${bootpart} /${script}; then " \
  145. "gpio set 55;" \
  146. "setenv scriptfile ${script};" \
  147. "run loadbootscript;" \
  148. "echo Loaded script from ${scriptfile};" \
  149. "gpio set 56; " \
  150. "run bootscript;" \
  151. "fi; " \
  152. "echo Checking for: /boot/${script} ...;" \
  153. "if test -e mmc ${bootpart} /boot/${script}; then " \
  154. "gpio set 55;" \
  155. "setenv scriptfile /boot/${script};" \
  156. "run loadbootscript;" \
  157. "echo Loaded script from ${scriptfile};" \
  158. "gpio set 56; " \
  159. "run bootscript;" \
  160. "fi; " \
  161. "echo Checking for: /boot/uEnv.txt ...;" \
  162. "for i in 1 2 3 4 5 6 7 ; do " \
  163. "setenv mmcpart ${i};" \
  164. "setenv bootpart ${mmcdev}:${mmcpart};" \
  165. "if test -e mmc ${bootpart} /boot/uEnv.txt; then " \
  166. "gpio set 55;" \
  167. "load mmc ${bootpart} ${loadaddr} " \
  168. "/boot/uEnv.txt;" \
  169. "env import -t ${loadaddr} ${filesize};" \
  170. "echo Loaded environment from /boot/uEnv.txt;" \
  171. "if test -n ${dtb}; then " \
  172. "setenv fdtfile ${dtb};" \
  173. "echo Using: dtb=${fdtfile} ...;" \
  174. "fi;" \
  175. "echo Checking if uname_r is set in " \
  176. "/boot/uEnv.txt...;" \
  177. "if test -n ${uname_r}; then " \
  178. "gpio set 56; " \
  179. "echo Running uname_boot ...;" \
  180. "setenv mmcroot /dev/mmcblk${mmcdev}" \
  181. "p${mmcpart} ro;" \
  182. "run uname_boot;" \
  183. "fi;" \
  184. "fi;" \
  185. "done;" \
  186. "fi;\0" \
  187. "netboot=echo Booting from network ...; " \
  188. "setenv autoload no; " \
  189. "dhcp; " \
  190. "tftp ${loadaddr} ${bootfile}; " \
  191. "tftp ${fdtaddr} ${fdtfile}; " \
  192. "run netargs; " \
  193. "bootz ${loadaddr} - ${fdtaddr}\0" \
  194. "nfsboot=echo Booting from ${server_ip} ...; " \
  195. "setenv nfsroot ${server_ip}:${root_dir}${nfs_options}; " \
  196. "setenv ip ${client_ip}:${server_ip}:${gw_ip}:${netmask}:${hostname}" \
  197. ":${device}:${autoconf}; " \
  198. "setenv autoload no; " \
  199. "setenv serverip ${server_ip}; " \
  200. "setenv ipaddr ${client_ip}; " \
  201. "tftp ${loadaddr} ${bootfile}; " \
  202. "tftp ${fdtaddr} dtbs/${fdtfile}; " \
  203. "run nfsargs; " \
  204. "bootz ${loadaddr} - ${fdtaddr}\0" \
  205. "nfsboot_uname_r=echo Booting from ${server_ip} ...; " \
  206. "setenv nfsroot ${server_ip}:${root_dir}${nfs_options}; " \
  207. "setenv ip ${client_ip}:${server_ip}:${gw_ip}:${netmask}:${hostname}" \
  208. ":${device}:${autoconf}; " \
  209. "setenv autoload no; " \
  210. "setenv serverip ${server_ip}; " \
  211. "setenv ipaddr ${client_ip}; " \
  212. "tftp ${loadaddr} vmlinuz-${uname_r}; " \
  213. "tftp ${fdtaddr} dtbs/${uname_r}/${fdtfile}; " \
  214. "run nfsargs; " \
  215. "bootz ${loadaddr} - ${fdtaddr}\0" \
  216. "ramboot=echo Booting from ramdisk ...; " \
  217. "run ramargs; " \
  218. "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
  219. "findfdt="\
  220. "if test $board_rev = B; then " \
  221. "setenv fdtfile birdland_bav335b.dtb; " \
  222. "setenv fdtbase am335x-boneblack; fi; " \
  223. "if test $board_rev = A; then " \
  224. "setenv fdtfile birdland_bav335a.dtb; " \
  225. "setenv fdtbase am335x-boneblack; fi; " \
  226. "if test $fdtfile = undefined; then " \
  227. "echo WARNING: Could not determine device tree to use; fi; \0" \
  228. "uname_boot="\
  229. "setenv bootdir /boot; " \
  230. "setenv bootfile vmlinuz-${uname_r}; " \
  231. "if test -e mmc ${bootpart} ${bootdir}/${bootfile}; then " \
  232. "echo loading ${bootdir}/${bootfile} ...; "\
  233. "run loadimage;" \
  234. "setenv fdtdir /boot/dtbs/${uname_r}; " \
  235. "if test -e mmc ${bootpart} ${fdtdir}/${fdtfile}; then " \
  236. "run loadfdt;" \
  237. "else " \
  238. "setenv fdtdir /lib/firmware/${uname_r}/device-tree; " \
  239. "if test -e mmc ${bootpart} ${fdtdir}/" \
  240. "${fdtfile}; then " \
  241. "run loadfdt;" \
  242. "else " \
  243. "setenv fdtdir /boot/dtb-${uname_r}; " \
  244. "if test -e mmc ${bootpart} ${fdtdir}" \
  245. "/${fdtfile}; then " \
  246. "run loadfdt;" \
  247. "else " \
  248. "setenv fdtdir /boot/dtbs; " \
  249. "if test -e mmc ${bootpart} ${fdtdir}" \
  250. "/${fdtfile}; then " \
  251. "run loadfdt;" \
  252. "else " \
  253. "echo; echo unable to find " \
  254. "[${fdtfile}] " \
  255. "did you name it correctly?" \
  256. "echo booting fallback " \
  257. "[/boot/dtbs/" \
  258. "${uname_r}" \
  259. "/${fdtbase}.dtb]...;" \
  260. "setenv fdtdir /boot/dtbs/" \
  261. "${uname_r}; " \
  262. "setenv fdtfile " \
  263. "${fdtbase}.dtb; " \
  264. "run loadfdt;" \
  265. "fi;" \
  266. "fi;" \
  267. "fi;" \
  268. "fi;" \
  269. "fi; " \
  270. "setenv rdfile initrd.img-${uname_r}; " \
  271. "if test -e mmc ${bootpart} ${bootdir}/${rdfile}; then " \
  272. "echo loading ${bootdir}/${rdfile} ...; "\
  273. "run loadrd;" \
  274. "if test -n ${uuid}; then " \
  275. "setenv mmcroot UUID=${uuid} ro;" \
  276. "fi;" \
  277. "run mmcargs;" \
  278. "echo debug: [${bootargs}] ... ;" \
  279. "echo debug: [bootz ${loadaddr} ${rdaddr}:${rdsize} " \
  280. "${fdtaddr}] ... ;" \
  281. "bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}; " \
  282. "else " \
  283. "run mmcargs;" \
  284. "echo debug: [${bootargs}] ... ;" \
  285. "echo debug: [bootz ${loadaddr} - ${fdtaddr}] ... ;" \
  286. "bootz ${loadaddr} - ${fdtaddr}; " \
  287. "fi;" \
  288. "fi;\0" \
  289. NANDARGS \
  290. DFUARGS
  291. #endif
  292. #define CONFIG_BOOTCOMMAND \
  293. "gpio set 53; " \
  294. "i2c mw 0x24 1 0x3e; " \
  295. "run findfdt; " \
  296. "setenv mmcdev 0; " \
  297. "setenv bootpart 0:1; " \
  298. "run mmcboot;" \
  299. "gpio clear 56; " \
  300. "gpio clear 55; " \
  301. "gpio clear 54; " \
  302. "setenv mmcdev 1; " \
  303. "setenv bootpart 1:1; " \
  304. "run mmcboot;"
  305. /* NS16550 Configuration */
  306. #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* UART0 */
  307. #define CONFIG_SYS_NS16550_COM2 0x48022000 /* UART1 */
  308. #define CONFIG_SYS_NS16550_COM3 0x48024000 /* UART2 */
  309. #define CONFIG_SYS_NS16550_COM4 0x481a6000 /* UART3 */
  310. #define CONFIG_SYS_NS16550_COM5 0x481a8000 /* UART4 */
  311. #define CONFIG_SYS_NS16550_COM6 0x481aa000 /* UART5 */
  312. #define CONFIG_ENV_EEPROM_IS_ON_I2C
  313. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* Main EEPROM */
  314. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
  315. /* PMIC support */
  316. #define CONFIG_POWER_TPS65217
  317. #define CONFIG_POWER_TPS65910
  318. /* SPL */
  319. #ifndef CONFIG_NOR_BOOT
  320. /* Bootcount using the RTC block */
  321. #define CONFIG_SYS_BOOTCOUNT_BE
  322. /* USB gadget RNDIS */
  323. #endif
  324. #ifdef CONFIG_MTD_RAW_NAND
  325. /* NAND: device related configs */
  326. #define CONFIG_SYS_NAND_5_ADDR_CYCLE
  327. #define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \
  328. CONFIG_SYS_NAND_PAGE_SIZE)
  329. #define CONFIG_SYS_NAND_PAGE_SIZE 2048
  330. #define CONFIG_SYS_NAND_OOBSIZE 64
  331. #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
  332. /* NAND: driver related configs */
  333. #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS
  334. #define CONFIG_SYS_NAND_ECCPOS { \
  335. 2, 3, 4, 5, 6, 7, 8, 9, \
  336. 10, 11, 12, 13, 14, 15, 16, 17, \
  337. 18, 19, 20, 21, 22, 23, 24, 25, \
  338. 26, 27, 28, 29, 30, 31, 32, 33, \
  339. 34, 35, 36, 37, 38, 39, 40, 41, \
  340. 42, 43, 44, 45, 46, 47, 48, 49, \
  341. 50, 51, 52, 53, 54, 55, 56, 57, }
  342. #define CONFIG_SYS_NAND_ECCSIZE 512
  343. #define CONFIG_SYS_NAND_ECCBYTES 14
  344. #define CONFIG_SYS_NAND_ONFI_DETECTION
  345. #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW
  346. #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x000c0000
  347. #define CONFIG_SYS_ENV_SECT_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
  348. /* NAND: SPL related configs */
  349. #ifdef CONFIG_SPL_OS_BOOT
  350. #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
  351. #endif
  352. #endif /* !CONFIG_MTD_RAW_NAND */
  353. /*
  354. * For NOR boot, we must set this to the start of where NOR is mapped
  355. * in memory.
  356. */
  357. /*
  358. * USB configuration. We enable MUSB support, both for host and for
  359. * gadget. We set USB0 as peripheral and USB1 as host, based on the
  360. * board schematic and physical port wired to each. Then for host we
  361. * add mass storage support and for gadget we add both RNDIS ethernet
  362. * and DFU.
  363. */
  364. #define CONFIG_AM335X_USB0
  365. #define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL
  366. #define CONFIG_AM335X_USB1
  367. #define CONFIG_AM335X_USB1_MODE MUSB_HOST
  368. #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USB_ETHER)
  369. /* disable host part of MUSB in SPL */
  370. /* disable EFI partitions and partition UUID support */
  371. #endif
  372. /* USB Device Firmware Update support */
  373. #ifndef CONFIG_SPL_BUILD
  374. #define DFU_ALT_INFO_MMC \
  375. "dfu_alt_info_mmc=" \
  376. "boot part 0 1;" \
  377. "rootfs part 0 2;" \
  378. "MLO fat 0 1;" \
  379. "MLO.raw raw 0x100 0x100;" \
  380. "u-boot.img.raw raw 0x300 0x400;" \
  381. "spl-os-args.raw raw 0x80 0x80;" \
  382. "spl-os-image.raw raw 0x900 0x2000;" \
  383. "spl-os-args fat 0 1;" \
  384. "spl-os-image fat 0 1;" \
  385. "u-boot.img fat 0 1;" \
  386. "uEnv.txt fat 0 1\0"
  387. #ifdef CONFIG_MTD_RAW_NAND
  388. #define DFU_ALT_INFO_NAND \
  389. "dfu_alt_info_nand=" \
  390. "SPL part 0 1;" \
  391. "SPL.backup1 part 0 2;" \
  392. "SPL.backup2 part 0 3;" \
  393. "SPL.backup3 part 0 4;" \
  394. "u-boot part 0 5;" \
  395. "u-boot-spl-os part 0 6;" \
  396. "kernel part 0 8;" \
  397. "rootfs part 0 9\0"
  398. #else
  399. #define DFU_ALT_INFO_NAND ""
  400. #endif
  401. #define DFU_ALT_INFO_RAM \
  402. "dfu_alt_info_ram=" \
  403. "kernel ram 0x80200000 0xD80000;" \
  404. "fdt ram 0x80F80000 0x80000;" \
  405. "ramdisk ram 0x81000000 0x4000000\0"
  406. #define DFUARGS \
  407. "dfu_alt_info_emmc=rawemmc raw 0 3751936\0" \
  408. DFU_ALT_INFO_MMC \
  409. DFU_ALT_INFO_RAM \
  410. DFU_ALT_INFO_NAND
  411. #endif
  412. /*
  413. * Default to using SPI for environment, etc.
  414. * 0x000000 - 0x020000 : SPL (128KiB)
  415. * 0x020000 - 0x0A0000 : U-Boot (512KiB)
  416. * 0x0A0000 - 0x0BFFFF : First copy of U-Boot Environment (128KiB)
  417. * 0x0C0000 - 0x0DFFFF : Second copy of U-Boot Environment (128KiB)
  418. * 0x0E0000 - 0x442000 : Linux Kernel
  419. * 0x442000 - 0x800000 : Userland
  420. */
  421. #if defined(CONFIG_SPI_BOOT)
  422. /* SPL related */
  423. #elif defined(CONFIG_EMMC_BOOT)
  424. #define CONFIG_SYS_MMC_ENV_DEV 1
  425. #define CONFIG_SYS_MMC_ENV_PART 2
  426. #endif
  427. /* SPI flash. */
  428. /* Network. */
  429. #define CONFIG_PHY_SMSC
  430. /*
  431. * NOR Size = 16 MiB
  432. * Number of Sectors/Blocks = 128
  433. * Sector Size = 128 KiB
  434. * Word length = 16 bits
  435. * Default layout:
  436. * 0x000000 - 0x07FFFF : U-Boot (512 KiB)
  437. * 0x080000 - 0x09FFFF : First copy of U-Boot Environment (128 KiB)
  438. * 0x0A0000 - 0x0BFFFF : Second copy of U-Boot Environment (128 KiB)
  439. * 0x0C0000 - 0x4BFFFF : Linux Kernel (4 MiB)
  440. * 0x4C0000 - 0xFFFFFF : Userland (11 MiB + 256 KiB)
  441. */
  442. #if defined(CONFIG_NOR)
  443. #define CONFIG_SYS_MAX_FLASH_SECT 128
  444. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  445. #define CONFIG_SYS_FLASH_BASE (0x08000000)
  446. #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
  447. #define CONFIG_SYS_FLASH_SIZE 0x01000000
  448. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
  449. /* Reduce SPL size by removing unlikey targets */
  450. #endif /* NOR support */
  451. #endif /* ! __CONFIG_AM335X_EVM_H */