1
2
3
4
5
6
7
8
9
10#include <common.h>
11#include <miiphy.h>
12#include <asm/io.h>
13#include <asm/arch/cpu.h>
14#include <asm/arch/soc.h>
15#include <asm/arch/mpp.h>
16#include "ib62x0.h"
17
18DECLARE_GLOBAL_DATA_PTR;
19
20int board_early_init_f(void)
21{
22
23
24
25
26
27 mvebu_config_gpio(IB62x0_OE_VAL_LOW,
28 IB62x0_OE_VAL_HIGH,
29 IB62x0_OE_LOW, IB62x0_OE_HIGH);
30
31
32 writel(MVSATAHC_LED_POLARITY_CTRL, MVSATAHC_LED_CONF_REG);
33
34 static const u32 kwmpp_config[] = {
35 MPP0_NF_IO2,
36 MPP1_NF_IO3,
37 MPP2_NF_IO4,
38 MPP3_NF_IO5,
39 MPP4_NF_IO6,
40 MPP5_NF_IO7,
41 MPP6_SYSRST_OUTn,
42 MPP8_TW_SDA,
43 MPP9_TW_SCK,
44 MPP10_UART0_TXD,
45 MPP11_UART0_RXD,
46 MPP18_NF_IO0,
47 MPP19_NF_IO1,
48 MPP20_SATA1_ACTn,
49 MPP21_SATA0_ACTn,
50 MPP22_GPIO,
51 MPP24_GPIO,
52 MPP25_GPIO,
53 MPP27_GPIO,
54 MPP28_GPIO,
55 MPP29_GPIO,
56 0
57 };
58 kirkwood_mpp_conf(kwmpp_config, NULL);
59 return 0;
60}
61
62int board_init(void)
63{
64
65 gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100;
66
67 return 0;
68}
69