am335x_evm_20180323.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. /*
  2. * am335x_evm.h
  3. *
  4. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation version 2.
  9. *
  10. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  11. * kind, whether express or implied; without even the implied warranty
  12. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef __CONFIG_AM335X_EVM_H
  16. #define __CONFIG_AM335X_EVM_H
  17. #include <configs/ti_am335x_common.h>
  18. #ifndef CONFIG_SPL_BUILD
  19. # define CONFIG_TIMESTAMP
  20. # define CONFIG_LZO
  21. #endif
  22. #define CONFIG_SYS_BOOTM_LEN (16 << 20)
  23. #define MACH_TYPE_TIAM335EVM 3589 /* Until the next sync */
  24. #define CONFIG_MACH_TYPE MACH_TYPE_TIAM335EVM
  25. #define CONFIG_BOARD_LATE_INIT
  26. /* Clock Defines */
  27. #define V_OSCK 24000000 /* Clock output from T2 */
  28. #define V_SCLK (V_OSCK)
  29. /* Custom script for NOR */
  30. #define CONFIG_SYS_LDSCRIPT "board/ti/am335x/u-boot.lds"
  31. /* Always 128 KiB env size */
  32. #define CONFIG_ENV_SIZE (512 << 10)//(128 << 10)/*++++ vern,set up environment,20161127 ---*/
  33. /* Enhance our eMMC support / experience. */
  34. #define CONFIG_CMD_GPT
  35. #define CONFIG_EFI_PARTITION
  36. #ifdef CONFIG_NAND
  37. /*++++ vern,set up environment,20161127 +++*/
  38. #define CONFIG_ENV_IS_IN_NAND 1/*++++ vern,set up environment,20161127 ---*/
  39. #define NANDARGS \
  40. "bootargs=console=ttyS0,115200n8 mem=512M root=/dev/ram0 rw initrd=0x81000000,64M ramdisk_size=67108864\0" \
  41. "ipaddr=192.168.1.10\0" \
  42. "serverip=192.168.1.1\0" \
  43. "gatewayip=192.168.1.1\0" \
  44. "netmask=255.255.255.0\0" \
  45. "nandboot=" \
  46. "nand read 0x80F80000 0x00200000 0x00080000;" \
  47. "nand read 0x80200000 0x00280000 0x00A00000;" \
  48. "nand read 0x81000000 0x00C80000 0x00A00000;" \
  49. "bootz 0x80200000 - 0x80F80000\0"
  50. /*#define NANDARGS \
  51. "mtdids=" MTDIDS_DEFAULT "\0" \
  52. "mtdparts=" MTDPARTS_DEFAULT "\0" \
  53. "nandargs=setenv bootargs console=${console} " \
  54. "${optargs} " \
  55. "root=${nandroot} " \
  56. "rootfstype=${nandrootfstype}\0" \
  57. "nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048\0" \
  58. "nandrootfstype=ubifs rootwait=1\0" \
  59. "nandboot=echo Booting from nand ...; " \
  60. "run nandargs; " \
  61. "nand read ${fdtaddr} NAND.u-boot-spl-os; " \
  62. "nand read ${loadaddr} NAND.kernel; " \
  63. "bootz ${loadaddr} - ${fdtaddr}\0"
  64. */
  65. /*--- vern,set up environment,20161127 ---*/
  66. #else
  67. #define NANDARGS ""
  68. #endif
  69. #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
  70. #define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
  71. "bootcmd_" #devtypel #instance "=" \
  72. "setenv mmcdev " #instance"; "\
  73. "setenv bootpart " #instance":2 ; "\
  74. "run mmcboot\0"
  75. #define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \
  76. #devtypel #instance " "
  77. #define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
  78. "bootcmd_" #devtypel "=" \
  79. "run nandboot\0"
  80. #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
  81. #devtypel #instance " "
  82. #define BOOT_TARGET_DEVICES(func) \
  83. func(MMC, mmc, 0) \
  84. func(LEGACY_MMC, legacy_mmc, 0) \
  85. func(MMC, mmc, 1) \
  86. func(LEGACY_MMC, legacy_mmc, 1) \
  87. func(NAND, nand, 0) \
  88. func(PXE, pxe, na) \
  89. func(DHCP, dhcp, na)
  90. /*++++ vern,set up environment,20161127 +++*/
  91. #define CONFIG_BOOTCOMMAND "run nandboot;"
  92. /*
  93. #define CONFIG_BOOTCOMMAND \
  94. "if test ${boot_fit} -eq 1; then " \
  95. "run update_to_fit;" \
  96. "fi;" \
  97. "run findfdt; " \
  98. "run init_console; " \
  99. "run envboot; " \
  100. "run distro_bootcmd"
  101. */
  102. /*--- vern,set up environment,20161127 ---*/
  103. #include <config_distro_bootcmd.h>
  104. #ifndef CONFIG_SPL_BUILD
  105. /*++++ vern,set up environment,20161127 +++*/
  106. #define CONFIG_EXTRA_ENV_SETTINGS NANDARGS
  107. /*
  108. #include <environment/ti/dfu.h>
  109. #include <environment/ti/mmc.h>
  110. #define CONFIG_EXTRA_ENV_SETTINGS \
  111. DEFAULT_LINUX_BOOT_ENV \
  112. DEFAULT_MMC_TI_ARGS \
  113. DEFAULT_FIT_TI_ARGS \
  114. "bootpart=0:2\0" \
  115. "bootdir=/boot\0" \
  116. "bootfile=zImage\0" \
  117. "fdtfile=undefined\0" \
  118. "console=ttyO0,115200n8\0" \
  119. "partitions=" \
  120. "uuid_disk=${uuid_gpt_disk};" \
  121. "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \
  122. "optargs=\0" \
  123. "ramroot=/dev/ram0 rw\0" \
  124. "ramrootfstype=ext2\0" \
  125. "spiroot=/dev/mtdblock4 rw\0" \
  126. "spirootfstype=jffs2\0" \
  127. "spisrcaddr=0xe0000\0" \
  128. "spiimgsize=0x362000\0" \
  129. "spibusno=0\0" \
  130. "spiargs=setenv bootargs console=${console} " \
  131. "${optargs} " \
  132. "root=${spiroot} " \
  133. "rootfstype=${spirootfstype}\0" \
  134. "ramargs=setenv bootargs console=${console} " \
  135. "${optargs} " \
  136. "root=${ramroot} " \
  137. "rootfstype=${ramrootfstype}\0" \
  138. "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
  139. "spiboot=echo Booting from spi ...; " \
  140. "run spiargs; " \
  141. "sf probe ${spibusno}:0; " \
  142. "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \
  143. "bootz ${loadaddr}\0" \
  144. "ramboot=echo Booting from ramdisk ...; " \
  145. "run ramargs; " \
  146. "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
  147. "findfdt="\
  148. "if test $board_name = A335BONE; then " \
  149. "setenv fdtfile am335x-bone.dtb; fi; " \
  150. "if test $board_name = A335BNLT; then " \
  151. "setenv fdtfile am335x-boneblack.dtb; fi; " \
  152. "if test $board_name = BBG1; then " \
  153. "setenv fdtfile am335x-bonegreen.dtb; fi; " \
  154. "if test $board_name = A33515BB; then " \
  155. "setenv fdtfile am335x-evm.dtb; fi; " \
  156. "if test $board_name = A335X_SK; then " \
  157. "setenv fdtfile am335x-evmsk.dtb; fi; " \
  158. "if test $board_name = A335_ICE; then " \
  159. "setenv fdtfile am335x-icev2.dtb; fi; " \
  160. "if test $fdtfile = undefined; then " \
  161. "echo WARNING: Could not determine device tree to use; fi; \0" \
  162. "init_console=" \
  163. "if test $board_name = A335_ICE; then "\
  164. "setenv console ttyO3,115200n8;" \
  165. "else " \
  166. "setenv console ttyO0,115200n8;" \
  167. "fi;\0" \
  168. NANDARGS \
  169. NETARGS \
  170. DFUARGS \
  171. BOOTENV
  172. */
  173. /*--- vern,set up environment,20161127 ---*/
  174. #endif
  175. /* NS16550 Configuration */
  176. #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has UART0 */
  177. #define CONFIG_SYS_NS16550_COM2 0x48022000 /* UART1 */
  178. #define CONFIG_SYS_NS16550_COM3 0x48024000 /* UART2 */
  179. #define CONFIG_SYS_NS16550_COM4 0x481a6000 /* UART3 */
  180. #define CONFIG_SYS_NS16550_COM5 0x481a8000 /* UART4 */
  181. #define CONFIG_SYS_NS16550_COM6 0x481aa000 /* UART5 */
  182. #define CONFIG_BAUDRATE 115200
  183. #define CONFIG_CMD_EEPROM
  184. #define CONFIG_ENV_EEPROM_IS_ON_I2C
  185. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* Main EEPROM */
  186. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
  187. /* PMIC support */
  188. #define CONFIG_POWER_TPS65217
  189. #define CONFIG_POWER_TPS65910
  190. /* SPL */
  191. #ifndef CONFIG_NOR_BOOT
  192. /* Bootcount using the RTC block */
  193. #define CONFIG_BOOTCOUNT_LIMIT
  194. #define CONFIG_BOOTCOUNT_AM33XX
  195. #define CONFIG_SYS_BOOTCOUNT_BE
  196. /* USB gadget RNDIS */
  197. #define CONFIG_SPL_LDSCRIPT "arch/arm/mach-omap2/u-boot-spl.lds"
  198. #endif
  199. #ifdef CONFIG_NAND
  200. /* NAND: device related configs */
  201. #define CONFIG_SYS_NAND_5_ADDR_CYCLE
  202. #define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \
  203. CONFIG_SYS_NAND_PAGE_SIZE)
  204. #define CONFIG_SYS_NAND_PAGE_SIZE 4096//2048 /*++++ vern,NAND,20161127 ---*/
  205. #define CONFIG_SYS_NAND_OOBSIZE 224//64 /*++++ vern,NAND,20161127 ---*/
  206. #define CONFIG_SYS_NAND_BLOCK_SIZE (64*4096)//(128*1024)/*++++ vern,NAND,20161127 ---*/
  207. /* NAND: driver related configs */
  208. #define CONFIG_NAND_OMAP_GPMC
  209. #define CONFIG_NAND_OMAP_GPMC_PREFETCH
  210. #define CONFIG_NAND_OMAP_ELM
  211. #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS
  212. /*++++ vern,NAND,20161127 +++*/
  213. /*每512 Bytes 的page size需加上14 Bytes
  214. 所以4096 page size 需加上 (4096/512)*14=112 Bytes
  215. */
  216. #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, \
  217. 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, \
  218. 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, \
  219. 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, \
  220. 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, \
  221. 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, \
  222. 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, \
  223. 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, \
  224. 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, \
  225. 110, 111, 112, 113 }
  226. /*#define CONFIG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \
  227. 10, 11, 12, 13, 14, 15, 16, 17, \
  228. 18, 19, 20, 21, 22, 23, 24, 25, \
  229. 26, 27, 28, 29, 30, 31, 32, 33, \
  230. 34, 35, 36, 37, 38, 39, 40, 41, \
  231. 42, 43, 44, 45, 46, 47, 48, 49, \
  232. 50, 51, 52, 53, 54, 55, 56, 57, }
  233. */
  234. #define CONFIG_SYS_NAND_ECCSIZE 512 /*每512 Bytes 的page size需加上14 Bytes*/
  235. #define CONFIG_SYS_NAND_ECCBYTES 14 /*每512 Bytes 的page size需加上14 Bytes*/
  236. /*--- vern,NAND,20161127 ---*/
  237. #define CONFIG_SYS_NAND_ONFI_DETECTION
  238. #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW
  239. #define MTDIDS_DEFAULT "nand0=nand.0"
  240. /*++++ vern,set up environment,20161127 +++*/
  241. /*#define MTDPARTS_DEFAULT "mtdparts=nand.0:" \
  242. "128k(NAND.SPL)," \
  243. "128k(NAND.SPL.backup1)," \
  244. "128k(NAND.SPL.backup2)," \
  245. "128k(NAND.SPL.backup3)," \
  246. "256k(NAND.u-boot-spl-os)," \
  247. "1m(NAND.u-boot)," \
  248. "128k(NAND.u-boot-env)," \
  249. "128k(NAND.u-boot-env.backup1)," \
  250. "8m(NAND.kernel)," \
  251. "-(NAND.file-system)"
  252. */
  253. /*#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x000c0000*/
  254. #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x00080000
  255. /*--- vern,set up environment,20161127 ---*/
  256. /* NAND: SPL related configs */
  257. #ifdef CONFIG_SPL_NAND_SUPPORT
  258. #define CONFIG_SPL_NAND_AM33XX_BCH
  259. #endif
  260. #ifdef CONFIG_SPL_OS_BOOT
  261. /*++++ vern,set up environment,20161127 +++*/
  262. /*#define CONFIG_CMD_SPL_NAND_OFS 0x00080000 *//* os parameters */
  263. #define CONFIG_CMD_SPL_NAND_OFS 0x00200000 /* os parameters */
  264. /*#define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 *//* kernel offset */
  265. #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00280000 /* kernel offset */
  266. /*--- vern,set up environment,20161127 ---*/
  267. #define CONFIG_CMD_SPL_WRITE_SIZE 0x2000
  268. #endif
  269. #endif /* !CONFIG_NAND */
  270. /*
  271. * For NOR boot, we must set this to the start of where NOR is mapped
  272. * in memory.
  273. */
  274. #ifdef CONFIG_NOR_BOOT
  275. #define CONFIG_SYS_TEXT_BASE 0x08000000
  276. #endif
  277. /*
  278. * USB configuration. We enable MUSB support, both for host and for
  279. * gadget. We set USB0 as peripheral and USB1 as host, based on the
  280. * board schematic and physical port wired to each. Then for host we
  281. * add mass storage support and for gadget we add both RNDIS ethernet
  282. * and DFU.
  283. */
  284. #define CONFIG_USB_MUSB_DSPS
  285. #define CONFIG_ARCH_MISC_INIT
  286. #define CONFIG_USB_MUSB_PIO_ONLY
  287. #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
  288. #define CONFIG_AM335X_USB0
  289. #define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL
  290. #define CONFIG_AM335X_USB1
  291. #define CONFIG_AM335X_USB1_MODE MUSB_HOST
  292. #ifndef CONFIG_SPL_USBETH_SUPPORT
  293. /* Fastboot */
  294. #define CONFIG_USB_FUNCTION_FASTBOOT
  295. #define CONFIG_CMD_FASTBOOT
  296. #define CONFIG_ANDROID_BOOT_IMAGE
  297. #define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR
  298. #define CONFIG_FASTBOOT_BUF_SIZE 0x07000000
  299. #define CONFIG_FASTBOOT_FLASH_MMC_DEV 1
  300. #endif
  301. #ifdef CONFIG_USB_MUSB_GADGET
  302. #define CONFIG_USB_ETHER
  303. #define CONFIG_USB_ETH_RNDIS
  304. #define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00"
  305. #endif /* CONFIG_USB_MUSB_GADGET */
  306. /*
  307. * Disable MMC DM for SPL build and can be re-enabled after adding
  308. * DM support in SPL
  309. */
  310. #ifdef CONFIG_SPL_BUILD
  311. #undef CONFIG_DM_MMC
  312. #undef CONFIG_TIMER
  313. #undef CONFIG_DM_USB
  314. #undef CONFIG_DM_NAND
  315. #endif
  316. #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT)
  317. /* disable host part of MUSB in SPL */
  318. /* disable EFI partitions and partition UUID support */
  319. #undef CONFIG_PARTITION_UUIDS
  320. #undef CONFIG_EFI_PARTITION
  321. #endif
  322. /* USB Device Firmware Update support */
  323. #ifndef CONFIG_SPL_BUILD
  324. #define DFUARGS \
  325. "dfu_alt_info_emmc=rawemmc raw 0 3751936\0" \
  326. DFU_ALT_INFO_MMC \
  327. DFU_ALT_INFO_RAM \
  328. DFU_ALT_INFO_NAND
  329. #endif
  330. /*
  331. * Default to using SPI for environment, etc.
  332. * 0x000000 - 0x020000 : SPL (128KiB)
  333. * 0x020000 - 0x0A0000 : U-Boot (512KiB)
  334. * 0x0A0000 - 0x0BFFFF : First copy of U-Boot Environment (128KiB)
  335. * 0x0C0000 - 0x0DFFFF : Second copy of U-Boot Environment (128KiB)
  336. * 0x0E0000 - 0x442000 : Linux Kernel
  337. * 0x442000 - 0x800000 : Userland
  338. */
  339. #if defined(CONFIG_SPI_BOOT)
  340. /* SPL related */
  341. #define CONFIG_SPL_SPI_LOAD
  342. #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
  343. #define CONFIG_ENV_IS_IN_SPI_FLASH
  344. #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
  345. #define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
  346. #define CONFIG_ENV_SECT_SIZE (4 << 10) /* 4 KB sectors */
  347. #define CONFIG_ENV_OFFSET (768 << 10) /* 768 KiB in */
  348. #define CONFIG_ENV_OFFSET_REDUND (896 << 10) /* 896 KiB in */
  349. #define MTDIDS_DEFAULT "nor0=m25p80-flash.0"
  350. #define MTDPARTS_DEFAULT "mtdparts=m25p80-flash.0:128k(SPL)," \
  351. "512k(u-boot),128k(u-boot-env1)," \
  352. "128k(u-boot-env2),3464k(kernel)," \
  353. "-(rootfs)"
  354. #elif defined(CONFIG_EMMC_BOOT)
  355. #define CONFIG_ENV_IS_IN_MMC
  356. #define CONFIG_SYS_MMC_ENV_DEV 1
  357. #define CONFIG_SYS_MMC_ENV_PART 2
  358. #define CONFIG_ENV_OFFSET 0x0
  359. #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
  360. #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
  361. #elif defined(CONFIG_NOR_BOOT)
  362. #define CONFIG_ENV_IS_IN_FLASH
  363. #define CONFIG_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
  364. #define CONFIG_ENV_OFFSET (512 << 10) /* 512 KiB */
  365. #define CONFIG_ENV_OFFSET_REDUND (768 << 10) /* 768 KiB */
  366. #define MTDIDS_DEFAULT "nor0=physmap-flash.0"
  367. #define MTDPARTS_DEFAULT "mtdparts=physmap-flash.0:" \
  368. "512k(u-boot)," \
  369. "128k(u-boot-env1)," \
  370. "128k(u-boot-env2)," \
  371. "4m(kernel),-(rootfs)"
  372. #elif defined(CONFIG_ENV_IS_IN_NAND)
  373. /*++++ vern,set up environment,20161127 +++*/
  374. /*#define CONFIG_ENV_OFFSET 0x001c0000*/
  375. #define CONFIG_ENV_OFFSET 0x00180000
  376. /*#define CONFIG_ENV_OFFSET_REDUND 0x001e0000*/
  377. /*--- vern,set up environment,20161127 ---*/
  378. #define CONFIG_SYS_ENV_SECT_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
  379. #elif !defined(CONFIG_ENV_IS_NOWHERE)
  380. /* Not NAND, SPI, NOR or eMMC env, so put ENV in a file on FAT */
  381. //#define CONFIG_ENV_IS_IN_FAT /*++++ vern,set up environment,20161127 ---*/
  382. #define FAT_ENV_INTERFACE "mmc"
  383. #define FAT_ENV_DEVICE_AND_PART "0:1"
  384. #define FAT_ENV_FILE "uboot.env"
  385. #endif
  386. /* SPI flash. */
  387. #define CONFIG_SF_DEFAULT_SPEED 24000000
  388. /* Network. */
  389. #define CONFIG_PHY_GIGE
  390. #define CONFIG_PHYLIB
  391. #define CONFIG_PHY_SMSC
  392. /* Enable Atheros phy driver */
  393. #define CONFIG_PHY_ATHEROS
  394. /*
  395. * NOR Size = 16 MiB
  396. * Number of Sectors/Blocks = 128
  397. * Sector Size = 128 KiB
  398. * Word length = 16 bits
  399. * Default layout:
  400. * 0x000000 - 0x07FFFF : U-Boot (512 KiB)
  401. * 0x080000 - 0x09FFFF : First copy of U-Boot Environment (128 KiB)
  402. * 0x0A0000 - 0x0BFFFF : Second copy of U-Boot Environment (128 KiB)
  403. * 0x0C0000 - 0x4BFFFF : Linux Kernel (4 MiB)
  404. * 0x4C0000 - 0xFFFFFF : Userland (11 MiB + 256 KiB)
  405. */
  406. #if defined(CONFIG_NOR)
  407. #undef CONFIG_SYS_NO_FLASH
  408. #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
  409. #define CONFIG_SYS_FLASH_PROTECTION
  410. #define CONFIG_SYS_FLASH_CFI
  411. #define CONFIG_FLASH_CFI_DRIVER
  412. #define CONFIG_FLASH_CFI_MTD
  413. #define CONFIG_SYS_MAX_FLASH_SECT 128
  414. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  415. #define CONFIG_SYS_FLASH_BASE (0x08000000)
  416. #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
  417. #define CONFIG_SYS_FLASH_SIZE 0x01000000
  418. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
  419. #endif /* NOR support */
  420. #ifdef CONFIG_DRIVER_TI_CPSW
  421. #define CONFIG_CLOCK_SYNTHESIZER
  422. #define CLK_SYNTHESIZER_I2C_ADDR 0x65
  423. #endif
  424. #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_TI_SECURE_DEVICE)
  425. #undef CONFIG_EFI_PARTITION
  426. #endif /* CONFIG_SPL_BUILD && CONFIG_TI_SECURE_DEVICE */
  427. #endif /* ! __CONFIG_AM335X_EVM_H */