summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-sunxi/cpu.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-11-15 21:55:53 (GMT)
committerHans de Goede <hdegoede@redhat.com>2015-01-14 13:56:36 (GMT)
commit10191ed098a0a1417d80148372784956220e8dca (patch)
treef55eb74f90063c9df7290e28789edb0b55659751 /arch/arm/include/asm/arch-sunxi/cpu.h
parent37781a1a7e04a21feaa75ffac0723ec8f99dce19 (diff)
downloadu-boot-fsl-qoriq-10191ed098a0a1417d80148372784956220e8dca.tar.xz
sun6i: Add sunxi_get_ss_bonding_id() function
Add a sunxi_get_ss_bonding_id() function, and use it to differentiate between the A31s and the A31. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi/cpu.h')
-rw-r--r--arch/arm/include/asm/arch-sunxi/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/cpu.h b/arch/arm/include/asm/arch-sunxi/cpu.h
index 2c92b5c..8aeed2f 100644
--- a/arch/arm/include/asm/arch-sunxi/cpu.h
+++ b/arch/arm/include/asm/arch-sunxi/cpu.h
@@ -139,9 +139,14 @@
#define SUNXI_CPU_CFG (SUNXI_TIMER_BASE + 0x13c)
+/* SS bonding ids used for cpu identification */
+#define SUNXI_SS_BOND_ID_A31 4
+#define SUNXI_SS_BOND_ID_A31S 5
+
#ifndef __ASSEMBLY__
void sunxi_board_init(void);
void sunxi_reset(void);
+int sunxi_get_ss_bonding_id(void);
#endif /* __ASSEMBLY__ */
#endif /* _CPU_H */