40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2011 STMicroelectronics Limited
|
|
*
|
|
* May be copied or modified under the terms of the GNU General Public
|
|
* License. See linux/COPYING for more information.
|
|
*
|
|
* Code to handle the clock aliases on the STx5206.
|
|
*/
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/stm/clk.h>
|
|
|
|
int __init plat_clk_alias_init(void)
|
|
{
|
|
/* core clocks */
|
|
clk_add_alias("cpu_clk", NULL, "CLKA_SH4_ICK", NULL);
|
|
clk_add_alias("module_clk", NULL, "CLKA_IC_IF_100", NULL);
|
|
clk_add_alias("comms_clk", NULL, "CLKA_IC_IF_100", NULL);
|
|
|
|
/* EMI clock */
|
|
clk_add_alias("emi_clk", NULL, "CLKA_EMI_MASTER", NULL);
|
|
|
|
/* fdma clocks */
|
|
clk_add_alias("fdma_slim_clk", NULL, "CLKA_FDMA0", NULL);
|
|
clk_add_alias("fdma_hi_clk", NULL, "CLKA_IC_IF_100", NULL);
|
|
clk_add_alias("fdma_low_clk", NULL, "CLKA_IC_TS_200", NULL);
|
|
clk_add_alias("fdma_ic_clk", NULL, "CLKA_IC_IF_100", NULL);
|
|
|
|
/* SDHCI clocks */
|
|
clk_add_alias("sdhci_clk", NULL, "CLKA_IC_IF_100", NULL);
|
|
clk_add_alias("sdhci_card_clk", NULL, "CLKB_FS1_CH3", NULL);
|
|
|
|
/* USB clocks */
|
|
clk_add_alias("usb_48_clk", NULL, "FSB_USB", NULL);
|
|
clk_add_alias("usb_ic_clk", NULL, "CLKA_IC_IF_100", NULL);
|
|
clk_add_alias("usb_phy_clk", NULL, "CLKE_REF", NULL);
|
|
|
|
return 0;
|
|
}
|