siemens-am33x-common.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * siemens am33x common board options
  4. * (C) Copyright 2013 Siemens Schweiz AG
  5. * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
  6. *
  7. * Based on:
  8. * U-Boot file:/include/configs/am335x_evm.h
  9. *
  10. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  11. */
  12. #ifndef __CONFIG_SIEMENS_AM33X_COMMON_H
  13. #define __CONFIG_SIEMENS_AM33X_COMMON_H
  14. #include <asm/arch/omap.h>
  15. #define CONFIG_DMA_COHERENT
  16. #define CONFIG_DMA_COHERENT_SIZE (1 << 20)
  17. #define CONFIG_ENV_SIZE (0x2000)
  18. #define CONFIG_SYS_MALLOC_LEN (16 * 1024 * 1024)
  19. #ifdef CONFIG_SIEMENS_MACH_TYPE
  20. #define CONFIG_MACH_TYPE CONFIG_SIEMENS_MACH_TYPE
  21. #endif
  22. #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
  23. #define CONFIG_SETUP_MEMORY_TAGS
  24. #define CONFIG_INITRD_TAG
  25. /* commands to include */
  26. #ifndef CONFIG_SPL_BUILD
  27. #define CONFIG_ROOTPATH "/opt/eldk"
  28. #endif
  29. #define CONFIG_ENV_OVERWRITE 1
  30. #define CONFIG_SYS_AUTOLOAD "yes"
  31. /* Clock Defines */
  32. #define V_OSCK 24000000 /* Clock output from T2 */
  33. #define V_SCLK (V_OSCK)
  34. /* We set the max number of command args high to avoid HUSH bugs. */
  35. #define CONFIG_SYS_MAXARGS 32
  36. /* Console I/O Buffer Size */
  37. #define CONFIG_SYS_CBSIZE 1024
  38. /* Boot Argument Buffer Size */
  39. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  40. /*
  41. * memtest works on 8 MB in DRAM after skipping 32MB from
  42. * start addr of ram disk
  43. */
  44. #define CONFIG_SYS_MEMTEST_START (PHYS_DRAM_1 + (64 * 1024 * 1024))
  45. #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START \
  46. + (8 * 1024 * 1024))
  47. #define CONFIG_SYS_LOAD_ADDR 0x81000000 /* Default load address */
  48. #define CONFIG_MTD_DEVICE
  49. #define CONFIG_SF_DEFAULT_SPEED (75000000)
  50. /* Physical Memory Map */
  51. #define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */
  52. #define PHYS_DRAM_1 0x80000000 /* DRAM Bank #1 */
  53. #define CONFIG_SYS_SDRAM_BASE PHYS_DRAM_1
  54. #define CONFIG_SYS_INIT_SP_ADDR (NON_SECURE_SRAM_END - \
  55. GENERATED_GBL_DATA_SIZE)
  56. /* Platform/Board specific defs */
  57. #define CONFIG_SYS_TIMERBASE 0x48040000 /* Use Timer2 */
  58. #define CONFIG_SYS_PTV 2 /* Divisor: 2^(PTV+1) => 8 */
  59. /* NS16550 Configuration */
  60. #ifdef CONFIG_SPL_BUILD
  61. #define CONFIG_SYS_NS16550_SERIAL
  62. #define CONFIG_SYS_NS16550_REG_SIZE (-4)
  63. #endif
  64. #define CONFIG_SYS_NS16550_CLK (48000000)
  65. #define CONFIG_SYS_NS16550_COM1 0x44e09000
  66. #define CONFIG_SYS_NS16550_COM4 0x481a6000
  67. #define CONFIG_SERIAL1 1
  68. /* I2C Configuration */
  69. #define CONFIG_I2C
  70. #define CONFIG_SYS_I2C
  71. /* Defines for SPL */
  72. #define CONFIG_SPL_TEXT_BASE 0x402F0400
  73. #define CONFIG_SPL_MAX_SIZE (SRAM_SCRATCH_SPACE_ADDR - \
  74. CONFIG_SPL_TEXT_BASE)
  75. #define CONFIG_SPL_BSS_START_ADDR 0x80000000
  76. #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 /* 512 KB */
  77. #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
  78. #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
  79. #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
  80. #define CONFIG_SPL_NAND_BASE
  81. #define CONFIG_SPL_NAND_DRIVERS
  82. #define CONFIG_SPL_NAND_ECC
  83. #define CONFIG_SYS_NAND_ONFI_DETECTION
  84. #define CONFIG_SYS_NAND_5_ADDR_CYCLE
  85. #define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \
  86. CONFIG_SYS_NAND_PAGE_SIZE)
  87. #define CONFIG_SYS_NAND_PAGE_SIZE 2048
  88. #define CONFIG_SYS_NAND_OOBSIZE 64
  89. #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
  90. #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS
  91. #define CONFIG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \
  92. 10, 11, 12, 13, 14, 15, 16, 17, \
  93. 18, 19, 20, 21, 22, 23, 24, 25, \
  94. 26, 27, 28, 29, 30, 31, 32, 33, \
  95. 34, 35, 36, 37, 38, 39, 40, 41, \
  96. 42, 43, 44, 45, 46, 47, 48, 49, \
  97. 50, 51, 52, 53, 54, 55, 56, 57, }
  98. #define CONFIG_SYS_NAND_ECCSIZE 512
  99. #define CONFIG_SYS_NAND_ECCBYTES 14
  100. #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW
  101. #define CONFIG_SYS_NAND_ECCSTEPS 4
  102. #define CONFIG_SYS_NAND_ECCTOTAL (CONFIG_SYS_NAND_ECCBYTES * \
  103. CONFIG_SYS_NAND_ECCSTEPS)
  104. #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
  105. #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
  106. /*
  107. * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM
  108. * 64 bytes before this address should be set aside for u-boot.img's
  109. * header. That is 0x800FFFC0--0x80100000 should not be used for any
  110. * other needs.
  111. */
  112. #define CONFIG_SYS_SPL_MALLOC_START 0x80208000
  113. #define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000
  114. /*
  115. * Since SPL did pll and ddr initialization for us,
  116. * we don't need to do it twice.
  117. */
  118. #ifndef CONFIG_SPL_BUILD
  119. #define CONFIG_SKIP_LOWLEVEL_INIT
  120. #endif
  121. #ifndef CONFIG_SPL_BUILD
  122. /*
  123. * USB configuration
  124. */
  125. #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
  126. #define CONFIG_AM335X_USB0
  127. #define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL
  128. #define CONFIG_AM335X_USB1
  129. #define CONFIG_AM335X_USB1_MODE MUSB_HOST
  130. /* USB DRACO ID as default */
  131. #define CONFIG_USBD_HS
  132. /* USB Device Firmware Update support */
  133. #define CONFIG_SYS_DFU_DATA_BUF_SIZE (1 << 20)
  134. #define DFU_MANIFEST_POLL_TIMEOUT 25000
  135. #endif /* CONFIG_SPL_BUILD */
  136. /*
  137. * Default to using SPI for environment, etc. We have multiple copies
  138. * of SPL as the ROM will check these locations.
  139. * 0x0 - 0x20000 : First copy of SPL
  140. * 0x20000 - 0x40000 : Second copy of SPL
  141. * 0x40000 - 0x60000 : Third copy of SPL
  142. * 0x60000 - 0x80000 : Fourth copy of SPL
  143. * 0x80000 - 0xDF000 : U-Boot
  144. * 0xDF000 - 0xE0000 : U-Boot Environment
  145. * 0xE0000 - 0x442000 : Linux Kernel
  146. * 0x442000 - 0x800000 : Userland
  147. */
  148. #if defined(CONFIG_SPI_BOOT)
  149. # define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
  150. # define CONFIG_ENV_OFFSET (892 << 10) /* 892 KiB in */
  151. # define CONFIG_ENV_SECT_SIZE (4 << 10) /* 4 KB sectors */
  152. #endif /* SPI support */
  153. #define CONFIG_MII
  154. #define CONFIG_BOOTP_DEFAULT
  155. #define CONFIG_BOOTP_DNS2
  156. #define CONFIG_BOOTP_SEND_HOSTNAME
  157. #define CONFIG_NET_RETRY_COUNT 10
  158. /* NAND support */
  159. #ifdef CONFIG_NAND
  160. /* UBI Support */
  161. #ifndef CONFIG_SPL_BUILD
  162. #define CONFIG_MTD_PARTITIONS
  163. #define CONFIG_MTD_DEVICE
  164. #endif
  165. /* Commen environment */
  166. #define CONFIG_PREBOOT
  167. #define COMMON_ENV_DFU_ARGS "dfu_args=run bootargs_defaults;" \
  168. "setenv bootargs ${bootargs};" \
  169. "mtdparts default;" \
  170. "draco_led 1;" \
  171. "dfu 0 nand 0;" \
  172. "draco_led 0;\0" \
  173. #define COMMON_ENV_NAND_BOOT \
  174. "nand_boot=echo Booting from nand; " \
  175. "if test ${upgrade_available} -eq 1; then " \
  176. "if test ${bootcount} -gt ${bootlimit}; " \
  177. "then " \
  178. "setenv upgrade_available 0;" \
  179. "setenv ${partitionset_active} true;" \
  180. "if test -n ${A}; then " \
  181. "setenv partitionset_active B; " \
  182. "env delete A; " \
  183. "fi;" \
  184. "if test -n ${B}; then " \
  185. "setenv partitionset_active A; " \
  186. "env delete B; " \
  187. "fi;" \
  188. "saveenv; " \
  189. "fi;" \
  190. "fi;" \
  191. "echo set ${partitionset_active}...;" \
  192. "run nand_args; "
  193. #define COMMON_ENV_NAND_CMDS "flash_self=run nand_boot\0" \
  194. "flash_self_test=setenv testargs test; " \
  195. "run nand_boot\0" \
  196. "dfu_start=echo Preparing for dfu mode ...; " \
  197. "run dfu_args; \0"
  198. #define COMMON_ENV_SETTINGS \
  199. "verify=no \0" \
  200. "project_dir=targetdir\0" \
  201. "upgrade_available=0\0" \
  202. "altbootcmd=run bootcmd\0" \
  203. "bootlimit=3\0" \
  204. "partitionset_active=A\0" \
  205. "loadaddr=0x82000000\0" \
  206. "kloadaddr=0x81000000\0" \
  207. "script_addr=0x81900000\0" \
  208. "console=console=ttyMTD,mtdoops console=ttyO0,115200n8 panic=5\0" \
  209. "nfsopts=nolock rw\0" \
  210. "ip_method=none\0" \
  211. "bootenv=uEnv.txt\0" \
  212. "bootargs_defaults=setenv bootargs " \
  213. "console=${console} " \
  214. "${testargs} " \
  215. "${optargs}\0" \
  216. "siemens_help=echo; "\
  217. "echo Type 'run flash_self' to use kernel and root " \
  218. "filesystem on memory; echo Type 'run flash_self_test' to " \
  219. "use kernel and root filesystem on memory, boot in test " \
  220. "mode; echo Not ready yet: 'run flash_nfs' to use kernel " \
  221. "from memory and root filesystem over NFS; echo Type " \
  222. "'run net_nfs' to get Kernel over TFTP and mount root " \
  223. "filesystem over NFS; " \
  224. "echo Set partitionset_active variable to 'A' " \
  225. "or 'B' to select kernel and rootfs partition; " \
  226. "echo" \
  227. "\0"
  228. /*
  229. * Variant 1 partition layout
  230. * chip-size = 256MiB
  231. *| name | size | address area |
  232. *-------------------------------------------------------
  233. *| spl | 128.000 KiB | 0x 0..0x 1ffff |
  234. *| spl.backup1 | 128.000 KiB | 0x 20000..0x 3ffff |
  235. *| spl.backup2 | 128.000 KiB | 0x 40000..0x 5ffff |
  236. *| spl.backup3 | 128.000 KiB | 0x 60000..0x 7ffff |
  237. *| u-boot | 1.875 MiB | 0x 80000..0x 25ffff |
  238. *| uboot.env | 128.000 KiB | 0x 260000..0x 27ffff |
  239. *| kernel_a | 5.000 MiB | 0x 280000..0x 77ffff |
  240. *| kernel_b | 5.000 MiB | 0x 780000..0x c7ffff |
  241. *| mtdoops | 8.000 MiB | 0x c80000..0x 147ffff |
  242. *| rootfs | 235.500 MiB | 0x 1480000..0x fffffff |
  243. *-------------------------------------------------------
  244. "mtdparts=omap2-nand.0:" \
  245. "128k(spl)," \
  246. "128k(spl.backup1)," \
  247. "128k(spl.backup2)," \
  248. "128k(spl.backup3)," \
  249. "1920k(u-boot)," \
  250. "128k(uboot.env)," \
  251. "5120k(kernel_a)," \
  252. "5120k(kernel_b)," \
  253. "8192k(mtdoops)," \
  254. "-(rootfs)"
  255. */
  256. #define DFU_ALT_INFO_NAND_V1 \
  257. "spl part 0 1;" \
  258. "spl.backup1 part 0 2;" \
  259. "spl.backup2 part 0 3;" \
  260. "spl.backup3 part 0 4;" \
  261. "u-boot part 0 5;" \
  262. "u-boot.env part 0 6;" \
  263. "kernel_a part 0 7;" \
  264. "kernel_b part 0 8;" \
  265. "rootfs partubi 0 10"
  266. #define CONFIG_ENV_SETTINGS_NAND_V1 \
  267. "nand_active_ubi_vol=rootfs_a\0" \
  268. "nand_active_ubi_vol_A=rootfs_a\0" \
  269. "nand_active_ubi_vol_B=rootfs_b\0" \
  270. "nand_root_fs_type=ubifs rootwait=1\0" \
  271. "nand_src_addr=0x280000\0" \
  272. "nand_src_addr_A=0x280000\0" \
  273. "nand_src_addr_B=0x780000\0" \
  274. "nand_args=run bootargs_defaults;" \
  275. "mtdparts default;" \
  276. "setenv ${partitionset_active} true;" \
  277. "if test -n ${A}; then " \
  278. "setenv nand_active_ubi_vol ${nand_active_ubi_vol_A};" \
  279. "setenv nand_src_addr ${nand_src_addr_A};" \
  280. "fi;" \
  281. "if test -n ${B}; then " \
  282. "setenv nand_active_ubi_vol ${nand_active_ubi_vol_B};" \
  283. "setenv nand_src_addr ${nand_src_addr_B};" \
  284. "fi;" \
  285. "setenv nand_root ubi0:${nand_active_ubi_vol} rw " \
  286. "ubi.mtd=9,${ubi_off};" \
  287. "setenv bootargs ${bootargs} " \
  288. "root=${nand_root} noinitrd ${mtdparts} " \
  289. "rootfstype=${nand_root_fs_type} ip=${ip_method} " \
  290. "console=ttyMTD,mtdoops console=ttyO0,115200n8 mtdoops.mtddev" \
  291. "=mtdoops\0" \
  292. COMMON_ENV_DFU_ARGS \
  293. "dfu_alt_info=" DFU_ALT_INFO_NAND_V1 "\0" \
  294. COMMON_ENV_NAND_BOOT \
  295. "nand read.i ${kloadaddr} ${nand_src_addr} " \
  296. "${nand_img_size}; bootm ${kloadaddr}\0" \
  297. COMMON_ENV_NAND_CMDS
  298. #define CONFIG_ENV_SETTINGS_V1 \
  299. COMMON_ENV_SETTINGS \
  300. "net_args=run bootargs_defaults;" \
  301. "mtdparts default;" \
  302. "setenv bootfile ${project_dir}/kernel/uImage;" \
  303. "setenv rootpath /home/projects/${project_dir}/rootfs;" \
  304. "setenv bootargs ${bootargs} " \
  305. "root=/dev/nfs ${mtdparts} " \
  306. "nfsroot=${serverip}:${rootpath},${nfsopts} " \
  307. "ip=${ipaddr}:${serverip}:" \
  308. "${gatewayip}:${netmask}:${hostname}:eth0:off\0" \
  309. "net_nfs=echo Booting from network ...; " \
  310. "run net_args; " \
  311. "tftpboot ${kloadaddr} ${serverip}:${bootfile}; " \
  312. "bootm ${kloadaddr}\0"
  313. /*
  314. * Variant 2 partition layout (default)
  315. * chip-size = 256MiB or 512 MiB
  316. *| name | size | address area |
  317. *-------------------------------------------------------
  318. *| spl | 128.000 KiB | 0x 0..0x 1ffff |
  319. *| spl.backup1 | 128.000 KiB | 0x 20000..0x 3ffff |
  320. *| spl.backup2 | 128.000 KiB | 0x 40000..0x 5ffff |
  321. *| spl.backup3 | 128.000 KiB | 0x 60000..0x 7ffff |
  322. *| u-boot | 1.875 MiB | 0x 80000..0x 25ffff |
  323. *| uboot.env0 | 512.000 KiB | 0x 260000..0x 2Dffff |
  324. *| uboot.env1 | 512.000 KiB | 0x 2E0000..0x 35ffff |
  325. *| mtdoops | 512.000 KiB | 0x 360000..0x 3dffff |
  326. *| (256) rootfs | 252.125 MiB | 0x 3E0000..0x fffffff |
  327. *| (512) rootfs | 508.125 MiB | 0x 3E0000..0x1fffffff |
  328. *-------------------------------------------------------
  329. */
  330. #define DFU_ALT_INFO_NAND_V2 \
  331. "spl part 0 1;" \
  332. "spl.backup1 part 0 2;" \
  333. "spl.backup2 part 0 3;" \
  334. "spl.backup3 part 0 4;" \
  335. "u-boot part 0 5;" \
  336. "u-boot.env0 part 0 6;" \
  337. "u-boot.env1 part 0 7;" \
  338. "rootfs partubi 0 9" \
  339. #define CONFIG_ENV_SETTINGS_NAND_V2 \
  340. "nand_active_ubi_vol=rootfs_a\0" \
  341. "rootfs_name=rootfs\0" \
  342. "kernel_name=uImage\0"\
  343. "nand_root_fs_type=ubifs rootwait=1\0" \
  344. "nand_args=run bootargs_defaults;" \
  345. "mtdparts default;" \
  346. "setenv ${partitionset_active} true;" \
  347. "if test -n ${A}; then " \
  348. "setenv nand_active_ubi_vol ${rootfs_name}_a;" \
  349. "fi;" \
  350. "if test -n ${B}; then " \
  351. "setenv nand_active_ubi_vol ${rootfs_name}_b;" \
  352. "fi;" \
  353. "setenv nand_root ubi0:${nand_active_ubi_vol} rw " \
  354. "ubi.mtd=rootfs,2048;" \
  355. "setenv bootargs ${bootargs} " \
  356. "root=${nand_root} noinitrd ${mtdparts} " \
  357. "rootfstype=${nand_root_fs_type} ip=${ip_method} " \
  358. "console=ttyMTD,mtdoops console=ttyO0,115200n8 mtdoops.mtddev" \
  359. "=mtdoops\0" \
  360. COMMON_ENV_DFU_ARGS \
  361. "dfu_alt_info=" DFU_ALT_INFO_NAND_V2 "\0" \
  362. COMMON_ENV_NAND_BOOT \
  363. "ubi part rootfs ${ubi_off};" \
  364. "ubifsmount ubi0:${nand_active_ubi_vol};" \
  365. "ubifsload ${kloadaddr} boot/${kernel_name};" \
  366. "ubifsload ${loadaddr} boot/${dtb_name}.dtb;" \
  367. "bootm ${kloadaddr} - ${loadaddr}\0" \
  368. "nand_boot_backup=ubifsload ${loadaddr} boot/am335x-draco.dtb;" \
  369. "bootm ${kloadaddr} - ${loadaddr}\0" \
  370. COMMON_ENV_NAND_CMDS
  371. #define CONFIG_ENV_SETTINGS_V2 \
  372. COMMON_ENV_SETTINGS \
  373. "net_args=run bootargs_defaults;" \
  374. "mtdparts default;" \
  375. "setenv bootfile ${project_dir}/kernel/uImage;" \
  376. "setenv bootdtb ${project_dir}/kernel/dtb;" \
  377. "setenv rootpath /home/projects/${project_dir}/rootfs;" \
  378. "setenv bootargs ${bootargs} " \
  379. "root=/dev/nfs ${mtdparts} " \
  380. "nfsroot=${serverip}:${rootpath},${nfsopts} " \
  381. "ip=${ipaddr}:${serverip}:" \
  382. "${gatewayip}:${netmask}:${hostname}:eth0:off\0" \
  383. "net_nfs=echo Booting from network ...; " \
  384. "run net_args; " \
  385. "tftpboot ${kloadaddr} ${serverip}:${bootfile}; " \
  386. "tftpboot ${loadaddr} ${serverip}:${bootdtb}; " \
  387. "bootm ${kloadaddr} - ${loadaddr}\0"
  388. /*
  389. * Variant 3 partition layout
  390. * chip-size = 512MiB
  391. *| name | size | address area |
  392. *-------------------------------------------------------
  393. *| spl | 128.000 KiB | 0x 0..0x 1ffff |
  394. *| spl.backup1 | 128.000 KiB | 0x 20000..0x 3ffff |
  395. *| spl.backup2 | 128.000 KiB | 0x 40000..0x 5ffff |
  396. *| spl.backup3 | 128.000 KiB | 0x 60000..0x 7ffff |
  397. *| u-boot | 1.875 MiB | 0x 80000..0x 25ffff |
  398. *| uboot.env0 | 512.000 KiB | 0x 260000..0x 2Dffff |
  399. *| uboot.env1 | 512.000 KiB | 0x 2E0000..0x 35ffff |
  400. *| rootfs | 300.000 MiB | 0x 360000..0x12f5ffff |
  401. *| mtdoops | 512.000 KiB | 0x12f60000..0x12fdffff |
  402. *|configuration | 104.125 MiB | 0x12fe0000..0x1fffffff |
  403. *-------------------------------------------------------
  404. "mtdparts=omap2-nand.0:" \
  405. "128k(spl)," \
  406. "128k(spl.backup1)," \
  407. "128k(spl.backup2)," \
  408. "128k(spl.backup3)," \
  409. "1920k(u-boot)," \
  410. "512k(u-boot.env0)," \
  411. "512k(u-boot.env1)," \
  412. "300m(rootfs)," \
  413. "512k(mtdoops)," \
  414. "-(configuration)"
  415. */
  416. #define CONFIG_SYS_NAND_BASE (0x08000000) /* physical address */
  417. /* to access nand at */
  418. /* CS0 */
  419. #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of NAND
  420. devices */
  421. #if !defined(CONFIG_SPI_BOOT)
  422. #define CONFIG_ENV_OFFSET 0x260000 /* environment starts here */
  423. #define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
  424. #endif
  425. #endif
  426. /* Reboot after 60 sec if bootcmd fails */
  427. #define CONFIG_RESET_TO_RETRY
  428. #define CONFIG_BOOT_RETRY_TIME 60
  429. #endif /* ! __CONFIG_SIEMENS_AM33X_COMMON_H */