acrn-kernel/drivers/nvmem
Peng Fan 3311bf1846 nvmem: imx-ocotp: add support for the unaliged word count
When offset is not 4 bytes aligned, directly shift righty by 2 bits
will cause reading out wrong data. Since imx ocotp only supports
4 bytes reading once, we need handle offset is not 4 bytes aligned
and enlarge the bytes to 4 bytes aligned. After reading finished,
copy the needed data from buffer to caller and free buffer.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20201127102837.19366-6-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-27 16:10:07 +01:00
..
Kconfig nvmem: update Kconfig description 2020-07-29 17:12:09 +02:00
Makefile
bcm-ocotp.c
core.c nvmem: core: Add support for keepout regions 2020-11-27 16:10:06 +01:00
imx-iim.c
imx-ocotp-scu.c
imx-ocotp.c nvmem: imx-ocotp: add support for the unaliged word count 2020-11-27 16:10:07 +01:00
jz4780-efuse.c
lpc18xx_eeprom.c
lpc18xx_otp.c
meson-efuse.c
meson-mx-efuse.c
mtk-efuse.c nvmem: mtk-efuse: Remove EFUSE register write support 2020-09-17 18:48:23 +02:00
mxs-ocotp.c
qcom-spmi-sdam.c nvmem: qcom-spmi-sdam: Enable multiple devices 2020-07-29 17:12:09 +02:00
qfprom.c nvmem: qfprom: Don't touch certain fuses 2020-11-27 16:10:06 +01:00
rave-sp-eeprom.c
rockchip-efuse.c
rockchip-otp.c
sc27xx-efuse.c nvmem: sc27xx: add sc2730 efuse support 2020-07-29 17:12:08 +02:00
snvs_lpgpr.c
sprd-efuse.c
stm32-romem.c
sunxi_sid.c
uniphier-efuse.c
vf610-ocotp.c
zynqmp_nvmem.c