aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/plat-hsdk/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/plat-hsdk/platform.c')
-rw-r--r--arch/arc/plat-hsdk/platform.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arc/plat-hsdk/platform.c b/arch/arc/plat-hsdk/platform.c
index 744e62e58788..fd0ae5e38639 100644
--- a/arch/arc/plat-hsdk/platform.c
+++ b/arch/arc/plat-hsdk/platform.c
@@ -74,6 +74,10 @@ static void __init hsdk_set_cpu_freq_1ghz(void)
74 pr_err("Failed to setup CPU frequency to 1GHz!"); 74 pr_err("Failed to setup CPU frequency to 1GHz!");
75} 75}
76 76
77#define SDIO_BASE (ARC_PERIPHERAL_BASE + 0xA000)
78#define SDIO_UHS_REG_EXT (SDIO_BASE + 0x108)
79#define SDIO_UHS_REG_EXT_DIV_2 (2 << 30)
80
77static void __init hsdk_init_early(void) 81static void __init hsdk_init_early(void)
78{ 82{
79 /* 83 /*
@@ -90,6 +94,12 @@ static void __init hsdk_init_early(void)
90 writel(1, (void __iomem *) CREG_PAE_UPDATE); 94 writel(1, (void __iomem *) CREG_PAE_UPDATE);
91 95
92 /* 96 /*
97 * Switch SDIO external ciu clock divider from default div-by-8 to
98 * minimum possible div-by-2.
99 */
100 iowrite32(SDIO_UHS_REG_EXT_DIV_2, (void __iomem *) SDIO_UHS_REG_EXT);
101
102 /*
93 * Setup CPU frequency to 1GHz. 103 * Setup CPU frequency to 1GHz.
94 * TODO: remove it after smart hsdk pll driver will be introduced. 104 * TODO: remove it after smart hsdk pll driver will be introduced.
95 */ 105 */