diff options
Diffstat (limited to 'arch/arm/mach-at91/include/mach')
-rw-r--r-- | arch/arm/mach-at91/include/mach/board.h | 8 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/cpu.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/system.h | 7 |
3 files changed, 12 insertions, 7 deletions
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h index ceaec6c16eb2..df2ed848c9f8 100644 --- a/arch/arm/mach-at91/include/mach/board.h +++ b/arch/arm/mach-at91/include/mach/board.h | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <linux/usb/atmel_usba_udc.h> | 39 | #include <linux/usb/atmel_usba_udc.h> |
40 | #include <linux/atmel-mci.h> | 40 | #include <linux/atmel-mci.h> |
41 | #include <sound/atmel-ac97c.h> | 41 | #include <sound/atmel-ac97c.h> |
42 | #include <linux/serial.h> | ||
42 | 43 | ||
43 | /* USB Device */ | 44 | /* USB Device */ |
44 | struct at91_udc_data { | 45 | struct at91_udc_data { |
@@ -143,9 +144,10 @@ extern struct platform_device *atmel_default_console_device; | |||
143 | extern void __init __deprecated at91_init_serial(struct at91_uart_config *config); | 144 | extern void __init __deprecated at91_init_serial(struct at91_uart_config *config); |
144 | 145 | ||
145 | struct atmel_uart_data { | 146 | struct atmel_uart_data { |
146 | short use_dma_tx; /* use transmit DMA? */ | 147 | short use_dma_tx; /* use transmit DMA? */ |
147 | short use_dma_rx; /* use receive DMA? */ | 148 | short use_dma_rx; /* use receive DMA? */ |
148 | void __iomem *regs; /* virtual base address, if any */ | 149 | void __iomem *regs; /* virt. base address, if any */ |
150 | struct serial_rs485 rs485; /* rs485 settings */ | ||
149 | }; | 151 | }; |
150 | extern void __init at91_add_device_serial(void); | 152 | extern void __init at91_add_device_serial(void); |
151 | 153 | ||
diff --git a/arch/arm/mach-at91/include/mach/cpu.h b/arch/arm/mach-at91/include/mach/cpu.h index 5a0650101d45..833659d1200a 100644 --- a/arch/arm/mach-at91/include/mach/cpu.h +++ b/arch/arm/mach-at91/include/mach/cpu.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #define ARCH_ID_AT91SAM9260 0x019803a0 | 21 | #define ARCH_ID_AT91SAM9260 0x019803a0 |
22 | #define ARCH_ID_AT91SAM9261 0x019703a0 | 22 | #define ARCH_ID_AT91SAM9261 0x019703a0 |
23 | #define ARCH_ID_AT91SAM9263 0x019607a0 | 23 | #define ARCH_ID_AT91SAM9263 0x019607a0 |
24 | #define ARCH_ID_AT91SAM9G10 0x819903a0 | 24 | #define ARCH_ID_AT91SAM9G10 0x019903a0 |
25 | #define ARCH_ID_AT91SAM9G20 0x019905a0 | 25 | #define ARCH_ID_AT91SAM9G20 0x019905a0 |
26 | #define ARCH_ID_AT91SAM9RL64 0x019b03a0 | 26 | #define ARCH_ID_AT91SAM9RL64 0x019b03a0 |
27 | #define ARCH_ID_AT91SAM9G45 0x819b05a0 | 27 | #define ARCH_ID_AT91SAM9G45 0x819b05a0 |
@@ -108,7 +108,7 @@ static inline unsigned long at91cap9_rev_identify(void) | |||
108 | #endif | 108 | #endif |
109 | 109 | ||
110 | #ifdef CONFIG_ARCH_AT91SAM9G10 | 110 | #ifdef CONFIG_ARCH_AT91SAM9G10 |
111 | #define cpu_is_at91sam9g10() (at91_cpu_identify() == ARCH_ID_AT91SAM9G10) | 111 | #define cpu_is_at91sam9g10() ((at91_cpu_identify() & ~AT91_CIDR_EXT) == ARCH_ID_AT91SAM9G10) |
112 | #else | 112 | #else |
113 | #define cpu_is_at91sam9g10() (0) | 113 | #define cpu_is_at91sam9g10() (0) |
114 | #endif | 114 | #endif |
diff --git a/arch/arm/mach-at91/include/mach/system.h b/arch/arm/mach-at91/include/mach/system.h index 5268af3933c2..c80e090b3670 100644 --- a/arch/arm/mach-at91/include/mach/system.h +++ b/arch/arm/mach-at91/include/mach/system.h | |||
@@ -24,21 +24,24 @@ | |||
24 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
25 | #include <mach/at91_st.h> | 25 | #include <mach/at91_st.h> |
26 | #include <mach/at91_dbgu.h> | 26 | #include <mach/at91_dbgu.h> |
27 | #include <mach/at91_pmc.h> | ||
27 | 28 | ||
28 | static inline void arch_idle(void) | 29 | static inline void arch_idle(void) |
29 | { | 30 | { |
31 | #ifndef CONFIG_DEBUG_KERNEL | ||
30 | /* | 32 | /* |
31 | * Disable the processor clock. The processor will be automatically | 33 | * Disable the processor clock. The processor will be automatically |
32 | * re-enabled by an interrupt or by a reset. | 34 | * re-enabled by an interrupt or by a reset. |
33 | */ | 35 | */ |
34 | // at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK); | 36 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK); |
35 | 37 | #else | |
36 | /* | 38 | /* |
37 | * Set the processor (CP15) into 'Wait for Interrupt' mode. | 39 | * Set the processor (CP15) into 'Wait for Interrupt' mode. |
38 | * Unlike disabling the processor clock via the PMC (above) | 40 | * Unlike disabling the processor clock via the PMC (above) |
39 | * this allows the processor to be woken via JTAG. | 41 | * this allows the processor to be woken via JTAG. |
40 | */ | 42 | */ |
41 | cpu_do_idle(); | 43 | cpu_do_idle(); |
44 | #endif | ||
42 | } | 45 | } |
43 | 46 | ||
44 | void (*at91_arch_reset)(void); | 47 | void (*at91_arch_reset)(void); |