Commit 123bcb3f authored by Andre Przywara's avatar Andre Przywara
Browse files

allwinner: Introduce names for SoC IDs



We will soon make more use of the Allwinner SoC ID, to differentiate the
platform setup.
Introduce definitions to avoid dealing with magic numbers and make the
code more readable.
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
parent f78f00aa
......@@ -14,4 +14,8 @@
#define SUNXI_UART0_BAUDRATE 115200
#define SUNXI_UART0_CLK_IN_HZ SUNXI_OSC24M_CLK_IN_HZ
#define SUNXI_SOC_A64 0x1689
#define SUNXI_SOC_H5 0x1718
#define SUNXI_SOC_H6 0x1728
#endif /* __SUNXI_DEF_H__ */
......@@ -68,13 +68,13 @@ void bl31_platform_setup(void)
uint16_t soc_id = sunxi_read_soc_id();
switch (soc_id) {
case 0x1689:
case SUNXI_SOC_A64:
soc_name = "A64/H64/R18";
break;
case 0x1718:
case SUNXI_SOC_H5:
soc_name = "H5";
break;
case 0x1728:
case SUNXI_SOC_H6:
soc_name = "H6";
break;
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment