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>
10 #include <asm/arch/sys_proto.h>
11 #include <asm/arch/mmc_host_def.h>
13 #include "sdp4430_mux_data.h"
15 DECLARE_GLOBAL_DATA_PTR;
17 const struct omap_sysinfo sysinfo = {
18 "Board: OMAP4430 SDP\n"
30 gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */
35 int board_eth_init(bd_t *bis)
41 * @brief misc_init_r - Configure SDP board specific configurations
42 * such as power configurations, ethernet initialization as phase2 of
49 #ifdef CONFIG_TWL6030_POWER
50 twl6030_init_battery_charging();
55 void set_muxconf_regs(void)
57 do_set_mux((*ctrl)->control_padconf_core_base,
58 core_padconf_array_essential,
59 sizeof(core_padconf_array_essential) /
60 sizeof(struct pad_conf_entry));
62 do_set_mux((*ctrl)->control_padconf_wkup_base,
63 wkup_padconf_array_essential,
64 sizeof(wkup_padconf_array_essential) /
65 sizeof(struct pad_conf_entry));
67 if ((omap_revision() >= OMAP4460_ES1_0) &&
68 (omap_revision() < OMAP4470_ES1_0))
69 do_set_mux((*ctrl)->control_padconf_wkup_base,
70 wkup_padconf_array_essential_4460,
71 sizeof(wkup_padconf_array_essential_4460) /
72 sizeof(struct pad_conf_entry));
75 #if defined(CONFIG_MMC)
76 int board_mmc_init(bd_t *bis)
78 omap_mmc_init(0, 0, 0, -1, -1);
79 omap_mmc_init(1, 0, 0, -1, -1);
83 #if !defined(CONFIG_SPL_BUILD)
84 void board_mmc_power_init(void)
86 twl6030_power_mmc_init(0);
87 twl6030_power_mmc_init(1);
93 * get_board_rev() - get board revision
95 u32 get_board_rev(void)