1 // SPDX-License-Identifier: GPL-2.0+
4 * Texas Instruments Incorporated, <www.ti.com>
5 * Aneesh V <aneesh@ti.com>
6 * Steve Sakoman <steve@sakoman.com>
13 #include <asm/arch/sys_proto.h>
14 #include <asm/arch/mmc_host_def.h>
15 #include <asm/global_data.h>
17 #include "sdp4430_mux_data.h"
19 DECLARE_GLOBAL_DATA_PTR;
21 const struct omap_sysinfo sysinfo = {
22 "Board: OMAP4430 SDP\n"
34 gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */
39 int board_eth_init(struct bd_info *bis)
45 * @brief misc_init_r - Configure SDP board specific configurations
46 * such as power configurations, ethernet initialization as phase2 of
53 #ifdef CONFIG_TWL6030_POWER
54 twl6030_init_battery_charging();
59 void set_muxconf_regs(void)
61 do_set_mux((*ctrl)->control_padconf_core_base,
62 core_padconf_array_essential,
63 sizeof(core_padconf_array_essential) /
64 sizeof(struct pad_conf_entry));
66 do_set_mux((*ctrl)->control_padconf_wkup_base,
67 wkup_padconf_array_essential,
68 sizeof(wkup_padconf_array_essential) /
69 sizeof(struct pad_conf_entry));
71 if ((omap_revision() >= OMAP4460_ES1_0) &&
72 (omap_revision() < OMAP4470_ES1_0))
73 do_set_mux((*ctrl)->control_padconf_wkup_base,
74 wkup_padconf_array_essential_4460,
75 sizeof(wkup_padconf_array_essential_4460) /
76 sizeof(struct pad_conf_entry));
79 #if defined(CONFIG_MMC)
80 int board_mmc_init(struct bd_info *bis)
82 omap_mmc_init(0, 0, 0, -1, -1);
83 omap_mmc_init(1, 0, 0, -1, -1);
87 #if !defined(CONFIG_SPL_BUILD)
88 void board_mmc_power_init(void)
90 twl6030_power_mmc_init(0);
91 twl6030_power_mmc_init(1);
96 #if defined(CONFIG_SPL_OS_BOOT)
97 int spl_start_uboot(void)
99 /* break into full u-boot on 'c' */
100 if (serial_tstc() && serial_getc() == 'c')
105 #endif /* CONFIG_SPL_OS_BOOT */
107 #ifdef CONFIG_REVISION_TAG
109 * get_board_rev() - get board revision
111 u32 get_board_rev(void)