diff options
Diffstat (limited to 'arch/mips')
48 files changed, 481 insertions, 452 deletions
diff --git a/arch/mips/alchemy/board-gpr.c b/arch/mips/alchemy/board-gpr.c index cb0f6afb7389..9edc35ff8cf1 100644 --- a/arch/mips/alchemy/board-gpr.c +++ b/arch/mips/alchemy/board-gpr.c | |||
| @@ -31,6 +31,7 @@ | |||
| 31 | #include <linux/i2c.h> | 31 | #include <linux/i2c.h> |
| 32 | #include <linux/i2c-gpio.h> | 32 | #include <linux/i2c-gpio.h> |
| 33 | #include <asm/bootinfo.h> | 33 | #include <asm/bootinfo.h> |
| 34 | #include <asm/idle.h> | ||
| 34 | #include <asm/reboot.h> | 35 | #include <asm/reboot.h> |
| 35 | #include <asm/mach-au1x00/au1000.h> | 36 | #include <asm/mach-au1x00/au1000.h> |
| 36 | #include <prom.h> | 37 | #include <prom.h> |
diff --git a/arch/mips/alchemy/common/time.c b/arch/mips/alchemy/common/time.c index 38afb11ba2c4..93fa586d52e2 100644 --- a/arch/mips/alchemy/common/time.c +++ b/arch/mips/alchemy/common/time.c | |||
| @@ -36,6 +36,7 @@ | |||
| 36 | #include <linux/interrupt.h> | 36 | #include <linux/interrupt.h> |
| 37 | #include <linux/spinlock.h> | 37 | #include <linux/spinlock.h> |
| 38 | 38 | ||
| 39 | #include <asm/idle.h> | ||
| 39 | #include <asm/processor.h> | 40 | #include <asm/processor.h> |
| 40 | #include <asm/time.h> | 41 | #include <asm/time.h> |
| 41 | #include <asm/mach-au1x00/au1000.h> | 42 | #include <asm/mach-au1x00/au1000.h> |
diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c index a0233a2c1988..8be4e856b8b8 100644 --- a/arch/mips/ath79/setup.c +++ b/arch/mips/ath79/setup.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <linux/clk.h> | 19 | #include <linux/clk.h> |
| 20 | 20 | ||
| 21 | #include <asm/bootinfo.h> | 21 | #include <asm/bootinfo.h> |
| 22 | #include <asm/idle.h> | ||
| 22 | #include <asm/time.h> /* for mips_hpt_frequency */ | 23 | #include <asm/time.h> /* for mips_hpt_frequency */ |
| 23 | #include <asm/reboot.h> /* for _machine_{restart,halt} */ | 24 | #include <asm/reboot.h> /* for _machine_{restart,halt} */ |
| 24 | #include <asm/mips_machine.h> | 25 | #include <asm/mips_machine.h> |
diff --git a/arch/mips/cobalt/reset.c b/arch/mips/cobalt/reset.c index 516b4428df4e..4eedd481dd00 100644 --- a/arch/mips/cobalt/reset.c +++ b/arch/mips/cobalt/reset.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <linux/io.h> | 12 | #include <linux/io.h> |
| 13 | #include <linux/leds.h> | 13 | #include <linux/leds.h> |
| 14 | 14 | ||
| 15 | #include <asm/idle.h> | ||
| 15 | #include <asm/processor.h> | 16 | #include <asm/processor.h> |
| 16 | 17 | ||
| 17 | #include <cobalt.h> | 18 | #include <cobalt.h> |
diff --git a/arch/mips/configs/db1000_defconfig b/arch/mips/configs/db1000_defconfig index face9d26e6d5..bac26b971c5e 100644 --- a/arch/mips/configs/db1000_defconfig +++ b/arch/mips/configs/db1000_defconfig | |||
| @@ -228,7 +228,6 @@ CONFIG_HIDRAW=y | |||
| 228 | CONFIG_USB_HID=y | 228 | CONFIG_USB_HID=y |
| 229 | CONFIG_USB_SUPPORT=y | 229 | CONFIG_USB_SUPPORT=y |
| 230 | CONFIG_USB=y | 230 | CONFIG_USB=y |
| 231 | CONFIG_USB_SUSPEND=y | ||
| 232 | CONFIG_USB_EHCI_HCD=y | 231 | CONFIG_USB_EHCI_HCD=y |
| 233 | CONFIG_USB_EHCI_ROOT_HUB_TT=y | 232 | CONFIG_USB_EHCI_ROOT_HUB_TT=y |
| 234 | CONFIG_USB_EHCI_TT_NEWSCHED=y | 233 | CONFIG_USB_EHCI_TT_NEWSCHED=y |
diff --git a/arch/mips/configs/db1235_defconfig b/arch/mips/configs/db1235_defconfig index 14752dde7540..e2b4ad55462f 100644 --- a/arch/mips/configs/db1235_defconfig +++ b/arch/mips/configs/db1235_defconfig | |||
| @@ -344,7 +344,6 @@ CONFIG_UHID=y | |||
| 344 | CONFIG_USB_HIDDEV=y | 344 | CONFIG_USB_HIDDEV=y |
| 345 | CONFIG_USB=y | 345 | CONFIG_USB=y |
| 346 | CONFIG_USB_DYNAMIC_MINORS=y | 346 | CONFIG_USB_DYNAMIC_MINORS=y |
| 347 | CONFIG_USB_SUSPEND=y | ||
| 348 | CONFIG_USB_EHCI_HCD=y | 347 | CONFIG_USB_EHCI_HCD=y |
| 349 | CONFIG_USB_EHCI_HCD_PLATFORM=y | 348 | CONFIG_USB_EHCI_HCD_PLATFORM=y |
| 350 | CONFIG_USB_EHCI_ROOT_HUB_TT=y | 349 | CONFIG_USB_EHCI_ROOT_HUB_TT=y |
diff --git a/arch/mips/configs/lemote2f_defconfig b/arch/mips/configs/lemote2f_defconfig index b6acd2f256b6..343bebc4b63b 100644 --- a/arch/mips/configs/lemote2f_defconfig +++ b/arch/mips/configs/lemote2f_defconfig | |||
| @@ -300,7 +300,6 @@ CONFIG_USB=y | |||
| 300 | CONFIG_USB_DEVICEFS=y | 300 | CONFIG_USB_DEVICEFS=y |
| 301 | # CONFIG_USB_DEVICE_CLASS is not set | 301 | # CONFIG_USB_DEVICE_CLASS is not set |
| 302 | CONFIG_USB_DYNAMIC_MINORS=y | 302 | CONFIG_USB_DYNAMIC_MINORS=y |
| 303 | CONFIG_USB_SUSPEND=y | ||
| 304 | CONFIG_USB_OTG_WHITELIST=y | 303 | CONFIG_USB_OTG_WHITELIST=y |
| 305 | CONFIG_USB_MON=y | 304 | CONFIG_USB_MON=y |
| 306 | CONFIG_USB_EHCI_HCD=y | 305 | CONFIG_USB_EHCI_HCD=y |
diff --git a/arch/mips/include/asm/clock.h b/arch/mips/include/asm/clock.h index c9456e7a7283..778e32d817bc 100644 --- a/arch/mips/include/asm/clock.h +++ b/arch/mips/include/asm/clock.h | |||
| @@ -6,8 +6,6 @@ | |||
| 6 | #include <linux/seq_file.h> | 6 | #include <linux/seq_file.h> |
| 7 | #include <linux/clk.h> | 7 | #include <linux/clk.h> |
| 8 | 8 | ||
| 9 | extern void (*cpu_wait) (void); | ||
| 10 | |||
| 11 | struct clk; | 9 | struct clk; |
| 12 | 10 | ||
| 13 | struct clk_ops { | 11 | struct clk_ops { |
diff --git a/arch/mips/include/asm/idle.h b/arch/mips/include/asm/idle.h new file mode 100644 index 000000000000..d192158886b1 --- /dev/null +++ b/arch/mips/include/asm/idle.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #ifndef __ASM_IDLE_H | ||
| 2 | #define __ASM_IDLE_H | ||
| 3 | |||
| 4 | #include <linux/linkage.h> | ||
| 5 | |||
| 6 | extern void (*cpu_wait)(void); | ||
| 7 | extern void r4k_wait(void); | ||
| 8 | extern asmlinkage void __r4k_wait(void); | ||
| 9 | extern void r4k_wait_irqoff(void); | ||
| 10 | extern void __pastwait(void); | ||
| 11 | |||
| 12 | static inline int using_rollback_handler(void) | ||
| 13 | { | ||
| 14 | return cpu_wait == r4k_wait; | ||
| 15 | } | ||
| 16 | |||
| 17 | static inline int address_is_in_r4k_wait_irqoff(unsigned long addr) | ||
| 18 | { | ||
| 19 | return addr >= (unsigned long)r4k_wait_irqoff && | ||
| 20 | addr < (unsigned long)__pastwait; | ||
| 21 | } | ||
| 22 | |||
