Re: [PATCH v2 2/7] mmc: tmio: move tmio_mmc_set_clock() to platform hook

2018-08-20 Thread Wolfram Sang
On Thu, Aug 16, 2018 at 04:16:34PM +0900, Masahiro Yamada wrote: > tmio_mmc_set_clock() is full of quirks because different SoC vendors > extended this in different ways. > > The original IP defines the divisor range 1/2 ... 1/512. > > bit 7 is set:1/512 > bit 6 is set:1/256 >... >

[PATCH v2 2/7] mmc: tmio: move tmio_mmc_set_clock() to platform hook

2018-08-16 Thread Masahiro Yamada
tmio_mmc_set_clock() is full of quirks because different SoC vendors extended this in different ways. The original IP defines the divisor range 1/2 ... 1/512. bit 7 is set:1/512 bit 6 is set:1/256 ... bit 0 is set:1/4 all bits clear: 1/2 It is platform-dependent how to