diff options
author | Tom Rini <trini@ti.com> | 2013-07-15 09:19:39 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-07-15 09:19:39 -0400 |
commit | 54e458de55a8833519225d728e3be1f84b399a38 (patch) | |
tree | 6be31e9d2a5f0111d76dd258b7296eee8523a716 /board/qi/qi_lb60/qi_lb60.c | |
parent | 68c517eafcb060aa8ef92ed2620f0f41c5275d89 (diff) | |
download | u-boot-imx-54e458de55a8833519225d728e3be1f84b399a38.zip u-boot-imx-54e458de55a8833519225d728e3be1f84b399a38.tar.gz u-boot-imx-54e458de55a8833519225d728e3be1f84b399a38.tar.bz2 |
Revert "MIPS: Jz4740: Add qi_lb60 board support"
The files board/qi/qi_lb60/qi_lb60.c and include/configs/qi_lb60.h were
licensed under the GPL v3 or later, and not v2 or later. As this is
incompatible with the project, revert this board support until the
responsible parties are available to re-license (if so desired) under
GPL v2.
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/qi/qi_lb60/qi_lb60.c')
-rw-r--r-- | board/qi/qi_lb60/qi_lb60.c | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/board/qi/qi_lb60/qi_lb60.c b/board/qi/qi_lb60/qi_lb60.c deleted file mode 100644 index d975209..0000000 --- a/board/qi/qi_lb60/qi_lb60.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Authors: Xiangfu Liu <xiangfu@sharism.cc> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 3 of the License, or (at your option) any later version. - */ - -#include <common.h> -#include <asm/io.h> -#include <asm/jz4740.h> - -DECLARE_GLOBAL_DATA_PTR; - -static void gpio_init(void) -{ - unsigned int i; - - /* Initialize NAND Flash Pins */ - __gpio_as_nand(); - - /* Initialize SDRAM pins */ - __gpio_as_sdram_16bit_4720(); - - /* Initialize LCD pins */ - __gpio_as_lcd_18bit(); - - /* Initialize MSC pins */ - __gpio_as_msc(); - - /* Initialize Other pins */ - for (i = 0; i < 7; i++) { - __gpio_as_input(GPIO_KEYIN_BASE + i); - __gpio_enable_pull(GPIO_KEYIN_BASE + i); - } - - for (i = 0; i < 8; i++) { - __gpio_as_output(GPIO_KEYOUT_BASE + i); - __gpio_clear_pin(GPIO_KEYOUT_BASE + i); - } - - __gpio_as_input(GPIO_KEYIN_8); - __gpio_enable_pull(GPIO_KEYIN_8); - - /* enable the TP4, TP5 as UART0 */ - __gpio_jtag_to_uart0(); - - __gpio_as_output(GPIO_AUDIO_POP); - __gpio_set_pin(GPIO_AUDIO_POP); - - __gpio_as_output(GPIO_LCD_CS); - __gpio_clear_pin(GPIO_LCD_CS); - - __gpio_as_output(GPIO_AMP_EN); - __gpio_clear_pin(GPIO_AMP_EN); - - __gpio_as_output(GPIO_SDPW_EN); - __gpio_disable_pull(GPIO_SDPW_EN); - __gpio_clear_pin(GPIO_SDPW_EN); - - __gpio_as_input(GPIO_SD_DETECT); - __gpio_disable_pull(GPIO_SD_DETECT); - - __gpio_as_input(GPIO_USB_DETECT); - __gpio_enable_pull(GPIO_USB_DETECT); -} - -static void cpm_init(void) -{ - struct jz4740_cpm *cpm = (struct jz4740_cpm *)JZ4740_CPM_BASE; - uint32_t reg = readl(&cpm->clkgr); - - reg |= CPM_CLKGR_IPU | - CPM_CLKGR_CIM | - CPM_CLKGR_I2C | - CPM_CLKGR_SSI | - CPM_CLKGR_UART1 | - CPM_CLKGR_SADC | - CPM_CLKGR_UHC | - CPM_CLKGR_UDC | - CPM_CLKGR_AIC1; - - writel(reg, &cpm->clkgr); -} - -int board_early_init_f(void) -{ - gpio_init(); - cpm_init(); - calc_clocks(); /* calc the clocks */ - rtc_init(); /* init rtc on any reset */ - - return 0; -} - -/* U-Boot common routines */ -int checkboard(void) -{ - printf("Board: Qi LB60 (Ingenic XBurst Jz4740 SoC, Speed %ld MHz)\n", - gd->cpu_clk / 1000000); - - return 0; -} |