Skip to content

Commit 6afa3bc

Browse files
Eugeniy Paltsevvineetgarc
authored andcommitted
ARC: [plat-hsdk] sdio: Temporary fix of sdio ciu frequency
DW sdio controller has external ciu clock divider controlled via register in SDIO IP. Due to its unexpected default value (it should divide by 1 but it divides by 8) SDIO IP uses wrong ciu clock and works unstable So add temporary fix and change clock frequency from 100000000 to 12500000 Hz until we fix dw sdio driver itself. Fixes SNPS STAR 9001204800 Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 043d1e7 commit 6afa3bc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

arch/arc/boot/dts/hsdk.dts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,17 @@
120120

121121
mmcclk_ciu: mmcclk-ciu {
122122
compatible = "fixed-clock";
123-
clock-frequency = <100000000>;
123+
/*
124+
* DW sdio controller has external ciu clock divider
125+
* controlled via register in SDIO IP. Due to its
126+
* unexpected default value (it should devide by 1
127+
* but it devides by 8) SDIO IP uses wrong clock and
128+
* works unstable (see STAR 9001204800)
129+
* So add temporary fix and change clock frequency
130+
* from 100000000 to 12500000 Hz until we fix dw sdio
131+
* driver itself.
132+
*/
133+
clock-frequency = <12500000>;
124134
#clock-cells = <0>;
125135
};
126136

0 commit comments

Comments
 (0)