diff options
author | Christian Eggers <ceggers@arri.de> | 2020-01-17 13:12:49 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-01-20 09:00:27 +0100 |
commit | 586e36811f828d9fc94490c781d2e44b668a87a5 (patch) | |
tree | 5bebc44ccf8f67af134247966d34f356ff33d74a | |
parent | a41c40b62f41bbffddf39cbac9605a45c365b778 (diff) | |
download | barebox-586e36811f828d9fc94490c781d2e44b668a87a5.tar.gz barebox-586e36811f828d9fc94490c781d2e44b668a87a5.tar.xz |
nvmem: ocotp: Support for i.MX6ULL/ULZ
i.MX6ULL and i.MX6ULZ have only half of the fuses as i.MX6UL
Linux commit: ffbc34bf0e ("nvmem: imx-ocotp: Implement i.MX6ULL/ULZ
support")
Fixes: 1dc748b3b2 ("dts: update to v5.1-rc1")
Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/nvmem/ocotp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/nvmem/ocotp.c b/drivers/nvmem/ocotp.c index 79693e22e0..34e33dee82 100644 --- a/drivers/nvmem/ocotp.c +++ b/drivers/nvmem/ocotp.c @@ -712,6 +712,14 @@ static struct imx_ocotp_data imx6ul_ocotp_data = { .format_mac = imx_ocotp_format_mac, }; +static struct imx_ocotp_data imx6ull_ocotp_data = { + .num_regs = 256, + .addr_to_offset = imx6q_addr_to_offset, + .mac_offsets_num = 2, + .mac_offsets = { MAC_OFFSET_0, IMX6UL_MAC_OFFSET_1 }, + .format_mac = imx_ocotp_format_mac, +}; + static struct imx_ocotp_data vf610_ocotp_data = { .num_regs = 512, .addr_to_offset = vf610_addr_to_offset, @@ -742,6 +750,9 @@ static __maybe_unused struct of_device_id imx_ocotp_dt_ids[] = { .compatible = "fsl,imx6ul-ocotp", .data = &imx6ul_ocotp_data, }, { + .compatible = "fsl,imx6ull-ocotp", + .data = &imx6ull_ocotp_data, + }, { .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_ocotp_data, }, { |