1
2
3
4
5
6
7
8
9#include <common.h>
10#include <twl6030.h>
11#include <asm/arch/sys_proto.h>
12#include <asm/arch/mmc_host_def.h>
13
14#include "sdp4430_mux_data.h"
15
16DECLARE_GLOBAL_DATA_PTR;
17
18const struct omap_sysinfo sysinfo = {
19 "Board: OMAP4430 SDP\n"
20};
21
22
23
24
25
26
27int board_init(void)
28{
29 gpmc_init();
30
31 gd->bd->bi_boot_params = (0x80000000 + 0x100);
32
33 return 0;
34}
35
36int board_eth_init(bd_t *bis)
37{
38 return 0;
39}
40
41
42
43
44
45
46
47
48int misc_init_r(void)
49{
50#ifdef CONFIG_TWL6030_POWER
51 twl6030_init_battery_charging();
52#endif
53 return 0;
54}
55
56void set_muxconf_regs(void)
57{
58 do_set_mux((*ctrl)->control_padconf_core_base,
59 core_padconf_array_essential,
60 sizeof(core_padconf_array_essential) /
61 sizeof(struct pad_conf_entry));
62
63 do_set_mux((*ctrl)->control_padconf_wkup_base,
64 wkup_padconf_array_essential,
65 sizeof(wkup_padconf_array_essential) /
66 sizeof(struct pad_conf_entry));
67
68 if ((omap_revision() >= OMAP4460_ES1_0) &&
69 (omap_revision() < OMAP4470_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));
74}
75
76#if defined(CONFIG_MMC)
77int board_mmc_init(bd_t *bis)
78{
79 omap_mmc_init(0, 0, 0, -1, -1);
80 omap_mmc_init(1, 0, 0, -1, -1);
81 return 0;
82}
83
84#if !defined(CONFIG_SPL_BUILD)
85void board_mmc_power_init(void)
86{
87 twl6030_power_mmc_init(0);
88 twl6030_power_mmc_init(1);
89}
90#endif
91#endif
92
93
94
95
96u32 get_board_rev(void)
97{
98 return 0x20;
99}
100