]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: mtk-sd: fix sclk cycles shift value
authorWeijie Gao <weijie.gao@mediatek.com>
Thu, 12 Nov 2020 08:36:57 +0000 (16:36 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 24 Jan 2021 20:39:27 +0000 (21:39 +0100)
commitf875a1257800b5f60d8e8138a649a54ebfa3c5cf
tree9ec17cc8adf5709148cfdec63d4ca5f35f92eb51
parent17ade70b6a65a4c83d698b6a6c7b33f45a4382a0
mmc: mtk-sd: fix sclk cycles shift value

It turns out that the sclk cycles used by mt7620/mt7628 is the same as
other chips (20 bits, 1048576), not 65536.

This patch removes sclk_cycle_shift from dev_comp, and uses a macro with
a value 20 instead.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/mmc/mtk-sd.c