kernel: update linux 3.2 to 3.2.12
[openwrt.git] / package / uboot-xburst / files / board / sakc / sakc.c
1 /*
2 * Authors: Xiangfu Liu <xiangfu.z@gmail.com>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 3 of the License, or (at your option) any later version.
8 */
9
10 #include <common.h>
11 #include <command.h>
12 #include <asm/mipsregs.h>
13 #include <asm/jz4740.h>
14
15 DECLARE_GLOBAL_DATA_PTR;
16
17 static void gpio_init(void)
18 {
19 /*
20 * Initialize NAND Flash Pins
21 */
22 __gpio_as_nand();
23
24 /*
25 * Initialize SDRAM pins
26 */
27 __gpio_as_sdram_16bit_4725();
28
29 /*
30 * Initialize UART0 pins
31 */
32 __gpio_as_uart0();
33
34 /*
35 * Initialize LCD pins
36 */
37 __gpio_as_lcd_18bit();
38
39 /*
40 * Initialize MSC pins
41 */
42 __gpio_as_msc();
43
44 /*
45 * Initialize SSI pins
46 */
47 __gpio_as_ssi();
48
49 /*
50 * Initialize I2C pins
51 */
52 __gpio_as_i2c();
53
54 /*
55 * Initialize MSC pins
56 */
57 __gpio_as_msc();
58
59 /*
60 * Initialize Other pins
61 */
62 __gpio_as_input(GPIO_SD_DETECT);
63 __gpio_disable_pull(GPIO_SD_DETECT);
64 }
65 /* TODO SAKC
66 static void cpm_init(void)
67 {
68 __cpm_stop_ipu();
69 __cpm_stop_cim();
70 __cpm_stop_i2c();
71 __cpm_stop_ssi();
72 __cpm_stop_uart1();
73 __cpm_stop_sadc();
74 __cpm_stop_uhc();
75 __cpm_stop_aic1();
76 __cpm_stop_aic2();
77 }*/
78
79 void board_early_init(void)
80 {
81 gpio_init();
82 //cpm_init(); //TODO SAKC
83 }
84
85 /* U-Boot common routines */
86
87 int checkboard (void)
88 {
89
90 printf("Board: SAKC (Ingenic XBurst Jz4725 SoC, Speed %d MHz)\n",
91 gd->cpu_clk/1000000);
92
93 return 0; /* success */
94 }
This page took 0.047203 seconds and 5 git commands to generate.