1
2
3
4
5
6
7
8
9
10
11#ifndef _CM_T54_MUX_DATA_H
12#define _CM_T54_MUX_DATA_H
13
14#include <asm/arch/mux_omap5.h>
15#include <asm/arch/sys_proto.h>
16
17const struct pad_conf_entry core_padconf_array_essential[] = {
18
19 {SDCARD_CLK, (PTU | IEN | M0)},
20 {SDCARD_CMD, (PTU | IEN | M0)},
21 {SDCARD_DATA0, (PTU | IEN | M0)},
22 {SDCARD_DATA1, (PTU | IEN | M0)},
23 {SDCARD_DATA2, (PTU | IEN | M0)},
24 {SDCARD_DATA3, (PTU | IEN | M0)},
25
26
27 {TIMER5_PWM_EVT, (PTU | IEN | M6)},
28 {TIMER6_PWM_EVT, (PTU | IEN | M6)},
29
30
31 {EMMC_CLK, (PTU | IEN | M0)},
32 {EMMC_CMD, (PTU | IEN | M0)},
33 {EMMC_DATA0, (PTU | IEN | M0)},
34 {EMMC_DATA1, (PTU | IEN | M0)},
35 {EMMC_DATA2, (PTU | IEN | M0)},
36 {EMMC_DATA3, (PTU | IEN | M0)},
37 {EMMC_DATA4, (PTU | IEN | M0)},
38 {EMMC_DATA5, (PTU | IEN | M0)},
39 {EMMC_DATA6, (PTU | IEN | M0)},
40 {EMMC_DATA7, (PTU | IEN | M0)},
41
42
43 {I2C5_SCL, (PTU | IEN | M2)},
44 {I2C5_SDA, (M2)},
45
46
47 {HSI2_CAFLAG, (PTU | M6)},
48
49
50 {I2C1_PMIC_SCL, (PTU | IEN | M0)},
51 {I2C1_PMIC_SDA, (PTU | IEN | M0)},
52
53
54 {USBB2_HSIC_STROBE, (PTU | IEN | M0)},
55 {USBB2_HSIC_DATA, (PTU | IEN | M0)},
56 {USBB3_HSIC_STROBE, (PTU | IEN | M0)},
57 {USBB3_HSIC_DATA, (PTU | IEN | M0)},
58
59
60 {HSI2_CAREADY, (PTD | M6)},
61 {HSI2_ACDATA, (PTD | M6)},
62
63
64 {I2C4_SCL, (PTU | IEN | M0)},
65 {I2C4_SDA, (PTU | IEN | M0)},
66};
67
68const struct pad_conf_entry wkup_padconf_array_essential[] = {
69 {SR_PMIC_SCL, (PTU | IEN | M0)},
70 {SR_PMIC_SDA, (PTU | IEN | M0)},
71 {SYS_32K, (IEN | M0)},
72
73
74 {FREF_CLK1_OUT, (PTD | IEN | M0)},
75};
76
77
78
79
80
81void set_muxconf_regs(void)
82{
83 do_set_mux((*ctrl)->control_padconf_core_base,
84 core_padconf_array_essential,
85 sizeof(core_padconf_array_essential) /
86 sizeof(struct pad_conf_entry));
87
88 do_set_mux((*ctrl)->control_padconf_wkup_base,
89 wkup_padconf_array_essential,
90 sizeof(wkup_padconf_array_essential) /
91 sizeof(struct pad_conf_entry));
92}
93
94#endif
95