diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2007-07-11 23:48:14 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-07-11 23:48:14 -0400 |
commit | c9e27ece79f6170fd1cd1a40c5de5d93456606e7 (patch) | |
tree | b69be4a0fdf29e67e125f513a5d865a15f3bb918 | |
parent | cefe658bca9cf1d4af841c45d170ebd0f881889e (diff) |
Blackfin arch: Fix Warning add some defines in BF54x header file
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
-rw-r--r-- | include/asm-blackfin/mach-bf548/defBF54x_base.h | 85 |
1 files changed, 47 insertions, 38 deletions
diff --git a/include/asm-blackfin/mach-bf548/defBF54x_base.h b/include/asm-blackfin/mach-bf548/defBF54x_base.h index 2381ac50a2cf..895ddd40a838 100644 --- a/include/asm-blackfin/mach-bf548/defBF54x_base.h +++ b/include/asm-blackfin/mach-bf548/defBF54x_base.h | |||
@@ -3050,6 +3050,15 @@ | |||
3050 | #define FIFO_RWM 0x18000000 /* FIFO Regular Watermarks */ | 3050 | #define FIFO_RWM 0x18000000 /* FIFO Regular Watermarks */ |
3051 | #define FIFO_UWM 0x60000000 /* FIFO Urgent Watermarks */ | 3051 | #define FIFO_UWM 0x60000000 /* FIFO Urgent Watermarks */ |
3052 | 3052 | ||
3053 | #define DLEN_8 (0 << 15) /* 000 - 8 bits */ | ||
3054 | #define DLEN_10 (1 << 15) /* 001 - 10 bits */ | ||
3055 | #define DLEN_12 (2 << 15) /* 010 - 12 bits */ | ||
3056 | #define DLEN_14 (3 << 15) /* 011 - 14 bits */ | ||
3057 | #define DLEN_16 (4 << 15) /* 100 - 16 bits */ | ||
3058 | #define DLEN_18 (5 << 15) /* 101 - 18 bits */ | ||
3059 | #define DLEN_24 (6 << 15) /* 110 - 24 bits */ | ||
3060 | |||
3061 | |||
3053 | /* Bit masks for EPPIx_FS2W_LVB */ | 3062 | /* Bit masks for EPPIx_FS2W_LVB */ |
3054 | 3063 | ||
3055 | #define F1VB_BD 0xff /* Vertical Blanking before Field 1 Active Data */ | 3064 | #define F1VB_BD 0xff /* Vertical Blanking before Field 1 Active Data */ |
@@ -3365,32 +3374,32 @@ | |||
3365 | /* BCODE bit field options (SYSCFG register) */ | 3374 | /* BCODE bit field options (SYSCFG register) */ |
3366 | 3375 | ||
3367 | #define BCODE_WAKEUP 0x0000 /* boot according to wake-up condition */ | 3376 | #define BCODE_WAKEUP 0x0000 /* boot according to wake-up condition */ |
3368 | #define BCODE_FULLBOOT 0x0010 /* always perform full boot */ | 3377 | #define BCODE_FULLBOOT 0x0010 /* always perform full boot */ |
3369 | #define BCODE_QUICKBOOT 0x0020 /* always perform quick boot */ | 3378 | #define BCODE_QUICKBOOT 0x0020 /* always perform quick boot */ |
3370 | #define BCODE_NOBOOT 0x0030 /* always perform full boot */ | 3379 | #define BCODE_NOBOOT 0x0030 /* always perform full boot */ |
3371 | 3380 | ||
3372 | /* CNT_COMMAND bit field options */ | 3381 | /* CNT_COMMAND bit field options */ |
3373 | 3382 | ||
3374 | #define W1LCNT_ZERO 0x0001 /* write 1 to load CNT_COUNTER with zero */ | 3383 | #define W1LCNT_ZERO 0x0001 /* write 1 to load CNT_COUNTER with zero */ |
3375 | #define W1LCNT_MIN 0x0004 /* write 1 to load CNT_COUNTER from CNT_MIN */ | 3384 | #define W1LCNT_MIN 0x0004 /* write 1 to load CNT_COUNTER from CNT_MIN */ |
3376 | #define W1LCNT_MAX 0x0008 /* write 1 to load CNT_COUNTER from CNT_MAX */ | 3385 | #define W1LCNT_MAX 0x0008 /* write 1 to load CNT_COUNTER from CNT_MAX */ |
3377 | 3386 | ||
3378 | #define W1LMIN_ZERO 0x0010 /* write 1 to load CNT_MIN with zero */ | 3387 | #define W1LMIN_ZERO 0x0010 /* write 1 to load CNT_MIN with zero */ |
3379 | #define W1LMIN_CNT 0x0020 /* write 1 to load CNT_MIN from CNT_COUNTER */ | 3388 | #define W1LMIN_CNT 0x0020 /* write 1 to load CNT_MIN from CNT_COUNTER */ |
3380 | #define W1LMIN_MAX 0x0080 /* write 1 to load CNT_MIN from CNT_MAX */ | 3389 | #define W1LMIN_MAX 0x0080 /* write 1 to load CNT_MIN from CNT_MAX */ |
3381 | 3390 | ||
3382 | #define W1LMAX_ZERO 0x0100 /* write 1 to load CNT_MAX with zero */ | 3391 | #define W1LMAX_ZERO 0x0100 /* write 1 to load CNT_MAX with zero */ |
3383 | #define W1LMAX_CNT 0x0200 /* write 1 to load CNT_MAX from CNT_COUNTER */ | 3392 | #define W1LMAX_CNT 0x0200 /* write 1 to load CNT_MAX from CNT_COUNTER */ |
3384 | #define W1LMAX_MIN 0x0400 /* write 1 to load CNT_MAX from CNT_MIN */ | 3393 | #define W1LMAX_MIN 0x0400 /* write 1 to load CNT_MAX from CNT_MIN */ |
3385 | 3394 | ||
3386 | /* CNT_CONFIG bit field options */ | 3395 | /* CNT_CONFIG bit field options */ |
3387 | 3396 | ||
3388 | #define CNTMODE_QUADENC 0x0000 /* quadrature encoder mode */ | 3397 | #define CNTMODE_QUADENC 0x0000 /* quadrature encoder mode */ |
3389 | #define CNTMODE_BINENC 0x0100 /* binary encoder mode */ | 3398 | #define CNTMODE_BINENC 0x0100 /* binary encoder mode */ |
3390 | #define CNTMODE_UDCNT 0x0200 /* up/down counter mode */ | 3399 | #define CNTMODE_UDCNT 0x0200 /* up/down counter mode */ |
3391 | #define CNTMODE_DIRCNT 0x0400 /* direction counter mode */ | 3400 | #define CNTMODE_DIRCNT 0x0400 /* direction counter mode */ |
3392 | #define CNTMODE_DIRTMR 0x0500 /* direction timer mode */ | 3401 | #define CNTMODE_DIRTMR 0x0500 /* direction timer mode */ |
3393 | 3402 | ||
3394 | #define BNDMODE_COMP 0x0000 /* boundary compare mode */ | 3403 | #define BNDMODE_COMP 0x0000 /* boundary compare mode */ |
3395 | #define BNDMODE_ZERO 0x1000 /* boundary compare and zero mode */ | 3404 | #define BNDMODE_ZERO 0x1000 /* boundary compare and zero mode */ |
3396 | #define BNDMODE_CAPT 0x2000 /* boundary capture mode */ | 3405 | #define BNDMODE_CAPT 0x2000 /* boundary capture mode */ |
@@ -3403,7 +3412,7 @@ | |||
3403 | #define EXT_CLK 0x0003 | 3412 | #define EXT_CLK 0x0003 |
3404 | 3413 | ||
3405 | /* UARTx_LCR bit field options */ | 3414 | /* UARTx_LCR bit field options */ |
3406 | 3415 | ||
3407 | #define WLS_5 0x0000 /* 5 data bits */ | 3416 | #define WLS_5 0x0000 /* 5 data bits */ |
3408 | #define WLS_6 0x0001 /* 6 data bits */ | 3417 | #define WLS_6 0x0001 /* 6 data bits */ |
3409 | #define WLS_7 0x0002 /* 7 data bits */ | 3418 | #define WLS_7 0x0002 /* 7 data bits */ |
@@ -3451,7 +3460,7 @@ | |||
3451 | #define PIQ30 0x40000000 | 3460 | #define PIQ30 0x40000000 |
3452 | #define PIQ31 0x80000000 | 3461 | #define PIQ31 0x80000000 |
3453 | 3462 | ||
3454 | /* PORT A Bit Definitions for the registers | 3463 | /* PORT A Bit Definitions for the registers |
3455 | PORTA, PORTA_SET, PORTA_CLEAR, | 3464 | PORTA, PORTA_SET, PORTA_CLEAR, |
3456 | PORTA_DIR_SET, PORTA_DIR_CLEAR, PORTA_INEN, | 3465 | PORTA_DIR_SET, PORTA_DIR_CLEAR, PORTA_INEN, |
3457 | PORTA_FER registers | 3466 | PORTA_FER registers |
@@ -3474,7 +3483,7 @@ PORTA_FER registers | |||
3474 | #define PA14 0x4000 | 3483 | #define PA14 0x4000 |
3475 | #define PA15 0x8000 | 3484 | #define PA15 0x8000 |
3476 | 3485 | ||
3477 | /* PORT B Bit Definitions for the registers | 3486 | /* PORT B Bit Definitions for the registers |
3478 | PORTB, PORTB_SET, PORTB_CLEAR, | 3487 | PORTB, PORTB_SET, PORTB_CLEAR, |
3479 | PORTB_DIR_SET, PORTB_DIR_CLEAR, PORTB_INEN, | 3488 | PORTB_DIR_SET, PORTB_DIR_CLEAR, PORTB_INEN, |
3480 | PORTB_FER registers | 3489 | PORTB_FER registers |
@@ -3497,7 +3506,7 @@ PORTB_FER registers | |||
3497 | #define PB14 0x4000 | 3506 | #define PB14 0x4000 |
3498 | 3507 | ||
3499 | 3508 | ||
3500 | /* PORT C Bit Definitions for the registers | 3509 | /* PORT C Bit Definitions for the registers |
3501 | PORTC, PORTC_SET, PORTC_CLEAR, | 3510 | PORTC, PORTC_SET, PORTC_CLEAR, |
3502 | PORTC_DIR_SET, PORTC_DIR_CLEAR, PORTC_INEN, | 3511 | PORTC_DIR_SET, PORTC_DIR_CLEAR, PORTC_INEN, |
3503 | PORTC_FER registers | 3512 | PORTC_FER registers |
@@ -3520,7 +3529,7 @@ PORTC_FER registers | |||
3520 | #define PC13 0x2000 | 3529 | #define PC13 0x2000 |
3521 | 3530 | ||
3522 | 3531 | ||
3523 | /* PORT D Bit Definitions for the registers | 3532 | /* PORT D Bit Definitions for the registers |
3524 | PORTD, PORTD_SET, PORTD_CLEAR, | 3533 | PORTD, PORTD_SET, PORTD_CLEAR, |
3525 | PORTD_DIR_SET, PORTD_DIR_CLEAR, PORTD_INEN, | 3534 | PORTD_DIR_SET, PORTD_DIR_CLEAR, PORTD_INEN, |
3526 | PORTD_FER registers | 3535 | PORTD_FER registers |
@@ -3543,7 +3552,7 @@ PORTD_FER registers | |||
3543 | #define PD14 0x4000 | 3552 | #define PD14 0x4000 |
3544 | #define PD15 0x8000 | 3553 | #define PD15 0x8000 |
3545 | 3554 | ||
3546 | /* PORT E Bit Definitions for the registers | 3555 | /* PORT E Bit Definitions for the registers |
3547 | PORTE, PORTE_SET, PORTE_CLEAR, | 3556 | PORTE, PORTE_SET, PORTE_CLEAR, |
3548 | PORTE_DIR_SET, PORTE_DIR_CLEAR, PORTE_INEN, | 3557 | PORTE_DIR_SET, PORTE_DIR_CLEAR, PORTE_INEN, |
3549 | PORTE_FER registers | 3558 | PORTE_FER registers |
@@ -3567,7 +3576,7 @@ PORTE_FER registers | |||
3567 | #define PE14 0x4000 | 3576 | #define PE14 0x4000 |
3568 | #define PE15 0x8000 | 3577 | #define PE15 0x8000 |
3569 | 3578 | ||
3570 | /* PORT F Bit Definitions for the registers | 3579 | /* PORT F Bit Definitions for the registers |
3571 | PORTF, PORTF_SET, PORTF_CLEAR, | 3580 | PORTF, PORTF_SET, PORTF_CLEAR, |
3572 | PORTF_DIR_SET, PORTF_DIR_CLEAR, PORTF_INEN, | 3581 | PORTF_DIR_SET, PORTF_DIR_CLEAR, PORTF_INEN, |
3573 | PORTF_FER registers | 3582 | PORTF_FER registers |
@@ -3591,7 +3600,7 @@ PORTF_FER registers | |||
3591 | #define PF14 0x4000 | 3600 | #define PF14 0x4000 |
3592 | #define PF15 0x8000 | 3601 | #define PF15 0x8000 |
3593 | 3602 | ||
3594 | /* PORT G Bit Definitions for the registers | 3603 | /* PORT G Bit Definitions for the registers |
3595 | PORTG, PORTG_SET, PORTG_CLEAR, | 3604 | PORTG, PORTG_SET, PORTG_CLEAR, |
3596 | PORTG_DIR_SET, PORTG_DIR_CLEAR, PORTG_INEN, | 3605 | PORTG_DIR_SET, PORTG_DIR_CLEAR, PORTG_INEN, |
3597 | PORTG_FER registers | 3606 | PORTG_FER registers |
@@ -3615,7 +3624,7 @@ PORTG_FER registers | |||
3615 | #define PG14 0x4000 | 3624 | #define PG14 0x4000 |
3616 | #define PG15 0x8000 | 3625 | #define PG15 0x8000 |
3617 | 3626 | ||
3618 | /* PORT H Bit Definitions for the registers | 3627 | /* PORT H Bit Definitions for the registers |
3619 | PORTH, PORTH_SET, PORTH_CLEAR, | 3628 | PORTH, PORTH_SET, PORTH_CLEAR, |
3620 | PORTH_DIR_SET, PORTH_DIR_CLEAR, PORTH_INEN, | 3629 | PORTH_DIR_SET, PORTH_DIR_CLEAR, PORTH_INEN, |
3621 | PORTH_FER registers | 3630 | PORTH_FER registers |
@@ -3638,7 +3647,7 @@ PORTH_FER registers | |||
3638 | #define PH13 0x2000 | 3647 | #define PH13 0x2000 |
3639 | 3648 | ||
3640 | 3649 | ||
3641 | /* PORT I Bit Definitions for the registers | 3650 | /* PORT I Bit Definitions for the registers |
3642 | PORTI, PORTI_SET, PORTI_CLEAR, | 3651 | PORTI, PORTI_SET, PORTI_CLEAR, |
3643 | PORTI_DIR_SET, PORTI_DIR_CLEAR, PORTI_INEN, | 3652 | PORTI_DIR_SET, PORTI_DIR_CLEAR, PORTI_INEN, |
3644 | PORTI_FER registers | 3653 | PORTI_FER registers |
@@ -3662,7 +3671,7 @@ PORTI_FER registers | |||
3662 | #define PI14 0x4000 | 3671 | #define PI14 0x4000 |
3663 | #define PI15 0x8000 | 3672 | #define PI15 0x8000 |
3664 | 3673 | ||
3665 | /* PORT J Bit Definitions for the registers | 3674 | /* PORT J Bit Definitions for the registers |
3666 | PORTJ, PORTJ_SET, PORTJ_CLEAR, | 3675 | PORTJ, PORTJ_SET, PORTJ_CLEAR, |
3667 | PORTJ_DIR_SET, PORTJ_DIR_CLEAR, PORTJ_INEN, | 3676 | PORTJ_DIR_SET, PORTJ_DIR_CLEAR, PORTJ_INEN, |
3668 | PORTJ_FER registers | 3677 | PORTJ_FER registers |
@@ -3683,7 +3692,7 @@ PORTJ_FER registers | |||
3683 | #define PJ11 0x0800 | 3692 | #define PJ11 0x0800 |
3684 | #define PJ12 0x1000 | 3693 | #define PJ12 0x1000 |
3685 | #define PJ13 0x2000 | 3694 | #define PJ13 0x2000 |
3686 | 3695 | ||
3687 | 3696 | ||
3688 | /* Port Muxing Bit Fields for PORTx_MUX Registers */ | 3697 | /* Port Muxing Bit Fields for PORTx_MUX Registers */ |
3689 | 3698 | ||
@@ -3827,7 +3836,7 @@ PORTJ_FER registers | |||
3827 | #define B0MAP_PIL 0x00000006 /* Map Port I Low to Byte 0 */ | 3836 | #define B0MAP_PIL 0x00000006 /* Map Port I Low to Byte 0 */ |
3828 | #define B0MAP_PJL 0x00000007 /* Map Port J Low to Byte 0 */ | 3837 | #define B0MAP_PJL 0x00000007 /* Map Port J Low to Byte 0 */ |
3829 | 3838 | ||
3830 | #define B1MAP_PCH 0x00000000 /* Map Port C High to Byte 1 */ | 3839 | #define B1MAP_PCH 0x00000000 /* Map Port C High to Byte 1 */ |
3831 | #define B1MAP_PDH 0x00000100 /* Map Port D High to Byte 1 */ | 3840 | #define B1MAP_PDH 0x00000100 /* Map Port D High to Byte 1 */ |
3832 | #define B1MAP_PEH 0x00000200 /* Map Port E High to Byte 1 */ | 3841 | #define B1MAP_PEH 0x00000200 /* Map Port E High to Byte 1 */ |
3833 | #define B1MAP_PFH 0x00000300 /* Map Port F High to Byte 1 */ | 3842 | #define B1MAP_PFH 0x00000300 /* Map Port F High to Byte 1 */ |
@@ -3836,27 +3845,27 @@ PORTJ_FER registers | |||
3836 | #define B1MAP_PIH 0x00000600 /* Map Port I High to Byte 1 */ | 3845 | #define B1MAP_PIH 0x00000600 /* Map Port I High to Byte 1 */ |
3837 | #define B1MAP_PJH 0x00000700 /* Map Port J High to Byte 1 */ | 3846 | #define B1MAP_PJH 0x00000700 /* Map Port J High to Byte 1 */ |
3838 | 3847 | ||
3839 | #define B2MAP_PCL 0x00000000 /* Map Port C Low to Byte 2 */ | 3848 | #define B2MAP_PCL 0x00000000 /* Map Port C Low to Byte 2 */ |
3840 | #define B2MAP_PDL 0x00010000 /* Map Port D Low to Byte 2 */ | 3849 | #define B2MAP_PDL 0x00010000 /* Map Port D Low to Byte 2 */ |
3841 | #define B2MAP_PEL 0x00020000 /* Map Port E Low to Byte 2 */ | 3850 | #define B2MAP_PEL 0x00020000 /* Map Port E Low to Byte 2 */ |
3842 | #define B2MAP_PFL 0x00030000 /* Map Port F Low to Byte 2 */ | 3851 | #define B2MAP_PFL 0x00030000 /* Map Port F Low to Byte 2 */ |
3843 | #define B2MAP_PGL 0x00040000 /* Map Port G Low to Byte 2 */ | 3852 | #define B2MAP_PGL 0x00040000 /* Map Port G Low to Byte 2 */ |
3844 | #define B2MAP_PHL 0x00050000 /* Map Port H Low to Byte 2 */ | 3853 | #define B2MAP_PHL 0x00050000 /* Map Port H Low to Byte 2 */ |
3845 | #define B2MAP_PIL 0x00060000 /* Map Port I Low to Byte 2 */ | 3854 | #define B2MAP_PIL 0x00060000 /* Map Port I Low to Byte 2 */ |
3846 | #define B2MAP_PJL 0x00070000 /* Map Port J Low to Byte 2 */ | 3855 | #define B2MAP_PJL 0x00070000 /* Map Port J Low to Byte 2 */ |
3847 | 3856 | ||
3848 | #define B3MAP_PCH 0x00000000 /* Map Port C High to Byte 3 */ | 3857 | #define B3MAP_PCH 0x00000000 /* Map Port C High to Byte 3 */ |
3849 | #define B3MAP_PDH 0x01000000 /* Map Port D High to Byte 3 */ | 3858 | #define B3MAP_PDH 0x01000000 /* Map Port D High to Byte 3 */ |
3850 | #define B3MAP_PEH 0x02000000 /* Map Port E High to Byte 3 */ | 3859 | #define B3MAP_PEH 0x02000000 /* Map Port E High to Byte 3 */ |
3851 | #define B3MAP_PFH 0x03000000 /* Map Port F High to Byte 3 */ | 3860 | #define B3MAP_PFH 0x03000000 /* Map Port F High to Byte 3 */ |
3852 | #define B3MAP_PGH 0x04000000 /* Map Port G High to Byte 3 */ | 3861 | #define B3MAP_PGH 0x04000000 /* Map Port G High to Byte 3 */ |
3853 | #define B3MAP_PHH 0x05000000 /* Map Port H High to Byte 3 */ | 3862 | #define B3MAP_PHH 0x05000000 /* Map Port H High to Byte 3 */ |
3854 | #define B3MAP_PIH 0x06000000 /* Map Port I High to Byte 3 */ | 3863 | #define B3MAP_PIH 0x06000000 /* Map Port I High to Byte 3 */ |
3855 | #define B3MAP_PJH 0x07000000 /* Map Port J High to Byte 3 */ | 3864 | #define B3MAP_PJH 0x07000000 /* Map Port J High to Byte 3 */ |
3856 | 3865 | ||
3857 | 3866 | ||
3858 | /* for legacy compatibility */ | 3867 | /* for legacy compatibility */ |
3859 | 3868 | ||
3860 | #define WLS(x) (((x)-5) & 0x03) /* Word Length Select */ | 3869 | #define WLS(x) (((x)-5) & 0x03) /* Word Length Select */ |
3861 | #define W1LMAX_MAX W1LMAX_MIN | 3870 | #define W1LMAX_MAX W1LMAX_MIN |
3862 | #define EBIU_AMCBCTL0 EBIU_AMBCTL0 | 3871 | #define EBIU_AMCBCTL0 EBIU_AMBCTL0 |