sunxi: Add sunxi_get_sid helper function
authorHans de Goede <hdegoede@redhat.com>
Tue, 25 Nov 2014 23:04:24 +0000 (00:04 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:36 +0000 (14:56 +0100)
commitcac5b1cc0d6daa0c0a037fd24a87d4db4e0a1456
treea24c15323e90e3a930db7c88dcfabfa927547bfb
parentf3fba5665b066615a39d157a4a4970824695b91d
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>
arch/arm/cpu/armv7/sunxi/cpu_info.c
arch/arm/include/asm/arch-sunxi/cpu.h
board/sunxi/board.c