diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/include/mach/defBF532.h')
-rw-r--r-- | arch/blackfin/mach-bf533/include/mach/defBF532.h | 128 |
1 files changed, 3 insertions, 125 deletions
diff --git a/arch/blackfin/mach-bf533/include/mach/defBF532.h b/arch/blackfin/mach-bf533/include/mach/defBF532.h index 3adb0b44e597..2376d5393511 100644 --- a/arch/blackfin/mach-bf533/include/mach/defBF532.h +++ b/arch/blackfin/mach-bf533/include/mach/defBF532.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * System & MMR bit and Address definitions for ADSP-BF532 | 2 | * System & MMR bit and Address definitions for ADSP-BF532 |
3 | * | 3 | * |
4 | * Copyright 2005-2008 Analog Devices Inc. | 4 | * Copyright 2005-2010 Analog Devices Inc. |
5 | * | 5 | * |
6 | * Licensed under the ADI BSD license or the GPL-2 (or later) | 6 | * Licensed under the ADI BSD license or the GPL-2 (or later) |
7 | */ | 7 | */ |
@@ -9,9 +9,6 @@ | |||
9 | #ifndef _DEF_BF532_H | 9 | #ifndef _DEF_BF532_H |
10 | #define _DEF_BF532_H | 10 | #define _DEF_BF532_H |
11 | 11 | ||
12 | /* include all Core registers and bit definitions */ | ||
13 | #include <asm/def_LPBlackfin.h> | ||
14 | |||
15 | /*********************************************************************************** */ | 12 | /*********************************************************************************** */ |
16 | /* System MMR Register Map */ | 13 | /* System MMR Register Map */ |
17 | /*********************************************************************************** */ | 14 | /*********************************************************************************** */ |
@@ -182,12 +179,8 @@ | |||
182 | #define EBIU_SDSTAT 0xFFC00A1C /* SDRAM Status Register */ | 179 | #define EBIU_SDSTAT 0xFFC00A1C /* SDRAM Status Register */ |
183 | 180 | ||
184 | /* DMA Traffic controls */ | 181 | /* DMA Traffic controls */ |
185 | #define DMA_TC_PER 0xFFC00B0C /* Traffic Control Periods Register */ | 182 | #define DMAC_TC_PER 0xFFC00B0C /* Traffic Control Periods Register */ |
186 | #define DMA_TC_CNT 0xFFC00B10 /* Traffic Control Current Counts Register */ | 183 | #define DMAC_TC_CNT 0xFFC00B10 /* Traffic Control Current Counts Register */ |
187 | |||
188 | /* Alternate deprecated register names (below) provided for backwards code compatibility */ | ||
189 | #define DMA_TCPER 0xFFC00B0C /* Traffic Control Periods Register */ | ||
190 | #define DMA_TCCNT 0xFFC00B10 /* Traffic Control Current Counts Register */ | ||
191 | 184 | ||
192 | /* DMA Controller (0xFFC00C00 - 0xFFC00FFF) */ | 185 | /* DMA Controller (0xFFC00C00 - 0xFFC00FFF) */ |
193 | #define DMA0_CONFIG 0xFFC00C08 /* DMA Channel 0 Configuration Register */ | 186 | #define DMA0_CONFIG 0xFFC00C08 /* DMA Channel 0 Configuration Register */ |
@@ -432,83 +425,6 @@ | |||
432 | #define IWR_ENABLE(x) (1 << (x)) /* Wakeup Enable Peripheral #x */ | 425 | #define IWR_ENABLE(x) (1 << (x)) /* Wakeup Enable Peripheral #x */ |
433 | #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << (x))) /* Wakeup Disable Peripheral #x */ | 426 | #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << (x))) /* Wakeup Disable Peripheral #x */ |
434 | 427 | ||
435 | /* ***************************** UART CONTROLLER MASKS ********************** */ | ||
436 | |||
437 | /* UART_LCR Register */ | ||
438 | |||
439 | #define DLAB 0x80 | ||
440 | #define SB 0x40 | ||
441 | #define STP 0x20 | ||
442 | #define EPS 0x10 | ||
443 | #define PEN 0x08 | ||
444 | #define STB 0x04 | ||
445 | #define WLS(x) ((x-5) & 0x03) | ||
446 | |||
447 | #define DLAB_P 0x07 | ||
448 | #define SB_P 0x06 | ||
449 | #define STP_P 0x05 | ||
450 | #define EPS_P 0x04 | ||
451 | #define PEN_P 0x03 | ||
452 | #define STB_P 0x02 | ||
453 | #define WLS_P1 0x01 | ||
454 | #define WLS_P0 0x00 | ||
455 | |||
456 | /* UART_MCR Register */ | ||
457 | #define LOOP_ENA 0x10 | ||
458 | #define LOOP_ENA_P 0x04 | ||
459 | |||
460 | /* UART_LSR Register */ | ||
461 | #define TEMT 0x40 | ||
462 | #define THRE 0x20 | ||
463 | #define BI 0x10 | ||
464 | #define FE 0x08 | ||
465 | #define PE 0x04 | ||
466 | #define OE 0x02 | ||
467 | #define DR 0x01 | ||
468 | |||
469 | #define TEMP_P 0x06 | ||
470 | #define THRE_P 0x05 | ||
471 | #define BI_P 0x04 | ||
472 | #define FE_P 0x03 | ||
473 | #define PE_P 0x02 | ||
474 | #define OE_P 0x01 | ||
475 | #define DR_P 0x00 | ||
476 | |||
477 | /* UART_IER Register */ | ||
478 | #define ELSI 0x04 | ||
479 | #define ETBEI 0x02 | ||
480 | #define ERBFI 0x01 | ||
481 | |||
482 | #define ELSI_P 0x02 | ||
483 | #define ETBEI_P 0x01 | ||
484 | #define ERBFI_P 0x00 | ||
485 | |||
486 | /* UART_IIR Register */ | ||
487 | #define STATUS(x) ((x << 1) & 0x06) | ||
488 | #define NINT 0x01 | ||
489 | #define STATUS_P1 0x02 | ||
490 | #define STATUS_P0 0x01 | ||
491 | #define NINT_P 0x00 | ||
492 | #define IIR_TX_READY 0x02 /* UART_THR empty */ | ||
493 | #define IIR_RX_READY 0x04 /* Receive data ready */ | ||
494 | #define IIR_LINE_CHANGE 0x06 /* Receive line status */ | ||
495 | #define IIR_STATUS 0x06 | ||
496 | |||
497 | /* UART_GCTL Register */ | ||
498 | #define FFE 0x20 | ||
499 | #define FPE 0x10 | ||
500 | #define RPOLC 0x08 | ||
501 | #define TPOLC 0x04 | ||
502 | #define IREN 0x02 | ||
503 | #define UCEN 0x01 | ||
504 | |||
505 | #define FFE_P 0x05 | ||
506 | #define FPE_P 0x04 | ||
507 | #define RPOLC_P 0x03 | ||
508 | #define TPOLC_P 0x02 | ||
509 | #define IREN_P 0x01 | ||
510 | #define UCEN_P 0x00 | ||
511 | |||
512 | /* ********* PARALLEL PERIPHERAL INTERFACE (PPI) MASKS **************** */ | 428 | /* ********* PARALLEL PERIPHERAL INTERFACE (PPI) MASKS **************** */ |
513 | 429 | ||
514 | /* PPI_CONTROL Masks */ | 430 | /* PPI_CONTROL Masks */ |
@@ -643,44 +559,6 @@ | |||
643 | #define ERR_TYP_P0 0x0E | 559 | #define ERR_TYP_P0 0x0E |
644 | #define ERR_TYP_P1 0x0F | 560 | #define ERR_TYP_P1 0x0F |
645 | 561 | ||
646 | /*/ ****************** PROGRAMMABLE FLAG MASKS ********************* */ | ||
647 | |||
648 | /* General Purpose IO (0xFFC00700 - 0xFFC007FF) Masks */ | ||
649 | #define PF0 0x0001 | ||
650 | #define PF1 0x0002 | ||
651 | #define PF2 0x0004 | ||
652 | #define PF3 0x0008 | ||
653 | #define PF4 0x0010 | ||
654 | #define PF5 0x0020 | ||
655 | #define PF6 0x0040 | ||
656 | #define PF7 0x0080 | ||
657 | #define PF8 0x0100 | ||
658 | #define PF9 0x0200 | ||
659 | #define PF10 0x0400 | ||
660 | #define PF11 0x0800 | ||
661 | #define PF12 0x1000 | ||
662 | #define PF13 0x2000 | ||
663 | #define PF14 0x4000 | ||
664 | #define PF15 0x8000 | ||
665 | |||
666 | /* General Purpose IO (0xFFC00700 - 0xFFC007FF) BIT POSITIONS */ | ||
667 | #define PF0_P 0 | ||
668 | #define PF1_P 1 | ||
669 | #define PF2_P 2 | ||
670 | #define PF3_P 3 | ||
671 | #define PF4_P 4 | ||
672 | #define PF5_P 5 | ||
673 | #define PF6_P 6 | ||
674 | #define PF7_P 7 | ||
675 | #define PF8_P 8 | ||
676 | #define PF9_P 9 | ||
677 | #define PF10_P 10 | ||
678 | #define PF11_P 11 | ||
679 | #define PF12_P 12 | ||
680 | #define PF13_P 13 | ||
681 | #define PF14_P 14 | ||
682 | #define PF15_P 15 | ||
683 | |||
684 | /* ********************* ASYNCHRONOUS MEMORY CONTROLLER MASKS ************* */ | 562 | /* ********************* ASYNCHRONOUS MEMORY CONTROLLER MASKS ************* */ |
685 | 563 | ||
686 | /* AMGCTL Masks */ | 564 | /* AMGCTL Masks */ |