aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-10-14 23:45:47 -0400
committerMike Frysinger <vapier@gentoo.org>2009-12-15 00:14:40 -0500
commitcd32cc73625641c068393978e7bb337d29c0cd29 (patch)
tree2919e991260ccb6603b9ac713cd0dff5f83d8854 /arch/blackfin/mach-bf527
parentb1fa2e8f626e997c2c4f991f10ed00b6ee080b99 (diff)
Blackfin: punt OTP MMRs
People should not be accessing OTP MMRs directly. They should instead go through the Blackfin ROM helper functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf527')
-rw-r--r--arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h22
-rw-r--r--arch/blackfin/mach-bf527/include/mach/defBF52x_base.h40
2 files changed, 0 insertions, 62 deletions
diff --git a/arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h b/arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h
index b6b99bb04739..12f2ad45314e 100644
--- a/arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h
+++ b/arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h
@@ -1063,17 +1063,6 @@
1063#define bfin_read_CNT_MIN() bfin_read32(CNT_MIN) 1063#define bfin_read_CNT_MIN() bfin_read32(CNT_MIN)
1064#define bfin_write_CNT_MIN(val) bfin_write32(CNT_MIN, val) 1064#define bfin_write_CNT_MIN(val) bfin_write32(CNT_MIN, val)
1065 1065
1066/* OTP/FUSE Registers */
1067
1068#define bfin_read_OTP_CONTROL() bfin_read16(OTP_CONTROL)
1069#define bfin_write_OTP_CONTROL(val) bfin_write16(OTP_CONTROL, val)
1070#define bfin_read_OTP_BEN() bfin_read16(OTP_BEN)
1071#define bfin_write_OTP_BEN(val) bfin_write16(OTP_BEN, val)
1072#define bfin_read_OTP_STATUS() bfin_read16(OTP_STATUS)
1073#define bfin_write_OTP_STATUS(val) bfin_write16(OTP_STATUS, val)
1074#define bfin_read_OTP_TIMING() bfin_read32(OTP_TIMING)
1075#define bfin_write_OTP_TIMING(val) bfin_write32(OTP_TIMING, val)
1076
1077/* Security Registers */ 1066/* Security Registers */
1078 1067
1079#define bfin_read_SECURE_SYSSWT() bfin_read32(SECURE_SYSSWT) 1068#define bfin_read_SECURE_SYSSWT() bfin_read32(SECURE_SYSSWT)
@@ -1083,17 +1072,6 @@
1083#define bfin_read_SECURE_STATUS() bfin_read16(SECURE_STATUS) 1072#define bfin_read_SECURE_STATUS() bfin_read16(SECURE_STATUS)
1084#define bfin_write_SECURE_STATUS(val) bfin_write16(SECURE_STATUS, val) 1073#define bfin_write_SECURE_STATUS(val) bfin_write16(SECURE_STATUS, val)
1085 1074
1086/* OTP Read/Write Data Buffer Registers */
1087
1088#define bfin_read_OTP_DATA0() bfin_read32(OTP_DATA0)
1089#define bfin_write_OTP_DATA0(val) bfin_write32(OTP_DATA0, val)
1090#define bfin_read_OTP_DATA1() bfin_read32(OTP_DATA1)
1091#define bfin_write_OTP_DATA1(val) bfin_write32(OTP_DATA1, val)
1092#define bfin_read_OTP_DATA2() bfin_read32(OTP_DATA2)
1093#define bfin_write_OTP_DATA2(val) bfin_write32(OTP_DATA2, val)
1094#define bfin_read_OTP_DATA3() bfin_read32(OTP_DATA3)
1095#define bfin_write_OTP_DATA3(val) bfin_write32(OTP_DATA3, val)
1096
1097/* NFC Registers */ 1075/* NFC Registers */
1098 1076
1099#define bfin_read_NFC_CTL() bfin_read16(NFC_CTL) 1077#define bfin_read_NFC_CTL() bfin_read16(NFC_CTL)
diff --git a/arch/blackfin/mach-bf527/include/mach/defBF52x_base.h b/arch/blackfin/mach-bf527/include/mach/defBF52x_base.h
index 3dda2b8e8512..6e6a8df02c3b 100644
--- a/arch/blackfin/mach-bf527/include/mach/defBF52x_base.h
+++ b/arch/blackfin/mach-bf527/include/mach/defBF52x_base.h
@@ -1783,46 +1783,6 @@
1783#define BNDMODE_CAPT 0x2000 /* boundary capture mode */ 1783#define BNDMODE_CAPT 0x2000 /* boundary capture mode */
1784#define BNDMODE_AEXT 0x3000 /* boundary auto-extend mode */ 1784#define BNDMODE_AEXT 0x3000 /* boundary auto-extend mode */
1785 1785
1786/* Bit masks for OTP_CONTROL */
1787
1788#define FUSE_FADDR 0x1ff /* OTP/Fuse Address */
1789#define FIEN 0x800 /* OTP/Fuse Interrupt Enable */
1790#define nFIEN 0x0
1791#define FTESTDEC 0x1000 /* OTP/Fuse Test Decoder */
1792#define nFTESTDEC 0x0
1793#define FWRTEST 0x2000 /* OTP/Fuse Write Test */
1794#define nFWRTEST 0x0
1795#define FRDEN 0x4000 /* OTP/Fuse Read Enable */
1796#define nFRDEN 0x0
1797#define FWREN 0x8000 /* OTP/Fuse Write Enable */
1798#define nFWREN 0x0
1799
1800/* Bit masks for OTP_BEN */
1801
1802#define FBEN 0xffff /* OTP/Fuse Byte Enable */
1803
1804/* Bit masks for OTP_STATUS */
1805
1806#define FCOMP 0x1 /* OTP/Fuse Access Complete */
1807#define nFCOMP 0x0
1808#define FERROR 0x2 /* OTP/Fuse Access Error */
1809#define nFERROR 0x0
1810#define MMRGLOAD 0x10 /* Memory Mapped Register Gasket Load */
1811#define nMMRGLOAD 0x0
1812#define MMRGLOCK 0x20 /* Memory Mapped Register Gasket Lock */
1813#define nMMRGLOCK 0x0
1814#define FPGMEN 0x40 /* OTP/Fuse Program Enable */
1815#define nFPGMEN 0x0
1816
1817/* Bit masks for OTP_TIMING */
1818
1819#define USECDIV 0xff /* Micro Second Divider */
1820#define READACC 0x7f00 /* Read Access Time */
1821#define CPUMPRL 0x38000 /* Charge Pump Release Time */
1822#define CPUMPSU 0xc0000 /* Charge Pump Setup Time */
1823#define CPUMPHD 0xf00000 /* Charge Pump Hold Time */
1824#define PGMTIME 0xff000000 /* Program Time */
1825
1826/* Bit masks for SECURE_SYSSWT */ 1786/* Bit masks for SECURE_SYSSWT */
1827 1787
1828#define EMUDABL 0x1 /* Emulation Disable. */ 1788#define EMUDABL 0x1 /* Emulation Disable. */