diff options
| author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-08 18:40:16 +0000 |
|---|---|---|
| committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-08 18:40:16 +0000 |
| commit | 88731c199b6c0d769cd768213bd85e31069d8804 (patch) | |
| tree | 0bb17afb914bff4f7615af1502dea0c96c32b3dd /target/linux/ifxmips/files/arch/mips/ifxmips | |
| parent | 63b0dfc1a158d5d438be409192e79001d9fe677c (diff) | |
several cleanups for ifxmips. removes all code that has not been cleaned up properly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18008 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips/files/arch/mips/ifxmips')
5 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/Makefile b/target/linux/ifxmips/files/arch/mips/ifxmips/Makefile index eb9a77ede..a2cc69dc3 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/Makefile +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/Makefile @@ -1 +1 @@ -obj-y := reset.o prom.o setup.o interrupt.o dma-core.o pmu.o board.o clock.o timer.o gpio.o +obj-y := reset.o prom.o setup.o interrupt.o dma-core.o pmu.o board.o clock.o gpio.o diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c index 0f05aed05..364d33baa 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c @@ -204,6 +204,7 @@ static struct gpio_led easy4010_leds[] = { static struct ifxmips_board boards[] = { { + /* infineon eval kit */ .type = EASY50712, .name = "EASY50712", .system_type = SYSTEM_DANUBE_CHIPID1, @@ -214,6 +215,7 @@ static struct ifxmips_board boards[] = { .end = (1 << 0) | (1 << 1)}, .ifxmips_leds = easy50712_leds, }, { + /* infineon eval kit */ .type = EASY4010, .name = "EASY4010", .system_type = SYSTEM_TWINPASS_CHIPID, @@ -224,6 +226,7 @@ static struct ifxmips_board boards[] = { .end = (1 << 0) | (1 << 1)}, .ifxmips_leds = easy4010_leds, }, { + /* arcaydian annex-a board used by thompson, airties, ... */ .type = ARV4519, .name = "ARV4519", .system_type = SYSTEM_DANUBE_CHIPID2, @@ -361,6 +364,7 @@ int __init ifxmips_init_devices(void) ifxmips_led_data.num_leds = ARRAY_SIZE(easy4010_leds); break; case ARV4519: + /* set some sane defaults for the gpios */ gpio_set_value(3, 0); gpio_set_value(4, 0); gpio_set_value(5, 0); diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/interrupt.c b/target/linux/ifxmips/files/arch/mips/ifxmips/interrupt.c index 730455e0b..0552a1332 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/interrupt.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/interrupt.c @@ -111,6 +111,8 @@ static struct hw_interrupt_type ifxmips_irq_type = { .end = ifxmips_end_irq, }; +/* silicon bug causes only the msb set to 1 to be valid. all + other bits might be bogus */ static inline int ls1bit32(unsigned long x) { __asm__ ( diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c b/target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c index eac50b62d..d78ed4d08 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c @@ -14,6 +14,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * Copyright (C) 2007 John Crispin <blogic@openwrt.org> + * + * code used for handling the power management unit of the danube. using + * the pmu we can turn the power of the seperate ip cores on/off. */ #include <linux/kernel.h> diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/prom.c b/target/linux/ifxmips/files/arch/mips/ifxmips/prom.c index efd472fb0..1a27f1a96 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/prom.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/prom.c @@ -32,6 +32,7 @@ unsigned int prom_cp1_size; /* for Multithreading (APRP) on MIPS34K */ unsigned long physical_memsize; +/* early printk on asc0 or asc1 ? */ #ifdef CONFIG_IFXMIPS_PROM_ASC0 #define IFXMIPS_ASC_DIFF 0 #else |
