diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-01-26 20:26:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-16 21:19:04 -0400 |
commit | 7279b82cb1975ba4e337a549757f17418cfdffad (patch) | |
tree | be97311b59bf95471ab2aa6e303e92c9a4427ac9 /arch/sparc/include/asm | |
parent | 684151a75bf25f5aeb8a23010da91a34e17b7353 (diff) |
SPARC/LEON: power down instruction different of different LEONs
The way a LEON is powered down is implemented differently depending
on CHIP type. The AMBA Plug&Play system ID tells revision of GRLIB
and CHIP.
This is for example needed by the GR-LEON4-ITX board and the UT699.
Previously the power down support for LEON was limited to SMP, now
both SMP and UP systems use the instruction.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm')
-rw-r--r-- | arch/sparc/include/asm/leon_amba.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/leon_amba.h b/arch/sparc/include/asm/leon_amba.h index 263c719e96f5..e50f326e71bd 100644 --- a/arch/sparc/include/asm/leon_amba.h +++ b/arch/sparc/include/asm/leon_amba.h | |||
@@ -180,6 +180,7 @@ struct amba_ahb_device { | |||
180 | struct device_node; | 180 | struct device_node; |
181 | void _amba_init(struct device_node *dp, struct device_node ***nextp); | 181 | void _amba_init(struct device_node *dp, struct device_node ***nextp); |
182 | 182 | ||
183 | extern unsigned long amba_system_id; | ||
183 | extern struct leon3_irqctrl_regs_map *leon3_irqctrl_regs; | 184 | extern struct leon3_irqctrl_regs_map *leon3_irqctrl_regs; |
184 | extern struct leon3_gptimer_regs_map *leon3_gptimer_regs; | 185 | extern struct leon3_gptimer_regs_map *leon3_gptimer_regs; |
185 | extern struct amba_apb_device leon_percpu_timer_dev[16]; | 186 | extern struct amba_apb_device leon_percpu_timer_dev[16]; |
@@ -254,6 +255,11 @@ extern unsigned int sparc_leon_eirq; | |||
254 | #define GAISLER_L2C 0xffe /* internal device: leon2compat */ | 255 | #define GAISLER_L2C 0xffe /* internal device: leon2compat */ |
255 | #define GAISLER_PLUGPLAY 0xfff /* internal device: plug & play configarea */ | 256 | #define GAISLER_PLUGPLAY 0xfff /* internal device: plug & play configarea */ |
256 | 257 | ||
258 | /* Chip IDs */ | ||
259 | #define AEROFLEX_UT699 0x0699 | ||
260 | #define LEON4_NEXTREME1 0x0102 | ||
261 | #define GAISLER_GR712RC 0x0712 | ||
262 | |||
257 | #define amba_vendor(x) (((x) >> 24) & 0xff) | 263 | #define amba_vendor(x) (((x) >> 24) & 0xff) |
258 | 264 | ||
259 | #define amba_device(x) (((x) >> 12) & 0xfff) | 265 | #define amba_device(x) (((x) >> 12) & 0xfff) |