diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-11-26 00:04:24 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 14:56:36 +0100 |
commit | cac5b1cc0d6daa0c0a037fd24a87d4db4e0a1456 (patch) | |
tree | a24c15323e90e3a930db7c88dcfabfa927547bfb /arch/arm/include/asm/arch-sunxi | |
parent | f3fba5665b066615a39d157a4a4970824695b91d (diff) | |
download | u-boot-imx-cac5b1cc0d6daa0c0a037fd24a87d4db4e0a1456.zip u-boot-imx-cac5b1cc0d6daa0c0a037fd24a87d4db4e0a1456.tar.gz u-boot-imx-cac5b1cc0d6daa0c0a037fd24a87d4db4e0a1456.tar.bz2 |
sunxi: Add sunxi_get_sid helper function
On sun6i the SID is stored in the pmic, rather then in the SoC itself,
add a helper function to abstract this away.
This makes our MAC address generation code also work on sun6i.
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')
-rw-r--r-- | arch/arm/include/asm/arch-sunxi/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/cpu.h b/arch/arm/include/asm/arch-sunxi/cpu.h index 8aeed2f..9500262 100644 --- a/arch/arm/include/asm/arch-sunxi/cpu.h +++ b/arch/arm/include/asm/arch-sunxi/cpu.h @@ -147,6 +147,7 @@ void sunxi_board_init(void); void sunxi_reset(void); int sunxi_get_ss_bonding_id(void); +int sunxi_get_sid(unsigned int *sid); #endif /* __ASSEMBLY__ */ #endif /* _CPU_H */ |