global: Move remaining CONFIG_SYS_* to CFG_SYS_*
[platform/kernel/u-boot.git] / include / configs / cm_t43.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * cm_t43.h
4  *
5  * Copyright (C) 2015 Compulab, Ltd.
6  */
7
8 #ifndef __CONFIG_CM_T43_H
9 #define __CONFIG_CM_T43_H
10
11 #define CONFIG_MAX_RAM_BANK_SIZE        (2048 << 20)    /* 2GB */
12 #define CFG_SYS_TIMERBASE               0x48040000      /* Use Timer2 */
13
14 #include <asm/arch/omap.h>
15
16 /* Serial support */
17 #define CFG_SYS_NS16550_CLK             48000000
18 #define CFG_SYS_NS16550_COM1            0x44e09000
19
20 /* NAND support */
21 #define CFG_SYS_NAND_ECCSIZE            512
22 #define CFG_SYS_NAND_ECCBYTES   14
23 #define CFG_SYS_NAND_ECCPOS             { 2, 3, 4, 5, 6, 7, 8, 9, \
24                                          10, 11, 12, 13, 14, 15, 16, 17, \
25                                          18, 19, 20, 21, 22, 23, 24, 25, \
26                                          26, 27, 28, 29, 30, 31, 32, 33, \
27                                          34, 35, 36, 37, 38, 39, 40, 41, \
28                                          42, 43, 44, 45, 46, 47, 48, 49, \
29                                          50, 51, 52, 53, 54, 55, 56, 57, }
30
31 /* Power */
32 #define CONFIG_POWER_TPS65218
33
34 /* Enabling L2 Cache */
35 #define CFG_SYS_PL310_BASE              0x48242000
36
37 /*
38  * Since SPL did pll and ddr initialization for us,
39  * we don't need to do it twice.
40  */
41
42 #define CONFIG_HSMMC2_8BIT
43
44 #include <configs/ti_armv7_omap.h>
45
46 #define V_OSCK                          24000000  /* Clock output from T2 */
47 #define V_SCLK                          (V_OSCK)
48
49 #define CONFIG_EXTRA_ENV_SETTINGS \
50         "loadaddr=0x80200000\0" \
51         "fdtaddr=0x81200000\0" \
52         "bootm_size=0x8000000\0" \
53         "console=ttyO0,115200n8\0" \
54         "fdtfile=am437x-sb-som-t43.dtb\0" \
55         "kernel=zImage-cm-t43\0" \
56         "bootscr=bootscr.img\0" \
57         "emmcroot=/dev/mmcblk0p2 rw\0" \
58         "emmcrootfstype=ext4 rootwait\0" \
59         "emmcargs=setenv bootargs console=${console} " \
60                 "root=${emmcroot} " \
61                 "rootfstype=${emmcrootfstype}\0" \
62         "loadbootscript=load mmc 0 ${loadaddr} ${bootscr}\0" \
63         "bootscript=echo Running bootscript from mmc ...; " \
64                 "source ${loadaddr}\0" \
65         "emmcboot=echo Booting from emmc ... && " \
66                 "run emmcargs && " \
67                 "load mmc 1 ${loadaddr} ${kernel} && " \
68                 "load mmc 1 ${fdtaddr} ${fdtfile} && " \
69                 "bootz ${loadaddr} - ${fdtaddr}\0"
70
71 /* SPL defines. */
72
73 /* EEPROM */
74
75 #endif  /* __CONFIG_CM_T43_H */