diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2012-04-05 11:05:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-05 18:26:18 +0200 |
commit | 4be0faccd722a74e7cf7aa20b446c7057938d6df (patch) | |
tree | 9d788adfe2250f7ce4960c39b40cd947752c746c /arch/arm/mach-mxs/include | |
parent | 68ce5a3b03e4cc68e25e6f828d6947dac6beb69b (diff) | |
download | barebox-4be0faccd722a74e7cf7aa20b446c7057938d6df.tar.gz barebox-4be0faccd722a74e7cf7aa20b446c7057938d6df.tar.xz |
arm: mxs: add ocotp driver
Read-only support for now to get MAC addresses.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/include')
-rw-r--r-- | arch/arm/mach-mxs/include/mach/imx23-regs.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-mxs/include/mach/imx28-regs.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-mxs/include/mach/ocotp.h | 12 |
3 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/include/mach/imx23-regs.h b/arch/arm/mach-mxs/include/mach/imx23-regs.h index cc8c03e8bb..60f5bf9d6f 100644 --- a/arch/arm/mach-mxs/include/mach/imx23-regs.h +++ b/arch/arm/mach-mxs/include/mach/imx23-regs.h @@ -32,6 +32,7 @@ #define IMX_DBGUART_BASE 0x80070000 #define IMX_TIM1_BASE 0x80068000 #define IMX_IOMUXC_BASE 0x80018000 +#define IMX_OCOTP_BASE 0x8002c000 #define IMX_WDT_BASE 0x8005c000 #define IMX_CCM_BASE 0x80040000 #define IMX_I2C1_BASE 0x80058000 diff --git a/arch/arm/mach-mxs/include/mach/imx28-regs.h b/arch/arm/mach-mxs/include/mach/imx28-regs.h index 0c97c4c2f2..9a2052c159 100644 --- a/arch/arm/mach-mxs/include/mach/imx28-regs.h +++ b/arch/arm/mach-mxs/include/mach/imx28-regs.h @@ -29,6 +29,7 @@ #define IMX_SSP2_BASE 0x80014000 #define IMX_SSP3_BASE 0x80016000 #define IMX_IOMUXC_BASE 0x80018000 +#define IMX_OCOTP_BASE 0x8002c000 #define IMX_FB_BASE 0x80030000 #define IMX_CCM_BASE 0x80040000 #define IMX_WDT_BASE 0x80056000 diff --git a/arch/arm/mach-mxs/include/mach/ocotp.h b/arch/arm/mach-mxs/include/mach/ocotp.h new file mode 100644 index 0000000000..86b30c96e1 --- /dev/null +++ b/arch/arm/mach-mxs/include/mach/ocotp.h @@ -0,0 +1,12 @@ +/* + * Header file for mxs ocotp driver - same license as driver + * + * Copyright (C) 2012 by Wolfram Sang, Pengutronix e.K. + */ + +#ifndef __MACH_OCOTP_H +#define __MACH_OCOTP_H + +int mxs_ocotp_read(void *buf, int count, int offset); + +#endif /* __MACH_OCOTP_H */ |