ARM: MXS: remove board specific clock setups
Some boards have board specific special clock setups. These are now done in the SoC specific clock drivers. It is assumed that most board specific clock setup is done based on copy/paste from U-Boot. The generalized clock setup differs from some boards: - ioclk are adjusted to 480MHz - ssp clocks are adjusted to 96MHz - enet out clock is enabled Some boards adjusted the ioclk to 320MHz and the ssp clock to 160MHz. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
86e80e5804
commit
6eb7119b5f
|
@ -290,9 +290,6 @@ static int falconwing_devices_init(void)
|
|||
for (i = 0; i < ARRAY_SIZE(pad_setup); i++)
|
||||
imx_gpio_mode(pad_setup[i]);
|
||||
|
||||
imx_set_ioclk(480000000); /* enable IOCLK to run at the PLL frequency */
|
||||
/* run the SSP unit clock at 100,000 kHz */
|
||||
imx_set_sspclk(0, 100000000, 1);
|
||||
add_generic_device("mxs_mci", 0, NULL, IMX_SSP1_BASE, 0x2000,
|
||||
IORESOURCE_MEM, &mci_pdata);
|
||||
add_generic_device("stmfb", 0, NULL, IMX_FB_BASE, 4096,
|
||||
|
|
|
@ -122,11 +122,6 @@ static int cfa10036_devices_init(void)
|
|||
for (i = 0; i < ARRAY_SIZE(cfa10036_pads); i++)
|
||||
imx_gpio_mode(cfa10036_pads[i]);
|
||||
|
||||
/* enable IOCLK0 to run at the PLL frequency */
|
||||
imx_set_ioclk(0, 480000000);
|
||||
/* run the SSP unit clock at 100 MHz */
|
||||
imx_set_sspclk(0, 100000000, 1);
|
||||
|
||||
armlinux_set_bootparams((void *)IMX_MEMORY_BASE + 0x100);
|
||||
armlinux_set_architecture(MACH_TYPE_CFA10036);
|
||||
|
||||
|
|
|
@ -109,9 +109,6 @@ static int mx23_evk_devices_init(void)
|
|||
armlinux_set_bootparams((void*)IMX_MEMORY_BASE + 0x100);
|
||||
armlinux_set_architecture(MACH_TYPE_MX23EVK);
|
||||
|
||||
imx_set_ioclk(480000000); /* enable IOCLK to run at the PLL frequency */
|
||||
imx_set_sspclk(0, 100000000, 1);
|
||||
|
||||
add_generic_device("mxs_mci", DEVICE_ID_DYNAMIC, NULL, IMX_SSP1_BASE,
|
||||
0x8000, IORESOURCE_MEM, &mci_pdata);
|
||||
|
||||
|
|
|
@ -253,14 +253,6 @@ static int mx28_evk_devices_init(void)
|
|||
for (i = 0; i < ARRAY_SIZE(mx28evk_pads); i++)
|
||||
imx_gpio_mode(mx28evk_pads[i]);
|
||||
|
||||
/* enable IOCLK0 to run at the PLL frequency */
|
||||
imx_set_ioclk(0, 480000000);
|
||||
imx_set_ioclk(1, 320000000);
|
||||
/* run the SSP unit clock at 100 MHz */
|
||||
imx_set_sspclk(0, 100000000, 1);
|
||||
/* run the SSP unit 2 clock at 160Mhz */
|
||||
imx_set_sspclk(2, 160000000, 1);
|
||||
|
||||
armlinux_set_bootparams((void *)IMX_MEMORY_BASE + 0x100);
|
||||
armlinux_set_architecture(MACH_TYPE_MX28EVK);
|
||||
|
||||
|
|
|
@ -124,12 +124,6 @@ static int imx23_olinuxino_devices_init(void)
|
|||
armlinux_set_bootparams((void *)IMX_MEMORY_BASE + 0x100);
|
||||
armlinux_set_architecture(MACH_TYPE_IMX233_OLINUXINO);
|
||||
|
||||
/* enable IOCLK to run at the PLL frequency */
|
||||
imx_set_ioclk(480000000);
|
||||
|
||||
/* run the SSP unit clock at 100,000 kHz */
|
||||
imx_set_sspclk(0, 100000000, 1);
|
||||
|
||||
add_generic_device("mxs_mci", DEVICE_ID_DYNAMIC, NULL, IMX_SSP1_BASE,
|
||||
0x8000, IORESOURCE_MEM, &mci_pdata);
|
||||
|
||||
|
|
|
@ -371,11 +371,6 @@ void base_board_init(void)
|
|||
for (i = 0; i < ARRAY_SIZE(tx28_starterkit_pad_setup); i++)
|
||||
imx_gpio_mode(tx28_starterkit_pad_setup[i]);
|
||||
|
||||
/* enable IOCLK0 to run at the PLL frequency */
|
||||
imx_set_ioclk(0, 480000000);
|
||||
/* run the SSP unit clock at 100 MHz */
|
||||
imx_set_sspclk(0, 100000000, 1);
|
||||
|
||||
add_generic_device("mxs_mci", 0, NULL, IMX_SSP0_BASE, 0x2000,
|
||||
IORESOURCE_MEM, &mci_pdata);
|
||||
|
||||
|
|
Loading…
Reference in New Issue