am335x_evm.h 15 KB

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