3 * Ingenic Semiconductor, <jlwei@ingenic.cn>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 #include <asm/mipsregs.h>
24 #include <asm/jz4740.h>
25 #include <asm/addrspace.h>
26 #include <asm/cacheops.h>
28 void _machine_restart(void)
30 __wdt_select_extalclk();
31 __wdt_select_clk_div64();
34 __tcu_start_wdt_clock();
40 static void gpio_init(void)
43 REG_GPIO_PXPES(0) = 0xffffffff;
44 REG_GPIO_PXPES(1) = 0xffffffff;
45 REG_GPIO_PXPES(2) = 0xffffffff;
46 REG_GPIO_PXPES(3) = 0xffffffff;
49 * Initialize NAND Flash Pins
54 * Initialize SDRAM pins
56 __gpio_as_sdram_32bit();
59 * Initialize UART0 pins
71 __gpio_as_lcd_16bit();
74 * Initialize Other pins
76 __gpio_as_output(GPIO_SD_VCC_EN_N
);
77 __gpio_clear_pin(GPIO_SD_VCC_EN_N
);
79 __gpio_as_input(GPIO_SD_CD_N
);
80 __gpio_disable_pull(GPIO_SD_CD_N
);
82 __gpio_as_output(GPIO_DISP_OFF_N
);
84 __gpio_as_output(GPIO_LED_EN
);
85 __gpio_set_pin(GPIO_LED_EN
);
90 static void cpm_init(void)
102 __cpm_suspend_udcphy();
103 __cpm_suspend_usbphy();
106 //----------------------------------------------------------------------
107 // board early init routine
109 void board_early_init(void)
115 //----------------------------------------------------------------------
116 // U-Boot common routines
118 int checkboard (void)
120 DECLARE_GLOBAL_DATA_PTR
;
122 printf("Board: Hanvon n516 e-book (CPU Speed %d MHz)\n",
123 gd
->cpu_clk
/1000000);
125 return 0; /* success */
This page took 0.057916 seconds and 5 git commands to generate.