mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
ARM: at91: pm: add UDP and UHP checks to newer SoCs
Check UDP and UHP on sam9x5, sam9n12 and the sama5 series. Check UHP on the sam9g45. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
This commit is contained in:
parent
d2e4679055
commit
a63ba41146
@ -275,6 +275,7 @@ static int __init at91_pm_init(void)
|
|||||||
pr_info("AT91: Power Management%s\n", (slow_clock ? " (with slow clock mode)" : ""));
|
pr_info("AT91: Power Management%s\n", (slow_clock ? " (with slow clock mode)" : ""));
|
||||||
|
|
||||||
at91_pm_data.memctrl = AT91_MEMCTRL_SDRAMC;
|
at91_pm_data.memctrl = AT91_MEMCTRL_SDRAMC;
|
||||||
|
at91_pm_data.uhp_udp_mask = AT91SAM926x_PMC_UHP | AT91SAM926x_PMC_UDP;
|
||||||
|
|
||||||
if (of_machine_is_compatible("atmel,at91rm9200")) {
|
if (of_machine_is_compatible("atmel,at91rm9200")) {
|
||||||
/*
|
/*
|
||||||
@ -286,14 +287,8 @@ static int __init at91_pm_init(void)
|
|||||||
at91_pm_data.uhp_udp_mask = AT91RM9200_PMC_UHP |
|
at91_pm_data.uhp_udp_mask = AT91RM9200_PMC_UHP |
|
||||||
AT91RM9200_PMC_UDP;
|
AT91RM9200_PMC_UDP;
|
||||||
at91_pm_data.memctrl = AT91_MEMCTRL_MC;
|
at91_pm_data.memctrl = AT91_MEMCTRL_MC;
|
||||||
} else if (of_machine_is_compatible("atmel,at91sam9260") ||
|
|
||||||
of_machine_is_compatible("atmel,at91sam9g20") ||
|
|
||||||
of_machine_is_compatible("atmel,at91sam9261") ||
|
|
||||||
of_machine_is_compatible("atmel,at91sam9g10") ||
|
|
||||||
of_machine_is_compatible("atmel,at91sam9263")) {
|
|
||||||
at91_pm_data.uhp_udp_mask = AT91SAM926x_PMC_UHP |
|
|
||||||
AT91SAM926x_PMC_UDP;
|
|
||||||
} else if (of_machine_is_compatible("atmel,at91sam9g45")) {
|
} else if (of_machine_is_compatible("atmel,at91sam9g45")) {
|
||||||
|
at91_pm_data.uhp_udp_mask = AT91RM9200_PMC_UHP;
|
||||||
at91_pm_data.memctrl = AT91_MEMCTRL_DDRSDR;
|
at91_pm_data.memctrl = AT91_MEMCTRL_DDRSDR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user