3 * Texas Instruments Incorporated, <www.ti.com>
4 * Aneesh V <aneesh@ti.com>
5 * Steve Sakoman <steve@sakoman.com>
7 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/sys_proto.h>
12 #include <asm/arch/mmc_host_def.h>
14 #include "sdp4430_mux_data.h"
16 DECLARE_GLOBAL_DATA_PTR;
18 const struct omap_sysinfo sysinfo = {
19 "Board: OMAP4430 SDP\n"
31 gd->bd->bi_arch_number = MACH_TYPE_OMAP_4430SDP;
32 gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */
37 int board_eth_init(bd_t *bis)
43 * @brief misc_init_r - Configure SDP board specific configurations
44 * such as power configurations, ethernet initialization as phase2 of
51 #ifdef CONFIG_TWL6030_POWER
52 twl6030_init_battery_charging();
57 void set_muxconf_regs_essential(void)
59 do_set_mux((*ctrl)->control_padconf_core_base,
60 core_padconf_array_essential,
61 sizeof(core_padconf_array_essential) /
62 sizeof(struct pad_conf_entry));
64 do_set_mux((*ctrl)->control_padconf_wkup_base,
65 wkup_padconf_array_essential,
66 sizeof(wkup_padconf_array_essential) /
67 sizeof(struct pad_conf_entry));
69 if (omap_revision() >= OMAP4460_ES1_0)
70 do_set_mux((*ctrl)->control_padconf_wkup_base,
71 wkup_padconf_array_essential_4460,
72 sizeof(wkup_padconf_array_essential_4460) /
73 sizeof(struct pad_conf_entry));
76 void set_muxconf_regs_non_essential(void)
78 do_set_mux((*ctrl)->control_padconf_core_base,
79 core_padconf_array_non_essential,
80 sizeof(core_padconf_array_non_essential) /
81 sizeof(struct pad_conf_entry));
83 do_set_mux((*ctrl)->control_padconf_wkup_base,
84 wkup_padconf_array_non_essential,
85 sizeof(wkup_padconf_array_non_essential) /
86 sizeof(struct pad_conf_entry));
88 if (omap_revision() < OMAP4460_ES1_0) {
89 do_set_mux((*ctrl)->control_padconf_wkup_base,
90 wkup_padconf_array_non_essential_4430,
91 sizeof(wkup_padconf_array_non_essential_4430) /
92 sizeof(struct pad_conf_entry));
96 #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_GENERIC_MMC)
97 int board_mmc_init(bd_t *bis)
99 omap_mmc_init(0, 0, 0, -1, -1);
100 omap_mmc_init(1, 0, 0, -1, -1);
106 * get_board_rev() - get board revision
108 u32 get_board_rev(void)