diff options
author | Bryan Wu <bryan.wu@analog.com> | 2007-05-21 06:09:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-21 12:50:23 -0400 |
commit | 19381f024b01413d83cec1655c3fc4c9c09ae274 (patch) | |
tree | 4ba1d63900e031c97130638c2d678aaf15c3d37e /include/asm-blackfin/mach-bf561 | |
parent | c09c4e006590210001ced90d59e62182bfd396f9 (diff) |
Blackfin arch: update blackfin header files to latest one in VDSP.
a) add new processor BF52x/BF54x header files
b) update blackfin BF533/BF537/BF561 header files to latest one in VDSP.
c) scrub watchdog/rtc masks from headers as we dont need/want them (too generic and the drivers dont use them)
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Roy Huang <roy.huang@analog.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-blackfin/mach-bf561')
-rw-r--r-- | include/asm-blackfin/mach-bf561/defBF561.h | 105 |
1 files changed, 50 insertions, 55 deletions
diff --git a/include/asm-blackfin/mach-bf561/defBF561.h b/include/asm-blackfin/mach-bf561/defBF561.h index a6de4c69ba55..89150ecb909d 100644 --- a/include/asm-blackfin/mach-bf561/defBF561.h +++ b/include/asm-blackfin/mach-bf561/defBF561.h | |||
@@ -904,23 +904,6 @@ | |||
904 | #define IWR_ENABLE(x) (1 << (x)) /* Wakeup Enable Peripheral #x */ | 904 | #define IWR_ENABLE(x) (1 << (x)) /* Wakeup Enable Peripheral #x */ |
905 | #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << (x))) /* Wakeup Disable Peripheral #x */ | 905 | #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << (x))) /* Wakeup Disable Peripheral #x */ |
906 | 906 | ||
907 | /* ********* WATCHDOG TIMER MASKS ********************8 */ | ||
908 | |||
909 | /* Watchdog Timer WDOG_CTL Register */ | ||
910 | #define ICTL(x) ((x<<1) & 0x0006) | ||
911 | #define ENABLE_RESET 0x00000000 /* Set Watchdog Timer to generate reset */ | ||
912 | #define ENABLE_NMI 0x00000002 /* Set Watchdog Timer to generate non-maskable interrupt */ | ||
913 | #define ENABLE_GPI 0x00000004 /* Set Watchdog Timer to generate general-purpose interrupt */ | ||
914 | #define DISABLE_EVT 0x00000006 /* Disable Watchdog Timer interrupts */ | ||
915 | |||
916 | #define TMR_EN 0x0000 | ||
917 | #define TMR_DIS 0x0AD0 | ||
918 | #define TRO 0x8000 | ||
919 | |||
920 | #define ICTL_P0 0x01 | ||
921 | #define ICTL_P1 0x02 | ||
922 | #define TRO_P 0x0F | ||
923 | |||
924 | /* ***************************** UART CONTROLLER MASKS ********************** */ | 907 | /* ***************************** UART CONTROLLER MASKS ********************** */ |
925 | 908 | ||
926 | /* UART_LCR Register */ | 909 | /* UART_LCR Register */ |
@@ -1214,18 +1197,18 @@ | |||
1214 | #define TIMIL9 0x0002 | 1197 | #define TIMIL9 0x0002 |
1215 | #define TIMIL10 0x0004 | 1198 | #define TIMIL10 0x0004 |
1216 | #define TIMIL11 0x0008 | 1199 | #define TIMIL11 0x0008 |
1217 | #define TOVL_ERR0 0x00000010 | 1200 | #define TOVF_ERR0 0x00000010 |
1218 | #define TOVL_ERR1 0x00000020 | 1201 | #define TOVF_ERR1 0x00000020 |
1219 | #define TOVL_ERR2 0x00000040 | 1202 | #define TOVF_ERR2 0x00000040 |
1220 | #define TOVL_ERR3 0x00000080 | 1203 | #define TOVF_ERR3 0x00000080 |
1221 | #define TOVL_ERR4 0x00100000 | 1204 | #define TOVF_ERR4 0x00100000 |
1222 | #define TOVL_ERR5 0x00200000 | 1205 | #define TOVF_ERR5 0x00200000 |
1223 | #define TOVL_ERR6 0x00400000 | 1206 | #define TOVF_ERR6 0x00400000 |
1224 | #define TOVL_ERR7 0x00800000 | 1207 | #define TOVF_ERR7 0x00800000 |
1225 | #define TOVL_ERR8 0x0010 | 1208 | #define TOVF_ERR8 0x0010 |
1226 | #define TOVL_ERR9 0x0020 | 1209 | #define TOVF_ERR9 0x0020 |
1227 | #define TOVL_ERR10 0x0040 | 1210 | #define TOVF_ERR10 0x0040 |
1228 | #define TOVL_ERR11 0x0080 | 1211 | #define TOVF_ERR11 0x0080 |
1229 | #define TRUN0 0x00001000 | 1212 | #define TRUN0 0x00001000 |
1230 | #define TRUN1 0x00002000 | 1213 | #define TRUN1 0x00002000 |
1231 | #define TRUN2 0x00004000 | 1214 | #define TRUN2 0x00004000 |
@@ -1251,18 +1234,18 @@ | |||
1251 | #define TIMIL9_P 0x01 | 1234 | #define TIMIL9_P 0x01 |
1252 | #define TIMIL10_P 0x02 | 1235 | #define TIMIL10_P 0x02 |
1253 | #define TIMIL11_P 0x03 | 1236 | #define TIMIL11_P 0x03 |
1254 | #define TOVL_ERR0_P 0x04 | 1237 | #define TOVF_ERR0_P 0x04 |
1255 | #define TOVL_ERR1_P 0x05 | 1238 | #define TOVF_ERR1_P 0x05 |
1256 | #define TOVL_ERR2_P 0x06 | 1239 | #define TOVF_ERR2_P 0x06 |
1257 | #define TOVL_ERR3_P 0x07 | 1240 | #define TOVF_ERR3_P 0x07 |
1258 | #define TOVL_ERR4_P 0x14 | 1241 | #define TOVF_ERR4_P 0x14 |
1259 | #define TOVL_ERR5_P 0x15 | 1242 | #define TOVF_ERR5_P 0x15 |
1260 | #define TOVL_ERR6_P 0x16 | 1243 | #define TOVF_ERR6_P 0x16 |
1261 | #define TOVL_ERR7_P 0x17 | 1244 | #define TOVF_ERR7_P 0x17 |
1262 | #define TOVL_ERR8_P 0x04 | 1245 | #define TOVF_ERR8_P 0x04 |
1263 | #define TOVL_ERR9_P 0x05 | 1246 | #define TOVF_ERR9_P 0x05 |
1264 | #define TOVL_ERR10_P 0x06 | 1247 | #define TOVF_ERR10_P 0x06 |
1265 | #define TOVL_ERR11_P 0x07 | 1248 | #define TOVF_ERR11_P 0x07 |
1266 | #define TRUN0_P 0x0C | 1249 | #define TRUN0_P 0x0C |
1267 | #define TRUN1_P 0x0D | 1250 | #define TRUN1_P 0x0D |
1268 | #define TRUN2_P 0x0E | 1251 | #define TRUN2_P 0x0E |
@@ -1276,6 +1259,32 @@ | |||
1276 | #define TRUN10_P 0x0E | 1259 | #define TRUN10_P 0x0E |
1277 | #define TRUN11_P 0x0F | 1260 | #define TRUN11_P 0x0F |
1278 | 1261 | ||
1262 | /* Alternate Deprecated Macros Provided For Backwards Code Compatibility */ | ||
1263 | #define TOVL_ERR0 TOVF_ERR0 | ||
1264 | #define TOVL_ERR1 TOVF_ERR1 | ||
1265 | #define TOVL_ERR2 TOVF_ERR2 | ||
1266 | #define TOVL_ERR3 TOVF_ERR3 | ||
1267 | #define TOVL_ERR4 TOVF_ERR4 | ||
1268 | #define TOVL_ERR5 TOVF_ERR5 | ||
1269 | #define TOVL_ERR6 TOVF_ERR6 | ||
1270 | #define TOVL_ERR7 TOVF_ERR7 | ||
1271 | #define TOVL_ERR8 TOVF_ERR8 | ||
1272 | #define TOVL_ERR9 TOVF_ERR9 | ||
1273 | #define TOVL_ERR10 TOVF_ERR10 | ||
1274 | #define TOVL_ERR11 TOVF_ERR11 | ||
1275 | #define TOVL_ERR0_P TOVF_ERR0_P | ||
1276 | #define TOVL_ERR1_P TOVF_ERR1_P | ||
1277 | #define TOVL_ERR2_P TOVF_ERR2_P | ||
1278 | #define TOVL_ERR3_P TOVF_ERR3_P | ||
1279 | #define TOVL_ERR4_P TOVF_ERR4_P | ||
1280 | #define TOVL_ERR5_P TOVF_ERR5_P | ||
1281 | #define TOVL_ERR6_P TOVF_ERR6_P | ||
1282 | #define TOVL_ERR7_P TOVF_ERR7_P | ||
1283 | #define TOVL_ERR8_P TOVF_ERR8_P | ||
1284 | #define TOVL_ERR9_P TOVF_ERR9_P | ||
1285 | #define TOVL_ERR10_P TOVF_ERR10_P | ||
1286 | #define TOVL_ERR11_P TOVF_ERR11_P | ||
1287 | |||
1279 | /* TIMERx_CONFIG Registers */ | 1288 | /* TIMERx_CONFIG Registers */ |
1280 | #define PWM_OUT 0x0001 | 1289 | #define PWM_OUT 0x0001 |
1281 | #define WDTH_CAP 0x0002 | 1290 | #define WDTH_CAP 0x0002 |
@@ -1700,18 +1709,4 @@ | |||
1700 | #define SDEASE 0x00000010 /* SDRAM EAB sticky error status - W1C */ | 1709 | #define SDEASE 0x00000010 /* SDRAM EAB sticky error status - W1C */ |
1701 | #define BGSTAT 0x00000020 /* Bus granted */ | 1710 | #define BGSTAT 0x00000020 /* Bus granted */ |
1702 | 1711 | ||
1703 | /*VR_CTL Masks*/ | ||
1704 | #define WAKE 0x100 | ||
1705 | #define VLEV_6 0x60 | ||
1706 | #define VLEV_7 0x70 | ||
1707 | #define VLEV_8 0x80 | ||
1708 | #define VLEV_9 0x90 | ||
1709 | #define VLEV_10 0xA0 | ||
1710 | #define VLEV_11 0xB0 | ||
1711 | #define VLEV_12 0xC0 | ||
1712 | #define VLEV_13 0xD0 | ||
1713 | #define VLEV_14 0xE0 | ||
1714 | #define VLEV_15 0xF0 | ||
1715 | #define FREQ_3 0x03 | ||
1716 | |||
1717 | #endif /* _DEF_BF561_H */ | 1712 | #endif /* _DEF_BF561_H */ |