diff options
Diffstat (limited to 'arch/arm/mach-ixp2000/include')
| -rw-r--r-- | arch/arm/mach-ixp2000/include/mach/platform.h | 1 | ||||
| -rw-r--r-- | arch/arm/mach-ixp2000/include/mach/system.h | 35 | ||||
| -rw-r--r-- | arch/arm/mach-ixp2000/include/mach/vmalloc.h | 20 |
3 files changed, 1 insertions, 55 deletions
diff --git a/arch/arm/mach-ixp2000/include/mach/platform.h b/arch/arm/mach-ixp2000/include/mach/platform.h index 42182c79ed9..bb0f8dcf9ee 100644 --- a/arch/arm/mach-ixp2000/include/mach/platform.h +++ b/arch/arm/mach-ixp2000/include/mach/platform.h | |||
| @@ -122,6 +122,7 @@ void ixp2000_map_io(void); | |||
| 122 | void ixp2000_uart_init(void); | 122 | void ixp2000_uart_init(void); |
| 123 | void ixp2000_init_irq(void); | 123 | void ixp2000_init_irq(void); |
| 124 | void ixp2000_init_time(unsigned long); | 124 | void ixp2000_init_time(unsigned long); |
| 125 | void ixp2000_restart(char, const char *); | ||
| 125 | unsigned long ixp2000_gettimeoffset(void); | 126 | unsigned long ixp2000_gettimeoffset(void); |
| 126 | 127 | ||
| 127 | struct pci_sys_data; | 128 | struct pci_sys_data; |
diff --git a/arch/arm/mach-ixp2000/include/mach/system.h b/arch/arm/mach-ixp2000/include/mach/system.h index de370992c84..a7fb08b2b8e 100644 --- a/arch/arm/mach-ixp2000/include/mach/system.h +++ b/arch/arm/mach-ixp2000/include/mach/system.h | |||
| @@ -8,42 +8,7 @@ | |||
| 8 | * it under the terms of the GNU General Public License version 2 as | 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
| 10 | */ | 10 | */ |
| 11 | |||
| 12 | #include <mach/hardware.h> | ||
| 13 | #include <asm/mach-types.h> | ||
| 14 | |||
| 15 | static inline void arch_idle(void) | 11 | static inline void arch_idle(void) |
| 16 | { | 12 | { |
| 17 | cpu_do_idle(); | 13 | cpu_do_idle(); |
| 18 | } | 14 | } |
| 19 | |||
| 20 | static inline void arch_reset(char mode, const char *cmd) | ||
| 21 | { | ||
| 22 | local_irq_disable(); | ||
| 23 | |||
| 24 | /* | ||
| 25 | * Reset flash banking register so that we are pointing at | ||
| 26 | * RedBoot bank. | ||
| 27 | */ | ||
| 28 | if (machine_is_ixdp2401()) { | ||
| 29 | ixp2000_reg_write(IXDP2X01_CPLD_FLASH_REG, | ||
| 30 | ((0 >> IXDP2X01_FLASH_WINDOW_BITS) | ||
| 31 | | IXDP2X01_CPLD_FLASH_INTERN)); | ||
| 32 | ixp2000_reg_wrb(IXDP2X01_CPLD_RESET_REG, 0xffffffff); | ||
| 33 | } | ||
| 34 | |||
| 35 | /* | ||
| 36 | * On IXDP2801 we need to write this magic sequence to the CPLD | ||
| 37 | * to cause a complete reset of the CPU and all external devices | ||
| 38 | * and move the flash bank register back to 0. | ||
| 39 | */ | ||
| 40 | if (machine_is_ixdp2801() || machine_is_ixdp28x5()) { | ||
| 41 | unsigned long reset_reg = *IXDP2X01_CPLD_RESET_REG; | ||
| 42 | |||
| 43 | reset_reg = 0x55AA0000 | (reset_reg & 0x0000FFFF); | ||
| 44 | ixp2000_reg_write(IXDP2X01_CPLD_RESET_REG, reset_reg); | ||
| 45 | ixp2000_reg_wrb(IXDP2X01_CPLD_RESET_REG, 0x80000000); | ||
| 46 | } | ||
| 47 | |||
| 48 | ixp2000_reg_wrb(IXP2000_RESET0, RSTALL); | ||
| 49 | } | ||
diff --git a/arch/arm/mach-ixp2000/include/mach/vmalloc.h b/arch/arm/mach-ixp2000/include/mach/vmalloc.h deleted file mode 100644 index 61c8dae24f9..00000000000 --- a/arch/arm/mach-ixp2000/include/mach/vmalloc.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-ixp2000/include/mach/vmalloc.h | ||
| 3 | * | ||
| 4 | * Author: Naeem Afzal <naeem.m.afzal@intel.com> | ||
| 5 | * | ||
| 6 | * Copyright 2002 Intel Corp. | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify it | ||
| 9 | * under the terms of the GNU General Public License as published by the | ||
| 10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 11 | * option) any later version. | ||
| 12 | * | ||
| 13 | * Just any arbitrary offset to the start of the vmalloc VM area: the | ||
| 14 | * current 8MB value just means that there will be a 8MB "hole" after the | ||
| 15 | * physical memory until the kernel virtual memory starts. That means that | ||
| 16 | * any out-of-bounds memory accesses will hopefully be caught. | ||
| 17 | * The vmalloc() routines leaves a hole of 4kB between each vmalloced | ||
| 18 | * area for the same reason. ;) | ||
| 19 | */ | ||
| 20 | #define VMALLOC_END 0xfb000000UL | ||
