1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#include <common.h>
17#include <asm/arch/sys_proto.h>
18#include <asm/arch/hardware.h>
19#include <asm/arch/mux.h>
20#include <asm/io.h>
21#include <i2c.h>
22#include "evm.h"
23
24static struct module_pin_mux uart0_pin_mux[] = {
25 {OFFSET(pincntl70), PULLUP_EN | MODE(0x01)},
26 {OFFSET(pincntl71), PULLUP_EN | MODE(0x01)},
27 {-1},
28};
29
30static struct module_pin_mux mmc1_pin_mux[] = {
31 {OFFSET(pincntl1), PULLUP_EN | MODE(0x01)},
32 {OFFSET(pincntl2), PULLUP_EN | MODE(0x01)},
33 {OFFSET(pincntl3), PULLUP_EN | MODE(0x01)},
34 {OFFSET(pincntl4), PULLUP_EN | MODE(0x01)},
35 {OFFSET(pincntl5), PULLUP_EN | MODE(0x01)},
36 {OFFSET(pincntl6), PULLUP_EN | MODE(0x01)},
37 {OFFSET(pincntl74), PULLUP_EN | MODE(0x40)},
38 {OFFSET(pincntl75), MODE(0x40)},
39 {OFFSET(pincntl80), PULLUP_EN | MODE(0x02)},
40 {-1},
41};
42
43void enable_uart0_pin_mux(void)
44{
45 configure_module_pin_mux(uart0_pin_mux);
46}
47
48void enable_mmc1_pin_mux(void)
49{
50 configure_module_pin_mux(mmc1_pin_mux);
51}
52