summaryrefslogtreecommitdiff
path: root/samples/connector
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>2018-04-13 15:44:17 +0300
committerMark Brown <broonie@kernel.org>2018-04-17 11:46:52 +0100
commit51093cba290a375d51749d5bd61835809fa44853 (patch)
treecdd5f7837c1e280b346afb30e6fa6a190a01d8de /samples/connector
parent3dbb3eef91fdb246c7d366b960fe37b66af8ffa9 (diff)
spi: sh-msiof: Simplify calculation of divisors for transfer rate
The change updates sh_msiof_spi_set_clk_regs() function by iterating over BRDV power values. Note that the change is a functional one, namely prescaler output x 1/1 set in BRDV bit field (0b111) for MSO division rate set to 2 is substituted by BRDV = 0b000 and BRPS = 0b0, in terms of written values to TSCR setting of 0x0107 is substituted by 0x0000, and for all input parameter cases this is the only functional change, which touches the controller. As a result of the rework the function is supposed to be slightly more efficient and more readable and maintainable in case of any further extensions. Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'samples/connector')
0 files changed, 0 insertions, 0 deletions