Skip to content
Snippets Groups Projects
Commit 813598e3 authored by Hans de Goede's avatar Hans de Goede
Browse files

sunxi: Use axp221 sid on a33


Unlike the A31 and the A23 the A33 actually has a SID inside the SoC again,
but sid[3] is 0 (at least on some SoCs), so it is better to use the axp221
sid.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
parent 012681b1
No related branches found
No related tags found
No related merge requests found
...@@ -78,18 +78,16 @@ int print_cpuinfo(void) ...@@ -78,18 +78,16 @@ int print_cpuinfo(void)
int sunxi_get_sid(unsigned int *sid) int sunxi_get_sid(unsigned int *sid)
{ {
#if defined CONFIG_MACH_SUN6I || defined CONFIG_MACH_SUN8I_A23
#ifdef CONFIG_AXP221_POWER #ifdef CONFIG_AXP221_POWER
return axp221_get_sid(sid); return axp221_get_sid(sid);
#else #elif defined SUNXI_SID_BASE
return -ENODEV;
#endif
#else
int i; int i;
for (i = 0; i< 4; i++) for (i = 0; i< 4; i++)
sid[i] = readl(SUNXI_SID_BASE + 4 * i); sid[i] = readl(SUNXI_SID_BASE + 4 * i);
return 0; return 0;
#else
return -ENODEV;
#endif #endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment