i.MX: Introduce imx_ocotp_read_uid()
UID information in OCOTP is located in the same place on at least
i.MX6, i.MX7 and i.MX8MQ. Create an SoC-agnostic helper to do all the
work and convert i.MX6 to use it.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cc0801f commit c4d9463d969b6234c86f4045656775212da08508
@Andrey Smirnov Andrey Smirnov authored on 14 Sep 2019
Sascha Hauer committed on 17 Sep 2019
Showing 2 changed files
View
arch/arm/mach-imx/imx6.c
View
arch/arm/mach-imx/include/mach/ocotp.h