mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 09:46:41 +07:00
ARM: at91: fix at91rm9200 soc subtype handling
Currently setting it to PQFP changes subtype to BGA as subtypes are swapped in at91rm9200_set_type(). Wrong subtype causes GPIO bank D not to work at all. After this fix, subtype is still set as unknown. But board code should fill it in with proper value. Another information is thus printed. Bug discovery and first implementation made by Veli-Pekka Peltola. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: stable <stable@vger.kernel.org>
This commit is contained in:
parent
dcd6c92267
commit
3e90772f76
@ -29,9 +29,12 @@ EXPORT_SYMBOL(at91_soc_initdata);
|
|||||||
void __init at91rm9200_set_type(int type)
|
void __init at91rm9200_set_type(int type)
|
||||||
{
|
{
|
||||||
if (type == ARCH_REVISON_9200_PQFP)
|
if (type == ARCH_REVISON_9200_PQFP)
|
||||||
at91_soc_initdata.subtype = AT91_SOC_RM9200_BGA;
|
|
||||||
else
|
|
||||||
at91_soc_initdata.subtype = AT91_SOC_RM9200_PQFP;
|
at91_soc_initdata.subtype = AT91_SOC_RM9200_PQFP;
|
||||||
|
else
|
||||||
|
at91_soc_initdata.subtype = AT91_SOC_RM9200_BGA;
|
||||||
|
|
||||||
|
pr_info("AT91: filled in soc subtype: %s\n",
|
||||||
|
at91_get_soc_subtype(&at91_soc_initdata));
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init at91_init_irq_default(void)
|
void __init at91_init_irq_default(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user