diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-dipper.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-dipper.h deleted file mode 100644 index ae84f24d5..000000000 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-dipper.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * linux/include/asm-mips/mach-jz4740/board-dipper.h - * - * JZ4725-based (16bit) Dipper board ver 1.x definition. - * - * Copyright (C) 2006 - 2007 Ingenic Semiconductor Inc. - * - * Author: - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_JZ4725_DIPPER_H__ -#define __ASM_JZ4725_DIPPER_H__ - -/*====================================================================== - * Frequencies of on-board oscillators - */ -#define JZ_EXTAL 12000000 /* Main extal freq: 12 MHz */ -#define JZ_EXTAL2 32768 /* RTC extal freq: 32.768 KHz */ - -/*====================================================================== - * GPIO JZ4725 - */ -#define GPIO_SD_VCC_EN_N 85 /* GPC21 */ -#define GPIO_SD_CD_N 91 /* GPC27 */ -#define GPIO_SD_WP 112 /* GPD16 */ -#define GPIO_USB_DETE 124 /* GPD28 */ -#define GPIO_DC_DETE_N 103 /* GPD7 */ -#define GPIO_CHARG_STAT_N 86 /* GPC22 */ -#define GPIO_DISP_OFF_N 118 /* GPD22 */ - -#define GPIO_UDC_HOTPLUG GPIO_USB_DETE - -/*====================================================================== - * MMC/SD - */ - -#define MSC_WP_PIN GPIO_SD_WP -#define MSC_HOTPLUG_PIN GPIO_SD_CD_N -#define MSC_HOTPLUG_IRQ (IRQ_GPIO_0 + GPIO_SD_CD_N) - -#define __msc_init_io() \ -do { \ - __gpio_as_output(GPIO_SD_VCC_EN_N); \ - __gpio_as_input(GPIO_SD_CD_N); \ -} while (0) - -#define __msc_enable_power() \ -do { \ - __gpio_clear_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_disable_power() \ -do { \ - __gpio_set_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_card_detected(s) \ -({ \ - int detected = 1; \ - if (__gpio_get_pin(GPIO_SD_CD_N)) \ - detected = 0; \ - detected; \ -}) - -#endif /* __ASM_JZ4740_DIPPER_H__ */ diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-leo.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-leo.h deleted file mode 100644 index 4b883e288..000000000 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-leo.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef __ASM_JZ4740_LEO_H__ -#define __ASM_JZ4740_LEO_H__ - -/* - * Define your board specific codes here !!! - */ - -/*====================================================================== - * Frequencies of on-board oscillators - */ -#define JZ_EXTAL 12000000 /* Main extal freq: 12 MHz */ -#define JZ_EXTAL2 32768 /* RTC extal freq: 32.768 KHz */ - - -/*====================================================================== - * GPIO - */ -#define GPIO_DISP_OFF_N 100 -#define GPIO_SD_VCC_EN_N 119 -#define GPIO_SD_CD_N 120 -#define GPIO_SD_WP 111 - -/*====================================================================== - * MMC/SD - */ - -#define MSC_WP_PIN GPIO_SD_WP -#define MSC_HOTPLUG_PIN GPIO_SD_CD_N -#define MSC_HOTPLUG_IRQ (IRQ_GPIO_0 + GPIO_SD_CD_N) - -#define __msc_init_io() \ -do { \ - __gpio_as_output(GPIO_SD_VCC_EN_N); \ - __gpio_as_input(GPIO_SD_CD_N); \ -} while (0) - -#define __msc_enable_power() \ -do { \ - __gpio_clear_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_disable_power() \ -do { \ - __gpio_set_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_card_detected(s) \ -({ \ - int detected = 1; \ - __gpio_as_input(GPIO_SD_CD_N); \ - if (__gpio_get_pin(GPIO_SD_CD_N)) \ - detected = 0; \ - detected; \ -}) - -#endif /* __ASM_JZ4740_BOARD_LEO_H__ */ diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-lyra.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-lyra.h deleted file mode 100644 index 29e0ce00f..000000000 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-lyra.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * linux/include/asm-mips/mach-jz4740/board-lyra.h - * - * JZ4740-based LYRA board ver 2.x definition. - * - * Copyright (C) 2006 - 2007 Ingenic Semiconductor Inc. - * - * Author: - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_JZ4740_LYRA_H__ -#define __ASM_JZ4740_LYRA_H__ - -/*====================================================================== - * Frequencies of on-board oscillators - */ -#define JZ_EXTAL 12000000 /* Main extal freq: 12 MHz */ -#define JZ_EXTAL2 32768 /* RTC extal freq: 32.768 KHz */ - - -/*====================================================================== - * GPIO - */ -#define GPIO_SD_VCC_EN_N 113 /* GPD17 */ -#define GPIO_SD_CD_N 110 /* GPD14 */ -#define GPIO_SD_WP 112 /* GPD16 */ -#define GPIO_USB_DETE 102 /* GPD6 */ -#define GPIO_DC_DETE_N 103 /* GPD7 */ -#define GPIO_CHARG_STAT_N 111 /* GPD15 */ -#define GPIO_DISP_OFF_N 118 /* GPD22 */ -#define GPIO_LED_EN 124 /* GPD28 */ - -#define GPIO_UDC_HOTPLUG GPIO_USB_DETE -/*====================================================================== - * MMC/SD - */ - -#define MSC_WP_PIN GPIO_SD_WP -#define MSC_HOTPLUG_PIN GPIO_SD_CD_N -#define MSC_HOTPLUG_IRQ (IRQ_GPIO_0 + GPIO_SD_CD_N) - -#define __msc_init_io() \ -do { \ - __gpio_as_output(GPIO_SD_VCC_EN_N); \ - __gpio_as_input(GPIO_SD_CD_N); \ -} while (0) - -#define __msc_enable_power() \ -do { \ - __gpio_clear_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_disable_power() \ -do { \ - __gpio_set_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_card_detected(s) \ -({ \ - int detected = 1; \ - if (!(__gpio_get_pin(GPIO_SD_CD_N))) \ - detected = 0; \ - detected; \ -}) - -#endif /* __ASM_JZ4740_LYRA_H__ */ diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-pavo.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-pavo.h deleted file mode 100644 index f33831b89..000000000 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-pavo.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * linux/include/asm-mips/mach-jz4740/board-pavo.h - * - * JZ4730-based PAVO board ver 2.x definition. - * - * Copyright (C) 2006 - 2007 Ingenic Semiconductor Inc. - * - * Author: - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_JZ4740_PAVO_H__ -#define __ASM_JZ4740_PAVO_H__ - -/*====================================================================== - * Frequencies of on-board oscillators - */ -#define JZ_EXTAL 12000000 /* Main extal freq: 12 MHz */ -#define JZ_EXTAL2 32768 /* RTC extal freq: 32.768 KHz */ - - -/*====================================================================== - * GPIO - */ -#define GPIO_SD_VCC_EN_N 113 /* GPD17 */ -#define GPIO_SD_CD_N 110 /* GPD14 */ -#define GPIO_SD_WP 112 /* GPD16 */ -#define GPIO_USB_DETE 102 /* GPD6 */ -#define GPIO_DC_DETE_N 103 /* GPD7 */ -#define GPIO_CHARG_STAT_N 111 /* GPD15 */ -#define GPIO_DISP_OFF_N 118 /* GPD22 */ -#define GPIO_LED_EN 124 /* GPD28 */ - -#define GPIO_UDC_HOTPLUG GPIO_USB_DETE -/*====================================================================== - * MMC/SD - */ - -#define MSC_WP_PIN GPIO_SD_WP -#define MSC_HOTPLUG_PIN GPIO_SD_CD_N -#define MSC_HOTPLUG_IRQ (IRQ_GPIO_0 + GPIO_SD_CD_N) - -#define __msc_init_io() \ -do { \ - __gpio_as_output(GPIO_SD_VCC_EN_N); \ - __gpio_as_input(GPIO_SD_CD_N); \ -} while (0) - -#define __msc_enable_power() \ -do { \ - __gpio_clear_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_disable_power() \ -do { \ - __gpio_set_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_card_detected(s) \ -({ \ - int detected = 1; \ - if (__gpio_get_pin(GPIO_SD_CD_N)) \ - detected = 0; \ - detected; \ -}) - -#endif /* __ASM_JZ4740_PAVO_H__ */ diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-virgo.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-virgo.h deleted file mode 100644 index acd7bb717..000000000 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/board-virgo.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * linux/include/asm-mips/mach-jz4740/board-virgo.h - * - * JZ4720-based VIRGO board ver 1.x definition. - * - * Copyright (C) 2006 - 2007 Ingenic Semiconductor Inc. - * - * Author: - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_JZ4720_VIRGO_H__ -#define __ASM_JZ4720_VIRGO_H__ - -/*====================================================================== - * Frequencies of on-board oscillators - */ -#define JZ_EXTAL 12000000 /* Main extal freq: 12 MHz */ -#define JZ_EXTAL2 32768 /* RTC extal freq: 32.768 KHz */ - -/*====================================================================== - * GPIO VIRGO(JZ4720) - */ -#define GPIO_SD_VCC_EN_N 115 /* GPD19 */ -#define GPIO_SD_CD_N 116 /* GPD20 */ -#define GPIO_USB_DETE 114 /* GPD18 */ -#define GPIO_DC_DETE_N 120 /* GPD24 */ -#define GPIO_DISP_OFF_N 118 /* GPD22 */ -#define GPIO_LED_EN 117 /* GPD21 */ - -#define GPIO_UDC_HOTPLUG GPIO_USB_DETE - -/*====================================================================== - * MMC/SD - */ - -#define MSC_HOTPLUG_PIN GPIO_SD_CD_N -#define MSC_HOTPLUG_IRQ (IRQ_GPIO_0 + GPIO_SD_CD_N) - -#define __msc_init_io() \ -do { \ - __gpio_as_output(GPIO_SD_VCC_EN_N); \ - __gpio_as_input(GPIO_SD_CD_N); \ -} while (0) - -#define __msc_enable_power() \ -do { \ - __gpio_clear_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_disable_power() \ -do { \ - __gpio_set_pin(GPIO_SD_VCC_EN_N); \ -} while (0) - -#define __msc_card_detected(s) \ -({ \ - int detected = 1; \ - if (__gpio_get_pin(GPIO_SD_CD_N)) \ - detected = 0; \ - detected; \ -}) - -#endif /* __ASM_JZ4720_VIRGO_H__ */ diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/jz4740.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/jz4740.h index d38d5f198..849d1c254 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/jz4740.h +++ b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/jz4740.h @@ -18,31 +18,10 @@ #include #include #include -#include /*------------------------------------------------------------------ * Platform definitions */ -#ifdef CONFIG_JZ4740_PAVO -#include -#endif - -#ifdef CONFIG_JZ4740_LEO -#include -#endif - -#ifdef CONFIG_JZ4740_LYRA -#include -#endif - -#ifdef CONFIG_JZ4725_DIPPER -#include -#endif - -#ifdef CONFIG_JZ4720_VIRGO -#include -#endif - #ifdef CONFIG_JZ4740_QI_LB60 #include #endif diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/misc.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/misc.h deleted file mode 100644 index 8f14a5ace..000000000 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/misc.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * linux/include/asm-mips/mach-jz4740/misc.h - * - * Ingenic's JZ4740 common include. - * - * Copyright (C) 2006 - 2007 Ingenic Semiconductor Inc. - * - * Author: - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_JZ4740_MISC_H__ -#define __ASM_JZ4740_MISC_H__ - -/*========================================================== - * I2C - *===========================================================*/ - -#define I2C_EEPROM_DEV 0xA /* b'1010 */ -#define I2C_RTC_DEV 0xD /* b'1101 */ -#define DIMM0_SPD_ADDR 0 -#define DIMM1_SPD_ADDR 1 -#define DIMM2_SPD_ADDR 2 -#define DIMM3_SPD_ADDR 3 -#define JZ_HCI_ADDR 7 - -#define DIMM_SPD_LEN 128 -#define JZ_HCI_LEN 512 /* 4K bits E2PROM */ -#define I2C_RTC_LEN 16 -#define HCI_MAC_OFFSET 64 - -extern void i2c_open(void); -extern void i2c_close(void); -extern void i2c_setclk(unsigned int i2cclk); -extern int i2c_read(unsigned char device, unsigned char *buf, - unsigned char address, int count); -extern int i2c_write(unsigned char device, unsigned char *buf, - unsigned char address, int count); - -#endif /* __ASM_JZ4740_MISC_H__ */