mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 10:01:25 +00:00
Merge branch 'mxs/fixes-for-3.5' of git://git.linaro.org/people/shawnguo/linux-2.6 into fixes
* 'mxs/fixes-for-3.5' of git://git.linaro.org/people/shawnguo/linux-2.6: ARM: apx4devkit: fix FEC enabling PHY clock Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
commit
8d111444bd
1 changed files with 11 additions and 0 deletions
|
@ -205,6 +205,16 @@ static int apx4devkit_phy_fixup(struct phy_device *phy)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void __init apx4devkit_fec_phy_clk_enable(void)
|
||||||
|
{
|
||||||
|
struct clk *clk;
|
||||||
|
|
||||||
|
/* Enable fec phy clock */
|
||||||
|
clk = clk_get_sys("enet_out", NULL);
|
||||||
|
if (!IS_ERR(clk))
|
||||||
|
clk_prepare_enable(clk);
|
||||||
|
}
|
||||||
|
|
||||||
static void __init apx4devkit_init(void)
|
static void __init apx4devkit_init(void)
|
||||||
{
|
{
|
||||||
mx28_soc_init();
|
mx28_soc_init();
|
||||||
|
@ -225,6 +235,7 @@ static void __init apx4devkit_init(void)
|
||||||
phy_register_fixup_for_uid(PHY_ID_KS8051, MICREL_PHY_ID_MASK,
|
phy_register_fixup_for_uid(PHY_ID_KS8051, MICREL_PHY_ID_MASK,
|
||||||
apx4devkit_phy_fixup);
|
apx4devkit_phy_fixup);
|
||||||
|
|
||||||
|
apx4devkit_fec_phy_clk_enable();
|
||||||
mx28_add_fec(0, &mx28_fec_pdata);
|
mx28_add_fec(0, &mx28_fec_pdata);
|
||||||
|
|
||||||
mx28_add_mxs_mmc(0, &apx4devkit_mmc_pdata);
|
mx28_add_mxs_mmc(0, &apx4devkit_mmc_pdata);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue