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>
This commit is contained in:

committed by
David S. Miller

parent
684151a75b
commit
7279b82cb1
@@ -180,6 +180,7 @@ struct amba_ahb_device {
|
||||
struct device_node;
|
||||
void _amba_init(struct device_node *dp, struct device_node ***nextp);
|
||||
|
||||
extern unsigned long amba_system_id;
|
||||
extern struct leon3_irqctrl_regs_map *leon3_irqctrl_regs;
|
||||
extern struct leon3_gptimer_regs_map *leon3_gptimer_regs;
|
||||
extern struct amba_apb_device leon_percpu_timer_dev[16];
|
||||
@@ -254,6 +255,11 @@ extern unsigned int sparc_leon_eirq;
|
||||
#define GAISLER_L2C 0xffe /* internal device: leon2compat */
|
||||
#define GAISLER_PLUGPLAY 0xfff /* internal device: plug & play configarea */
|
||||
|
||||
/* Chip IDs */
|
||||
#define AEROFLEX_UT699 0x0699
|
||||
#define LEON4_NEXTREME1 0x0102
|
||||
#define GAISLER_GR712RC 0x0712
|
||||
|
||||
#define amba_vendor(x) (((x) >> 24) & 0xff)
|
||||
|
||||
#define amba_device(x) (((x) >> 12) & 0xfff)
|
||||
|
Reference in New Issue
Block a user