mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 23:27:30 +02:00
jz4740: Get rid of unused files.
This commit is contained in:
parent
733ee36727
commit
1ac22689b8
@ -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: <lhhuang@ingenic.cn>
|
||||
*
|
||||
* 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__ */
|
@ -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__ */
|
@ -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: <lhhuang@ingenic.cn>
|
||||
*
|
||||
* 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__ */
|
@ -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: <lhhuang@ingenic.cn>
|
||||
*
|
||||
* 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__ */
|
@ -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: <lhhuang@ingenic.cn>
|
||||
*
|
||||
* 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__ */
|
@ -18,31 +18,10 @@
|
||||
#include <asm/mach-jz4740/regs.h>
|
||||
#include <asm/mach-jz4740/ops.h>
|
||||
#include <asm/mach-jz4740/dma.h>
|
||||
#include <asm/mach-jz4740/misc.h>
|
||||
|
||||
/*------------------------------------------------------------------
|
||||
* Platform definitions
|
||||
*/
|
||||
#ifdef CONFIG_JZ4740_PAVO
|
||||
#include <asm/mach-jz4740/board-pavo.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_JZ4740_LEO
|
||||
#include <asm/mach-jz4740/board-leo.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_JZ4740_LYRA
|
||||
#include <asm/mach-jz4740/board-lyra.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_JZ4725_DIPPER
|
||||
#include <asm/mach-jz4740/board-dipper.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_JZ4720_VIRGO
|
||||
#include <asm/mach-jz4740/board-virgo.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_JZ4740_QI_LB60
|
||||
#include <asm/mach-jz4740/board-qi_lb60.h>
|
||||
#endif
|
||||
|
@ -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: <yliu@ingenic.cn>
|
||||
*
|
||||
* 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__ */
|
Loading…
Reference in New Issue
Block a user