diff options
| author | Manuel Lauss <manuel.lauss@googlemail.com> | 2011-05-08 04:42:14 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2011-05-19 04:55:45 -0400 |
| commit | dca7587185b3a499a09a9e2755316eee31c49c7f (patch) | |
| tree | eec8c9040216496d64493719b759176083b5b95d /arch/mips/include/asm | |
| parent | c1e58a3129bc327f7e0eb06fd4fe5ebf2af5d8ef (diff) | |
MIPS: Alchemy: irq code and constant cleanup
replace au_readl/au_writel with __raw_readl/__raw_writel,
and clean up IC-related stuff from the headers.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: Linux-MIPS <linux-mips@linux-mips.org>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Patchwork: https://patchwork.linux-mips.org/patch/2354/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm')
| -rw-r--r-- | arch/mips/include/asm/mach-au1x00/au1000.h | 121 |
1 files changed, 5 insertions, 116 deletions
diff --git a/arch/mips/include/asm/mach-au1x00/au1000.h b/arch/mips/include/asm/mach-au1x00/au1000.h index a6976619160..66cfcdc75e4 100644 --- a/arch/mips/include/asm/mach-au1x00/au1000.h +++ b/arch/mips/include/asm/mach-au1x00/au1000.h | |||
| @@ -630,8 +630,13 @@ enum soc_au1200_ints { | |||
| 630 | 630 | ||
| 631 | /* | 631 | /* |
| 632 | * Physical base addresses for integrated peripherals | 632 | * Physical base addresses for integrated peripherals |
| 633 | * 0..au1000 1..au1500 2..au1100 3..au1550 4..au1200 | ||
| 633 | */ | 634 | */ |
| 634 | 635 | ||
| 636 | #define AU1000_IC0_PHYS_ADDR 0x10400000 /* 01234 */ | ||
| 637 | #define AU1000_IC1_PHYS_ADDR 0x11800000 /* 01234 */ | ||
| 638 | |||
| 639 | |||
| 635 | #ifdef CONFIG_SOC_AU1000 | 640 | #ifdef CONFIG_SOC_AU1000 |
| 636 | #define MEM_PHYS_ADDR 0x14000000 | 641 | #define MEM_PHYS_ADDR 0x14000000 |
| 637 | #define STATIC_MEM_PHYS_ADDR 0x14001000 | 642 | #define STATIC_MEM_PHYS_ADDR 0x14001000 |
| @@ -643,8 +648,6 @@ enum soc_au1200_ints { | |||
| 643 | #define DMA5_PHYS_ADDR 0x14002500 | 648 | #define DMA5_PHYS_ADDR 0x14002500 |
| 644 | #define DMA6_PHYS_ADDR 0x14002600 | 649 | #define DMA6_PHYS_ADDR 0x14002600 |
| 645 | #define DMA7_PHYS_ADDR 0x14002700 | 650 | #define DMA7_PHYS_ADDR 0x14002700 |
| 646 | #define IC0_PHYS_ADDR 0x10400000 | ||
| 647 | #define IC1_PHYS_ADDR 0x11800000 | ||
| 648 | #define AC97_PHYS_ADDR 0x10000000 | 651 | #define AC97_PHYS_ADDR 0x10000000 |
| 649 | #define USBH_PHYS_ADDR 0x10100000 | 652 | #define USBH_PHYS_ADDR 0x10100000 |
| 650 | #define USBD_PHYS_ADDR 0x10200000 | 653 | #define USBD_PHYS_ADDR 0x10200000 |
| @@ -680,8 +683,6 @@ enum soc_au1200_ints { | |||
| 680 | #define DMA5_PHYS_ADDR 0x14002500 | 683 | #define DMA5_PHYS_ADDR 0x14002500 |
| 681 | #define DMA6_PHYS_ADDR 0x14002600 | 684 | #define DMA6_PHYS_ADDR 0x14002600 |
| 682 | #define DMA7_PHYS_ADDR 0x14002700 | 685 | #define DMA7_PHYS_ADDR 0x14002700 |
| 683 | #define IC0_PHYS_ADDR 0x10400000 | ||
| 684 | #define IC1_PHYS_ADDR 0x11800000 | ||
| 685 | #define AC97_PHYS_ADDR 0x10000000 | 686 | #define AC97_PHYS_ADDR 0x10000000 |
| 686 | #define USBH_PHYS_ADDR 0x10100000 | 687 | #define USBH_PHYS_ADDR 0x10100000 |
| 687 | #define USBD_PHYS_ADDR 0x10200000 | 688 | #define USBD_PHYS_ADDR 0x10200000 |
| @@ -718,10 +719,8 @@ enum soc_au1200_ints { | |||
| 718 | #define DMA5_PHYS_ADDR 0x14002500 | 719 | #define DMA5_PHYS_ADDR 0x14002500 |
| 719 | #define DMA6_PHYS_ADDR 0x14002600 | 720 | #define DMA6_PHYS_ADDR 0x14002600 |
| 720 | #define DMA7_PHYS_ADDR 0x14002700 | 721 | #define DMA7_PHYS_ADDR 0x14002700 |
| 721 | #define IC0_PHYS_ADDR 0x10400000 | ||
| 722 | #define SD0_PHYS_ADDR 0x10600000 | 722 | #define SD0_PHYS_ADDR 0x10600000 |
| 723 | #define SD1_PHYS_ADDR 0x10680000 | 723 | #define SD1_PHYS_ADDR 0x10680000 |
| 724 | #define IC1_PHYS_ADDR 0x11800000 | ||
| 725 | #define AC97_PHYS_ADDR 0x10000000 | 724 | #define AC97_PHYS_ADDR 0x10000000 |
| 726 | #define USBH_PHYS_ADDR 0x10100000 | 725 | #define USBH_PHYS_ADDR 0x10100000 |
| 727 | #define USBD_PHYS_ADDR 0x10200000 | 726 | #define USBD_PHYS_ADDR 0x10200000 |
| @@ -749,8 +748,6 @@ enum soc_au1200_ints { | |||
| 749 | #ifdef CONFIG_SOC_AU1550 | 748 | #ifdef CONFIG_SOC_AU1550 |
| 750 | #define MEM_PHYS_ADDR 0x14000000 | 749 | #define MEM_PHYS_ADDR 0x14000000 |
| 751 | #define STATIC_MEM_PHYS_ADDR 0x14001000 | 750 | #define STATIC_MEM_PHYS_ADDR 0x14001000 |
| 752 | #define IC0_PHYS_ADDR 0x10400000 | ||
| 753 | #define IC1_PHYS_ADDR 0x11800000 | ||
| 754 | #define USBH_PHYS_ADDR 0x14020000 | 751 | #define USBH_PHYS_ADDR 0x14020000 |
| 755 | #define USBD_PHYS_ADDR 0x10200000 | 752 | #define USBD_PHYS_ADDR 0x10200000 |
| 756 | #define PCI_PHYS_ADDR 0x14005000 | 753 | #define PCI_PHYS_ADDR 0x14005000 |
| @@ -786,8 +783,6 @@ enum soc_au1200_ints { | |||
| 786 | #define STATIC_MEM_PHYS_ADDR 0x14001000 | 783 | #define STATIC_MEM_PHYS_ADDR 0x14001000 |
| 787 | #define AES_PHYS_ADDR 0x10300000 | 784 | #define AES_PHYS_ADDR 0x10300000 |
| 788 | #define CIM_PHYS_ADDR 0x14004000 | 785 | #define CIM_PHYS_ADDR 0x14004000 |
| 789 | #define IC0_PHYS_ADDR 0x10400000 | ||
| 790 | #define IC1_PHYS_ADDR 0x11800000 | ||
| 791 | #define USBM_PHYS_ADDR 0x14020000 | 786 | #define USBM_PHYS_ADDR 0x14020000 |
| 792 | #define USBH_PHYS_ADDR 0x14020100 | 787 | #define USBH_PHYS_ADDR 0x14020100 |
| 793 | #define UART0_PHYS_ADDR 0x11100000 | 788 | #define UART0_PHYS_ADDR 0x11100000 |
| @@ -835,112 +830,6 @@ enum soc_au1200_ints { | |||
| 835 | #endif | 830 | #endif |
| 836 | 831 | ||
| 837 | 832 | ||
| 838 | /* Interrupt Controller register offsets */ | ||
| 839 | #define IC_CFG0RD 0x40 | ||
| 840 | #define IC_CFG0SET 0x40 | ||
| 841 | #define IC_CFG0CLR 0x44 | ||
| 842 | #define IC_CFG1RD 0x48 | ||
| 843 | #define IC_CFG1SET 0x48 | ||
| 844 | #define IC_CFG1CLR 0x4C | ||
| 845 | #define IC_CFG2RD 0x50 | ||
| 846 | #define IC_CFG2SET 0x50 | ||
| 847 | #define IC_CFG2CLR 0x54 | ||
| 848 | #define IC_REQ0INT 0x54 | ||
| 849 | #define IC_SRCRD 0x58 | ||
| 850 | #define IC_SRCSET 0x58 | ||
| 851 | #define IC_SRCCLR 0x5C | ||
| 852 | #define IC_REQ1INT 0x5C | ||
| 853 | #define IC_ASSIGNRD 0x60 | ||
| 854 | #define IC_ASSIGNSET 0x60 | ||
| 855 | #define IC_ASSIGNCLR 0x64 | ||
| 856 | #define IC_WAKERD 0x68 | ||
| 857 | #define IC_WAKESET 0x68 | ||
| 858 | #define IC_WAKECLR 0x6C | ||
| 859 | #define IC_MASKRD 0x70 | ||
| 860 | #define IC_MASKSET 0x70 | ||
| 861 | #define IC_MASKCLR 0x74 | ||
| 862 | #define IC_RISINGRD 0x78 | ||
| 863 | #define IC_RISINGCLR 0x78 | ||
| 864 | #define IC_FALLINGRD 0x7C | ||
| 865 | #define IC_FALLINGCLR 0x7C | ||
| 866 | #define IC_TESTBIT 0x80 | ||
| 867 | |||
| 868 | |||
| 869 | /* Interrupt Controller 0 */ | ||
| 870 | #define IC0_CFG0RD 0xB0400040 | ||
| 871 | #define IC0_CFG0SET 0xB0400040 | ||
| 872 | #define IC0_CFG0CLR 0xB0400044 | ||
| 873 | |||
| 874 | #define IC0_CFG1RD 0xB0400048 | ||
| 875 | #define IC0_CFG1SET 0xB0400048 | ||
| 876 | #define IC0_CFG1CLR 0xB040004C | ||
| 877 | |||
| 878 | #define IC0_CFG2RD 0xB0400050 | ||
| 879 | #define IC0_CFG2SET 0xB0400050 | ||
| 880 | #define IC0_CFG2CLR 0xB0400054 | ||
| 881 | |||
| 882 | #define IC0_REQ0INT 0xB0400054 | ||
| 883 | #define IC0_SRCRD 0xB0400058 | ||
| 884 | #define IC0_SRCSET 0xB0400058 | ||
| 885 | #define IC0_SRCCLR 0xB040005C | ||
| 886 | #define IC0_REQ1INT 0xB040005C | ||
| 887 | |||
| 888 | #define IC0_ASSIGNRD 0xB0400060 | ||
| 889 | #define IC0_ASSIGNSET 0xB0400060 | ||
| 890 | #define IC0_ASSIGNCLR 0xB0400064 | ||
| 891 | |||
| 892 | #define IC0_WAKERD 0xB0400068 | ||
| 893 | #define IC0_WAKESET 0xB0400068 | ||
| 894 | #define IC0_WAKECLR 0xB040006C | ||
| 895 | |||
| 896 | #define IC0_MASKRD 0xB0400070 | ||
| 897 | #define IC0_MASKSET 0xB0400070 | ||
| 898 | #define IC0_MASKCLR 0xB0400074 | ||
| 899 | |||
| 900 | #define IC0_RISINGRD 0xB0400078 | ||
| 901 | #define IC0_RISINGCLR 0xB0400078 | ||
| 902 | #define IC0_FALLINGRD 0xB040007C | ||
| 903 | #define IC0_FALLINGCLR 0xB040007C | ||
| 904 | |||
| 905 | #define IC0_TESTBIT 0xB0400080 | ||
| 906 | |||
| 907 | /* Interrupt Controller 1 */ | ||
| 908 | #define IC1_CFG0RD 0xB1800040 | ||
| 909 | #define IC1_CFG0SET 0xB1800040 | ||
| 910 | #define IC1_CFG0CLR 0xB1800044 | ||
| 911 | |||
| 912 | #define IC1_CFG1RD 0xB1800048 | ||
| 913 | #define IC1_CFG1SET 0xB1800048 | ||
| 914 | #define IC1_CFG1CLR 0xB180004C | ||
| 915 | |||
| 916 | #define IC1_CFG2RD 0xB1800050 | ||
| 917 | #define IC1_CFG2SET 0xB1800050 | ||
| 918 | #define IC1_CFG2CLR 0xB1800054 | ||
| 919 | |||
| 920 | #define IC1_REQ0INT 0xB1800054 | ||
| 921 | #define IC1_SRCRD 0xB1800058 | ||
| 922 | #define IC1_SRCSET 0xB1800058 | ||
| 923 | #define IC1_SRCCLR 0xB180005C | ||
| 924 | #define IC1_REQ1INT 0xB180005C | ||
| 925 | |||
| 926 | #define IC1_ASSIGNRD 0xB1800060 | ||
| 927 | #define IC1_ASSIGNSET 0xB1800060 | ||
| 928 | #define IC1_ASSIGNCLR 0xB1800064 | ||
| 929 | |||
| 930 | #define IC1_WAKERD 0xB1800068 | ||
| 931 | #define IC1_WAKESET 0xB1800068 | ||
| 932 | #define IC1_WAKECLR 0xB180006C | ||
| 933 | |||
| 934 | #define IC1_MASKRD 0xB1800070 | ||
| 935 | #define IC1_MASKSET 0xB1800070 | ||
| 936 | #define IC1_MASKCLR 0xB1800074 | ||
| 937 | |||
| 938 | #define IC1_RISINGRD 0xB1800078 | ||
| 939 | #define IC1_RISINGCLR 0xB1800078 | ||
| 940 | #define IC1_FALLINGRD 0xB180007C | ||
| 941 | #define IC1_FALLINGCLR 0xB180007C | ||
| 942 | |||
| 943 | #define IC1_TESTBIT 0xB1800080 | ||
| 944 | 833 | ||
| 945 | 834 | ||
| 946 | /* Au1000 */ | 835 | /* Au1000 */ |
