1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Texas Instruments Incorporated.
5 * Aneesh V <aneesh@ti.com>
6 * Steve Sakoman <steve@sakoman.com>
8 * TI OMAP4 common configuration settings
11 #ifndef __CONFIG_TI_OMAP4_COMMON_H
12 #define __CONFIG_TI_OMAP4_COMMON_H
14 #ifndef CONFIG_SYS_L2CACHE_OFF
15 #define CONFIG_SYS_L2_PL310 1
16 #define CONFIG_SYS_PL310_BASE 0x48242000
20 #include <asm/arch/cpu.h>
21 #include <asm/arch/omap.h>
23 /* Use General purpose timer 1 */
24 #define CONFIG_SYS_TIMERBASE GPT2_BASE
26 #include <configs/ti_armv7_omap.h>
31 #define CONFIG_SYS_NS16550_CLK 48000000
32 #if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_DM_SERIAL)
33 #define CONFIG_SYS_NS16550_SERIAL
34 #define CONFIG_SYS_NS16550_REG_SIZE (-4)
35 #define CONFIG_SYS_NS16550_COM3 UART3_BASE
39 #define CONFIG_TWL6030_POWER 1
44 #define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
45 "bootcmd_" #devtypel #instance "=" \
46 "setenv mmcdev " #instance"; "\
47 "setenv bootpart " #instance":2 ; "\
50 #define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \
51 #devtypel #instance " "
53 #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
54 #devtypel #instance " "
56 #define BOOT_TARGET_DEVICES(func) \
58 func(LEGACY_MMC, legacy_mmc, 0) \
60 func(LEGACY_MMC, legacy_mmc, 1) \
64 #include <config_distro_bootcmd.h>
65 #include <environment/ti/mmc.h>
67 #define CONFIG_EXTRA_ENV_SETTINGS \
68 DEFAULT_LINUX_BOOT_ENV \
71 "console=ttyO2,115200n8\0" \
72 "fdtfile=undefined\0" \
78 "loaduimage=load mmc ${mmcdev} ${loadaddr} uImage\0" \
79 "uimageboot=echo Booting from mmc${mmcdev} ...; " \
81 "bootm ${loadaddr}\0" \
83 "if test $board_name = sdp4430; then " \
84 "setenv fdtfile omap4-sdp.dtb; fi; " \
85 "if test $board_name = panda; then " \
86 "setenv fdtfile omap4-panda.dtb; fi;" \
87 "if test $board_name = panda-a4; then " \
88 "setenv fdtfile omap4-panda-a4.dtb; fi;" \
89 "if test $board_name = panda-es; then " \
90 "setenv fdtfile omap4-panda-es.dtb; fi;" \
91 "if test $board_name = duovero; then " \
92 "setenv fdtfile omap4-duovero-parlor.dtb; fi;" \
93 "if test $fdtfile = undefined; then " \
94 "echo WARNING: Could not determine device tree to use; fi; \0" \
99 * It is known that this will break HS devices. Since the current size of
100 * SPL is overlapped with public stack and breaking non HS devices to boot.
101 * So moving TEXT_BASE down to non-HS limit.
104 #ifdef CONFIG_SPL_BUILD
105 /* No need for i2c in SPL mode as we will use SRI2C for PMIC access on OMAP4 */
108 #endif /* __CONFIG_TI_OMAP4_COMMON_H */