diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-10-14 23:45:47 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-15 00:14:40 -0500 |
commit | cd32cc73625641c068393978e7bb337d29c0cd29 (patch) | |
tree | 2919e991260ccb6603b9ac713cd0dff5f83d8854 /arch/blackfin/mach-bf518 | |
parent | b1fa2e8f626e997c2c4f991f10ed00b6ee080b99 (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-bf518')
-rw-r--r-- | arch/blackfin/mach-bf518/include/mach/cdefBF51x_base.h | 22 | ||||
-rw-r--r-- | arch/blackfin/mach-bf518/include/mach/defBF51x_base.h | 40 |
2 files changed, 0 insertions, 62 deletions
diff --git a/arch/blackfin/mach-bf518/include/mach/cdefBF51x_base.h b/arch/blackfin/mach-bf518/include/mach/cdefBF51x_base.h index c1b71bb2770a..e548e9d1d6fa 100644 --- a/arch/blackfin/mach-bf518/include/mach/cdefBF51x_base.h +++ b/arch/blackfin/mach-bf518/include/mach/cdefBF51x_base.h | |||
@@ -1046,17 +1046,6 @@ | |||
1046 | #define bfin_read_CNT_MIN() bfin_read32(CNT_MIN) | 1046 | #define bfin_read_CNT_MIN() bfin_read32(CNT_MIN) |
1047 | #define bfin_write_CNT_MIN(val) bfin_write32(CNT_MIN, val) | 1047 | #define bfin_write_CNT_MIN(val) bfin_write32(CNT_MIN, val) |
1048 | 1048 | ||
1049 | /* OTP/FUSE Registers */ | ||
1050 | |||
1051 | #define bfin_read_OTP_CONTROL() bfin_read16(OTP_CONTROL) | ||
1052 | #define bfin_write_OTP_CONTROL(val) bfin_write16(OTP_CONTROL, val) | ||
1053 | #define bfin_read_OTP_BEN() bfin_read16(OTP_BEN) | ||
1054 | #define bfin_write_OTP_BEN(val) bfin_write16(OTP_BEN, val) | ||
1055 | #define bfin_read_OTP_STATUS() bfin_read16(OTP_STATUS) | ||
1056 | #define bfin_write_OTP_STATUS(val) bfin_write16(OTP_STATUS, val) | ||
1057 | #define bfin_read_OTP_TIMING() bfin_read32(OTP_TIMING) | ||
1058 | #define bfin_write_OTP_TIMING(val) bfin_write32(OTP_TIMING, val) | ||
1059 | |||
1060 | /* Security Registers */ | 1049 | /* Security Registers */ |
1061 | 1050 | ||
1062 | #define bfin_read_SECURE_SYSSWT() bfin_read32(SECURE_SYSSWT) | 1051 | #define bfin_read_SECURE_SYSSWT() bfin_read32(SECURE_SYSSWT) |
@@ -1066,17 +1055,6 @@ | |||
1066 | #define bfin_read_SECURE_STATUS() bfin_read16(SECURE_STATUS) | 1055 | #define bfin_read_SECURE_STATUS() bfin_read16(SECURE_STATUS) |
1067 | #define bfin_write_SECURE_STATUS(val) bfin_write16(SECURE_STATUS, val) | 1056 | #define bfin_write_SECURE_STATUS(val) bfin_write16(SECURE_STATUS, val) |
1068 | 1057 | ||
1069 | /* OTP Read/Write Data Buffer Registers */ | ||
1070 | |||
1071 | #define bfin_read_OTP_DATA0() bfin_read32(OTP_DATA0) | ||
1072 | #define bfin_write_OTP_DATA0(val) bfin_write32(OTP_DATA0, val) | ||
1073 | #define bfin_read_OTP_DATA1() bfin_read32(OTP_DATA1) | ||
1074 | #define bfin_write_OTP_DATA1(val) bfin_write32(OTP_DATA1, val) | ||
1075 | #define bfin_read_OTP_DATA2() bfin_read32(OTP_DATA2) | ||
1076 | #define bfin_write_OTP_DATA2(val) bfin_write32(OTP_DATA2, val) | ||
1077 | #define bfin_read_OTP_DATA3() bfin_read32(OTP_DATA3) | ||
1078 | #define bfin_write_OTP_DATA3(val) bfin_write32(OTP_DATA3, val) | ||
1079 | |||
1080 | /* These need to be last due to the cdef/linux inter-dependencies */ | 1058 | /* These need to be last due to the cdef/linux inter-dependencies */ |
1081 | #include <asm/irq.h> | 1059 | #include <asm/irq.h> |
1082 | 1060 | ||
diff --git a/arch/blackfin/mach-bf518/include/mach/defBF51x_base.h b/arch/blackfin/mach-bf518/include/mach/defBF51x_base.h index 83e8c34547b3..78253e838f3d 100644 --- a/arch/blackfin/mach-bf518/include/mach/defBF51x_base.h +++ b/arch/blackfin/mach-bf518/include/mach/defBF51x_base.h | |||
@@ -1770,46 +1770,6 @@ | |||
1770 | #define BNDMODE_CAPT 0x2000 /* boundary capture mode */ | 1770 | #define BNDMODE_CAPT 0x2000 /* boundary capture mode */ |
1771 | #define BNDMODE_AEXT 0x3000 /* boundary auto-extend mode */ | 1771 | #define BNDMODE_AEXT 0x3000 /* boundary auto-extend mode */ |
1772 | 1772 | ||
1773 | /* Bit masks for OTP_CONTROL */ | ||
1774 | |||
1775 | #define FUSE_FADDR 0x1ff /* OTP/Fuse Address */ | ||
1776 | #define FIEN 0x800 /* OTP/Fuse Interrupt Enable */ | ||
1777 | #define nFIEN 0x0 | ||
1778 | #define FTESTDEC 0x1000 /* OTP/Fuse Test Decoder */ | ||
1779 | #define nFTESTDEC 0x0 | ||
1780 | #define FWRTEST 0x2000 /* OTP/Fuse Write Test */ | ||
1781 | #define nFWRTEST 0x0 | ||
1782 | #define FRDEN 0x4000 /* OTP/Fuse Read Enable */ | ||
1783 | #define nFRDEN 0x0 | ||
1784 | #define FWREN 0x8000 /* OTP/Fuse Write Enable */ | ||
1785 | #define nFWREN 0x0 | ||
1786 | |||
1787 | /* Bit masks for OTP_BEN */ | ||
1788 | |||
1789 | #define FBEN 0xffff /* OTP/Fuse Byte Enable */ | ||
1790 | |||
1791 | /* Bit masks for OTP_STATUS */ | ||
1792 | |||
1793 | #define FCOMP 0x1 /* OTP/Fuse Access Complete */ | ||
1794 | #define nFCOMP 0x0 | ||
1795 | #define FERROR 0x2 /* OTP/Fuse Access Error */ | ||
1796 | #define nFERROR 0x0 | ||
1797 | #define MMRGLOAD 0x10 /* Memory Mapped Register Gasket Load */ | ||
1798 | #define nMMRGLOAD 0x0 | ||
1799 | #define MMRGLOCK 0x20 /* Memory Mapped Register Gasket Lock */ | ||
1800 | #define nMMRGLOCK 0x0 | ||
1801 | #define FPGMEN 0x40 /* OTP/Fuse Program Enable */ | ||
1802 | #define nFPGMEN 0x0 | ||
1803 | |||
1804 | /* Bit masks for OTP_TIMING */ | ||
1805 | |||
1806 | #define USECDIV 0xff /* Micro Second Divider */ | ||
1807 | #define READACC 0x7f00 /* Read Access Time */ | ||
1808 | #define CPUMPRL 0x38000 /* Charge Pump Release Time */ | ||
1809 | #define CPUMPSU 0xc0000 /* Charge Pump Setup Time */ | ||
1810 | #define CPUMPHD 0xf00000 /* Charge Pump Hold Time */ | ||
1811 | #define PGMTIME 0xff000000 /* Program Time */ | ||
1812 | |||
1813 | /* Bit masks for SECURE_SYSSWT */ | 1773 | /* Bit masks for SECURE_SYSSWT */ |
1814 | 1774 | ||
1815 | #define EMUDABL 0x1 /* Emulation Disable. */ | 1775 | #define EMUDABL 0x1 /* Emulation Disable. */ |