summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/ocotp.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/misc'Sascha Hauer2019-01-151-8/+1
|\
| * nvmem: ocotp: Make use of postcore_platform_driver macroAndrey Smirnov2018-12-101-8/+1
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nvmem: ocotp: Fix writing of second mac address fuses on imx6ulStefan Riedmueller2019-01-031-2/+11
|/ | | | | | | | | | Commit 19a32c0f6bf0 ("nvmem: ocotp: Add support for second mac address fuses on imx6ul") added support for correctly reading the second MAC address from fuses of the i.MX 6UL/ULL but not for writing. So also fit writing of the second MAC address fuses to the correct method. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nvmem: ocotp: Add support for second mac address fuses on imx6ulChristian Hemp2018-12-051-2/+15
| | | | | | | | | | | | | | | | | | | | The i.MX 6UL/ULL has fuses for two MAC addresses. Both MAC addresses share the fuse address 0x23. ----------------------------- 0x22 | MAC0 | MAC0 | MAC0 | MAC0 | ----------------------------- 0x23 | MAC0 | MAC0 | MAC1 | MAC1 | ----------------------------- 0x24 | MAC1 | MAC1 | MAC1 | MAC1 | ----------------------------- So to read the second MAC address the first two bytes of 0x23 need to be skipped. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/net-switch-mv88e6xxx'Sascha Hauer2018-11-091-1/+1
|\
| * drivers: Introduce dev_set_name()Andrey Smirnov2018-10-181-1/+1
| | | | | | | | | | | | | | | | Introduce dev_set_name() in order to hide implementation details of setting device's name so it'd be easier to change it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nvmem: i.MX ocotp: Make locally used functions staticSascha Hauer2018-10-231-2/+2
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: ocotp: Provide missing .format_mac for i.MX8MQSascha Hauer2018-06-151-0/+1
| | | | | | | | Provide missing .format_mac for i.MX8MQ to prevent driver from crashing on start. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: ocotp: Add i.MX8MQ supportSascha Hauer2018-06-081-0/+10
| | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> [andrew.smirnov@gmail.com: Rebased to account for move to nvmem] Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nvmem: ocotp: Convert to NVMEM deviceAndrey Smirnov2018-05-311-3/+35
| | | | | | | | | | | | Not that barebox has a proper NVMEM subsystem, convert OCOTP driver to use that to both make things more consistent with Linux and also allow accessing OCOTP fields without the need for imx_ocotp_read_field()/imx_ocotp_write_field(). Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX: ocotp: Move OCOTP driver to drivers/nvmemAndrey Smirnov2018-05-311-0/+651
Move OCOTP driver to drivers/nvmem to be consistent with Linux kerenel. Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>