]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
mxs_ocotp: Shift the HBUS divider correctly
authorChris Smith <chris@zxdesign.info>
Sun, 12 Jul 2015 13:00:11 +0000 (15:00 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 2 Sep 2015 13:26:13 +0000 (15:26 +0200)
commitd4b8b5d46effb22f9735b924a7da502c2907b82b
treef7371cd912c5d61e23b9e4e76352a7298316d9e4
parentf3488bb39d0ffe274cefdc7c42e3e63a636d9cd6
mxs_ocotp: Shift the HBUS divider correctly

When the original HBUS divider value is retrieved in mxs_ocotp_scale_hclk()
for the purpose or restoring it back later, the value is not shifted by the
HBUS divider offset in that register. This is not a problem, since the shift
is zero on all MXS hardware. Add the shift anyway, for completeness and in
case FSL ever decides to re-use this driver on future designs.

Signed-off-by: Chris Smith <chris@zxdesign.info>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
drivers/misc/mxs_ocotp.c