mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
ARM: imx legacy: pcm043: move peripheral initialization to .init_late
The change moves some of peripheral registrations and initializations (all peripherals dependent on GPIOs) from .init_machine to .init_late level, this allows to safely shift the shared GPIO controller driver initialization level after init level of i.MX IOMUXC driver. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
c217147b93
commit
782a8ee8b9
@ -363,7 +363,6 @@ static void __init pcm043_init(void)
|
|||||||
|
|
||||||
imx35_add_imx_uart0(&uart_pdata);
|
imx35_add_imx_uart0(&uart_pdata);
|
||||||
imx35_add_mxc_nand(&pcm037_nand_board_info);
|
imx35_add_mxc_nand(&pcm037_nand_board_info);
|
||||||
imx35_add_imx_ssi(0, &pcm043_ssi_pdata);
|
|
||||||
|
|
||||||
imx35_add_imx_uart1(&uart_pdata);
|
imx35_add_imx_uart1(&uart_pdata);
|
||||||
|
|
||||||
@ -387,6 +386,12 @@ static void __init pcm043_init(void)
|
|||||||
imx35_add_fsl_usb2_udc(&otg_device_pdata);
|
imx35_add_fsl_usb2_udc(&otg_device_pdata);
|
||||||
|
|
||||||
imx35_add_flexcan1();
|
imx35_add_flexcan1();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void __init pcm043_late_init(void)
|
||||||
|
{
|
||||||
|
imx35_add_imx_ssi(0, &pcm043_ssi_pdata);
|
||||||
|
|
||||||
imx35_add_sdhci_esdhc_imx(0, &sd1_pdata);
|
imx35_add_sdhci_esdhc_imx(0, &sd1_pdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -402,6 +407,7 @@ MACHINE_START(PCM043, "Phytec Phycore pcm043")
|
|||||||
.init_early = imx35_init_early,
|
.init_early = imx35_init_early,
|
||||||
.init_irq = mx35_init_irq,
|
.init_irq = mx35_init_irq,
|
||||||
.init_time = pcm043_timer_init,
|
.init_time = pcm043_timer_init,
|
||||||
.init_machine = pcm043_init,
|
.init_machine = pcm043_init,
|
||||||
|
.init_late = pcm043_late_init,
|
||||||
.restart = mxc_restart,
|
.restart = mxc_restart,
|
||||||
MACHINE_END
|
MACHINE_END
|
||||||
|
Loading…
Reference in New Issue
Block a user