diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-03-15 17:25:45 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-03-15 17:25:45 -0400 |
commit | 0203e0f7d73fad87921edc42634f73de6fc630c9 (patch) | |
tree | 34b7ef1907a5cde4f0527cb05e3e56c459d02d45 | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) | |
parent | a2823dd5f5e2f9da2eafc402612ae85526ed222c (diff) |
Merge tag 'nomadik-multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik into next/multiplatform
From Linus Walleij <linus.walleij@linaro.org>:
Multiplatform support for the Nomadik
- Get rid of the last header files in the <mach/*> namespace
- Move the debug macro to the common place
- Make the necessary Kconfig fixes and move the platform Kconfig
fragment down to the mach directory.
- Include necessary defconfig update to get the platform going.
* tag 'nomadik-multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik:
ARM: nomadik: delete remnant include files
ARM: nomadik: convert to multiplatform
ARM: nomadik: move debugmacro to debug includes
ARM: nomadik: delete IRQ header
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/Kconfig | 17 | ||||
-rw-r--r-- | arch/arm/Kconfig.debug | 8 | ||||
-rw-r--r-- | arch/arm/configs/nhk8815_defconfig | 42 | ||||
-rw-r--r-- | arch/arm/include/debug/nomadik.S (renamed from arch/arm/mach-nomadik/include/mach/debug-macro.S) | 0 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/Kconfig | 22 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/Makefile.boot | 4 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/cpu-8815.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/include/mach/irqs.h | 79 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/include/mach/timex.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/include/mach/uncompress.h | 60 |
10 files changed, 46 insertions, 193 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5b714695b01b..a5ddc3660479 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -916,23 +916,6 @@ config ARCH_U8500 | |||
916 | help | 916 | help |
917 | Support for ST-Ericsson's Ux500 architecture | 917 | Support for ST-Ericsson's Ux500 architecture |
918 | 918 | ||
919 | config ARCH_NOMADIK | ||
920 | bool "STMicroelectronics Nomadik" | ||
921 | select ARCH_REQUIRE_GPIOLIB | ||
922 | select ARM_AMBA | ||
923 | select ARM_VIC | ||
924 | select CLKSRC_NOMADIK_MTU | ||
925 | select COMMON_CLK | ||
926 | select CPU_ARM926T | ||
927 | select GENERIC_CLOCKEVENTS | ||
928 | select MIGHT_HAVE_CACHE_L2X0 | ||
929 | select USE_OF | ||
930 | select PINCTRL | ||
931 | select PINCTRL_STN8815 | ||
932 | select SPARSE_IRQ | ||
933 | help | ||
934 | Support for the Nomadik platform by ST-Ericsson | ||
935 | |||
936 | config PLAT_SPEAR | 919 | config PLAT_SPEAR |
937 | bool "ST SPEAr" | 920 | bool "ST SPEAr" |
938 | select ARCH_HAS_CPUFREQ | 921 | select ARCH_HAS_CPUFREQ |
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index acddddac7ee4..7d4b96daad44 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -298,6 +298,13 @@ choice | |||
298 | Say Y here if you want kernel low-level debugging support | 298 | Say Y here if you want kernel low-level debugging support |
299 | on MVEBU based platforms. | 299 | on MVEBU based platforms. |
300 | 300 | ||
301 | config DEBUG_NOMADIK_UART | ||
302 | bool "Kernel low-level debugging messages via NOMADIK UART" | ||
303 | depends on ARCH_NOMADIK | ||
304 | help | ||
305 | Say Y here if you want kernel low-level debugging support | ||
306 | on NOMADIK based platforms. | ||
307 | |||
301 | config DEBUG_OMAP2PLUS_UART | 308 | config DEBUG_OMAP2PLUS_UART |
302 | bool "Kernel low-level debugging messages via OMAP2PLUS UART" | 309 | bool "Kernel low-level debugging messages via OMAP2PLUS UART" |
303 | depends on ARCH_OMAP2PLUS | 310 | depends on ARCH_OMAP2PLUS |
@@ -590,6 +597,7 @@ config DEBUG_LL_INCLUDE | |||
590 | DEBUG_IMX6Q_UART | 597 | DEBUG_IMX6Q_UART |
591 | default "debug/highbank.S" if DEBUG_HIGHBANK_UART | 598 | default "debug/highbank.S" if DEBUG_HIGHBANK_UART |
592 | default "debug/mvebu.S" if DEBUG_MVEBU_UART | 599 | default "debug/mvebu.S" if DEBUG_MVEBU_UART |
600 | default "debug/nomadik.S" if DEBUG_NOMADIK_UART | ||
593 | default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART | 601 | default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART |
594 | default "debug/picoxcell.S" if DEBUG_PICOXCELL_UART | 602 | default "debug/picoxcell.S" if DEBUG_PICOXCELL_UART |
595 | default "debug/socfpga.S" if DEBUG_SOCFPGA_UART | 603 | default "debug/socfpga.S" if DEBUG_SOCFPGA_UART |
diff --git a/arch/arm/configs/nhk8815_defconfig b/arch/arm/configs/nhk8815_defconfig index 86cfd2959c47..b01e7632ed2e 100644 --- a/arch/arm/configs/nhk8815_defconfig +++ b/arch/arm/configs/nhk8815_defconfig | |||
@@ -1,11 +1,9 @@ | |||
1 | CONFIG_EXPERIMENTAL=y | ||
2 | # CONFIG_LOCALVERSION_AUTO is not set | 1 | # CONFIG_LOCALVERSION_AUTO is not set |
3 | # CONFIG_SWAP is not set | 2 | # CONFIG_SWAP is not set |
4 | CONFIG_SYSVIPC=y | 3 | CONFIG_SYSVIPC=y |
5 | CONFIG_IKCONFIG=y | 4 | CONFIG_IKCONFIG=y |
6 | CONFIG_IKCONFIG_PROC=y | 5 | CONFIG_IKCONFIG_PROC=y |
7 | CONFIG_LOG_BUF_SHIFT=14 | 6 | CONFIG_LOG_BUF_SHIFT=14 |
8 | CONFIG_SYSFS_DEPRECATED_V2=y | ||
9 | CONFIG_BLK_DEV_INITRD=y | 7 | CONFIG_BLK_DEV_INITRD=y |
10 | CONFIG_EXPERT=y | 8 | CONFIG_EXPERT=y |
11 | CONFIG_KALLSYMS_ALL=y | 9 | CONFIG_KALLSYMS_ALL=y |
@@ -13,6 +11,7 @@ CONFIG_SLAB=y | |||
13 | CONFIG_MODULES=y | 11 | CONFIG_MODULES=y |
14 | CONFIG_MODULE_UNLOAD=y | 12 | CONFIG_MODULE_UNLOAD=y |
15 | # CONFIG_BLK_DEV_BSG is not set | 13 | # CONFIG_BLK_DEV_BSG is not set |
14 | # CONFIG_ARCH_MULTI_V7 is not set | ||
16 | CONFIG_ARCH_NOMADIK=y | 15 | CONFIG_ARCH_NOMADIK=y |
17 | CONFIG_MACH_NOMADIK_8815NHK=y | 16 | CONFIG_MACH_NOMADIK_8815NHK=y |
18 | CONFIG_PREEMPT=y | 17 | CONFIG_PREEMPT=y |
@@ -20,7 +19,6 @@ CONFIG_AEABI=y | |||
20 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 19 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
21 | CONFIG_ZBOOT_ROM_BSS=0x0 | 20 | CONFIG_ZBOOT_ROM_BSS=0x0 |
22 | CONFIG_FPE_NWFPE=y | 21 | CONFIG_FPE_NWFPE=y |
23 | CONFIG_PM=y | ||
24 | CONFIG_NET=y | 22 | CONFIG_NET=y |
25 | CONFIG_PACKET=y | 23 | CONFIG_PACKET=y |
26 | CONFIG_UNIX=y | 24 | CONFIG_UNIX=y |
@@ -32,14 +30,10 @@ CONFIG_IP_PNP=y | |||
32 | CONFIG_IP_PNP_DHCP=y | 30 | CONFIG_IP_PNP_DHCP=y |
33 | CONFIG_IP_PNP_BOOTP=y | 31 | CONFIG_IP_PNP_BOOTP=y |
34 | CONFIG_NET_IPIP=y | 32 | CONFIG_NET_IPIP=y |
35 | CONFIG_NET_IPGRE=y | ||
36 | CONFIG_NET_IPGRE_BROADCAST=y | ||
37 | CONFIG_IP_MROUTE=y | 33 | CONFIG_IP_MROUTE=y |
38 | # CONFIG_INET_LRO is not set | 34 | # CONFIG_INET_LRO is not set |
39 | # CONFIG_IPV6 is not set | 35 | # CONFIG_IPV6 is not set |
40 | CONFIG_BT=m | 36 | CONFIG_BT=m |
41 | CONFIG_BT_L2CAP=m | ||
42 | CONFIG_BT_SCO=m | ||
43 | CONFIG_BT_RFCOMM=m | 37 | CONFIG_BT_RFCOMM=m |
44 | CONFIG_BT_RFCOMM_TTY=y | 38 | CONFIG_BT_RFCOMM_TTY=y |
45 | CONFIG_BT_BNEP=m | 39 | CONFIG_BT_BNEP=m |
@@ -53,14 +47,16 @@ CONFIG_BT_HCIVHCI=m | |||
53 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 47 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
54 | CONFIG_MTD=y | 48 | CONFIG_MTD=y |
55 | CONFIG_MTD_TESTS=m | 49 | CONFIG_MTD_TESTS=m |
50 | CONFIG_MTD_CMDLINE_PARTS=y | ||
56 | CONFIG_MTD_CHAR=y | 51 | CONFIG_MTD_CHAR=y |
57 | CONFIG_MTD_BLOCK=y | 52 | CONFIG_MTD_BLOCK=y |
58 | CONFIG_MTD_NAND=y | ||
59 | CONFIG_MTD_NAND_ECC_SMC=y | 53 | CONFIG_MTD_NAND_ECC_SMC=y |
54 | CONFIG_MTD_NAND=y | ||
60 | CONFIG_MTD_NAND_FSMC=y | 55 | CONFIG_MTD_NAND_FSMC=y |
61 | CONFIG_MTD_ONENAND=y | 56 | CONFIG_MTD_ONENAND=y |
62 | CONFIG_MTD_ONENAND_VERIFY_WRITE=y | 57 | CONFIG_MTD_ONENAND_VERIFY_WRITE=y |
63 | CONFIG_MTD_ONENAND_GENERIC=y | 58 | CONFIG_MTD_ONENAND_GENERIC=y |
59 | CONFIG_PROC_DEVICETREE=y | ||
64 | CONFIG_BLK_DEV_LOOP=y | 60 | CONFIG_BLK_DEV_LOOP=y |
65 | CONFIG_BLK_DEV_CRYPTOLOOP=y | 61 | CONFIG_BLK_DEV_CRYPTOLOOP=y |
66 | CONFIG_BLK_DEV_RAM=y | 62 | CONFIG_BLK_DEV_RAM=y |
@@ -72,47 +68,48 @@ CONFIG_SCSI_CONSTANTS=y | |||
72 | CONFIG_SCSI_LOGGING=y | 68 | CONFIG_SCSI_LOGGING=y |
73 | CONFIG_SCSI_SCAN_ASYNC=y | 69 | CONFIG_SCSI_SCAN_ASYNC=y |
74 | CONFIG_NETDEVICES=y | 70 | CONFIG_NETDEVICES=y |
71 | CONFIG_NETCONSOLE=m | ||
75 | CONFIG_TUN=y | 72 | CONFIG_TUN=y |
76 | CONFIG_NET_ETHERNET=y | ||
77 | CONFIG_SMC91X=y | 73 | CONFIG_SMC91X=y |
78 | CONFIG_PPP=m | 74 | CONFIG_PPP=m |
79 | CONFIG_PPP_ASYNC=m | ||
80 | CONFIG_PPP_SYNC_TTY=m | ||
81 | CONFIG_PPP_DEFLATE=m | ||
82 | CONFIG_PPP_BSDCOMP=m | 75 | CONFIG_PPP_BSDCOMP=m |
76 | CONFIG_PPP_DEFLATE=m | ||
83 | CONFIG_PPP_MPPE=m | 77 | CONFIG_PPP_MPPE=m |
84 | CONFIG_PPPOE=m | 78 | CONFIG_PPPOE=m |
85 | CONFIG_NETCONSOLE=m | 79 | CONFIG_PPP_ASYNC=m |
80 | CONFIG_PPP_SYNC_TTY=m | ||
86 | # CONFIG_INPUT_MOUSEDEV is not set | 81 | # CONFIG_INPUT_MOUSEDEV is not set |
87 | CONFIG_INPUT_EVDEV=y | 82 | CONFIG_INPUT_EVDEV=y |
88 | # CONFIG_KEYBOARD_ATKBD is not set | 83 | # CONFIG_KEYBOARD_ATKBD is not set |
89 | # CONFIG_MOUSE_PS2 is not set | 84 | # CONFIG_MOUSE_PS2 is not set |
90 | # CONFIG_SERIO is not set | 85 | # CONFIG_SERIO is not set |
86 | # CONFIG_LEGACY_PTYS is not set | ||
91 | CONFIG_SERIAL_AMBA_PL011=y | 87 | CONFIG_SERIAL_AMBA_PL011=y |
92 | CONFIG_SERIAL_AMBA_PL011_CONSOLE=y | 88 | CONFIG_SERIAL_AMBA_PL011_CONSOLE=y |
93 | # CONFIG_LEGACY_PTYS is not set | 89 | CONFIG_HW_RANDOM=y |
94 | # CONFIG_HW_RANDOM is not set | 90 | CONFIG_HW_RANDOM_NOMADIK=y |
95 | CONFIG_I2C=y | ||
96 | CONFIG_I2C_CHARDEV=y | 91 | CONFIG_I2C_CHARDEV=y |
97 | CONFIG_I2C_GPIO=y | 92 | CONFIG_I2C_GPIO=y |
93 | CONFIG_I2C_NOMADIK=y | ||
98 | CONFIG_DEBUG_GPIO=y | 94 | CONFIG_DEBUG_GPIO=y |
99 | CONFIG_PINCTRL_NOMADIK=y | ||
100 | # CONFIG_HWMON is not set | 95 | # CONFIG_HWMON is not set |
101 | # CONFIG_VGA_CONSOLE is not set | 96 | CONFIG_MMC=y |
97 | CONFIG_MMC_CLKGATE=y | ||
98 | CONFIG_MMC_ARMMMCI=y | ||
102 | CONFIG_RTC_CLASS=y | 99 | CONFIG_RTC_CLASS=y |
100 | CONFIG_RTC_DRV_PL031=y | ||
101 | CONFIG_DMADEVICES=y | ||
102 | CONFIG_AMBA_PL08X=y | ||
103 | CONFIG_EXT2_FS=y | 103 | CONFIG_EXT2_FS=y |
104 | CONFIG_EXT3_FS=y | 104 | CONFIG_EXT3_FS=y |
105 | CONFIG_INOTIFY=y | ||
106 | CONFIG_FUSE_FS=y | 105 | CONFIG_FUSE_FS=y |
107 | CONFIG_MSDOS_FS=y | 106 | CONFIG_MSDOS_FS=y |
108 | CONFIG_VFAT_FS=y | 107 | CONFIG_VFAT_FS=y |
109 | CONFIG_TMPFS=y | 108 | CONFIG_TMPFS=y |
110 | CONFIG_JFFS2_FS=y | 109 | CONFIG_JFFS2_FS=y |
111 | CONFIG_NFS_FS=y | 110 | CONFIG_NFS_FS=y |
112 | CONFIG_NFS_V3=y | ||
113 | CONFIG_NFS_V3_ACL=y | 111 | CONFIG_NFS_V3_ACL=y |
114 | CONFIG_ROOT_NFS=y | 112 | CONFIG_ROOT_NFS=y |
115 | CONFIG_SMB_FS=m | ||
116 | CONFIG_CIFS=m | 113 | CONFIG_CIFS=m |
117 | CONFIG_CIFS_WEAK_PW_HASH=y | 114 | CONFIG_CIFS_WEAK_PW_HASH=y |
118 | CONFIG_NLS_CODEPAGE_437=y | 115 | CONFIG_NLS_CODEPAGE_437=y |
@@ -120,12 +117,11 @@ CONFIG_NLS_ASCII=y | |||
120 | CONFIG_NLS_ISO8859_1=y | 117 | CONFIG_NLS_ISO8859_1=y |
121 | CONFIG_NLS_ISO8859_15=y | 118 | CONFIG_NLS_ISO8859_15=y |
122 | # CONFIG_ENABLE_MUST_CHECK is not set | 119 | # CONFIG_ENABLE_MUST_CHECK is not set |
123 | CONFIG_DEBUG_KERNEL=y | 120 | CONFIG_DEBUG_FS=y |
124 | # CONFIG_SCHED_DEBUG is not set | 121 | # CONFIG_SCHED_DEBUG is not set |
125 | # CONFIG_DEBUG_PREEMPT is not set | 122 | # CONFIG_DEBUG_PREEMPT is not set |
126 | # CONFIG_DEBUG_BUGVERBOSE is not set | 123 | # CONFIG_DEBUG_BUGVERBOSE is not set |
127 | CONFIG_DEBUG_INFO=y | 124 | CONFIG_DEBUG_INFO=y |
128 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
129 | CONFIG_CRYPTO_MD5=y | 125 | CONFIG_CRYPTO_MD5=y |
130 | CONFIG_CRYPTO_SHA1=y | 126 | CONFIG_CRYPTO_SHA1=y |
131 | CONFIG_CRYPTO_DES=y | 127 | CONFIG_CRYPTO_DES=y |
diff --git a/arch/arm/mach-nomadik/include/mach/debug-macro.S b/arch/arm/include/debug/nomadik.S index 735417922ce2..735417922ce2 100644 --- a/arch/arm/mach-nomadik/include/mach/debug-macro.S +++ b/arch/arm/include/debug/nomadik.S | |||
diff --git a/arch/arm/mach-nomadik/Kconfig b/arch/arm/mach-nomadik/Kconfig index 82226a5d60ef..954f0e30f3a0 100644 --- a/arch/arm/mach-nomadik/Kconfig +++ b/arch/arm/mach-nomadik/Kconfig | |||
@@ -1,4 +1,21 @@ | |||
1 | if ARCH_NOMADIK | 1 | config ARCH_NOMADIK |
2 | bool "ST-Ericsson Nomadik" | ||
3 | depends on ARCH_MULTI_V5 | ||
4 | select ARCH_REQUIRE_GPIOLIB | ||
5 | select ARM_AMBA | ||
6 | select ARM_VIC | ||
7 | select CLKSRC_NOMADIK_MTU | ||
8 | select COMMON_CLK | ||
9 | select CPU_ARM926T | ||
10 | select GENERIC_CLOCKEVENTS | ||
11 | select MIGHT_HAVE_CACHE_L2X0 | ||
12 | select PINCTRL | ||
13 | select PINCTRL_NOMADIK | ||
14 | select PINCTRL_STN8815 | ||
15 | select SPARSE_IRQ | ||
16 | select USE_OF | ||
17 | help | ||
18 | Support for the Nomadik platform by ST-Ericsson | ||
2 | 19 | ||
3 | menu "Nomadik boards" | 20 | menu "Nomadik boards" |
4 | 21 | ||
@@ -11,6 +28,5 @@ config MACH_NOMADIK_8815NHK | |||
11 | endmenu | 28 | endmenu |
12 | 29 | ||
13 | config NOMADIK_8815 | 30 | config NOMADIK_8815 |
31 | depends on ARCH_NOMADIK | ||
14 | bool | 32 | bool |
15 | |||
16 | endif | ||
diff --git a/arch/arm/mach-nomadik/Makefile.boot b/arch/arm/mach-nomadik/Makefile.boot deleted file mode 100644 index ff0a4b5b0a82..000000000000 --- a/arch/arm/mach-nomadik/Makefile.boot +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | zreladdr-y += 0x00008000 | ||
2 | params_phys-y := 0x00000100 | ||
3 | initrd_phys-y := 0x00800000 | ||
4 | |||
diff --git a/arch/arm/mach-nomadik/cpu-8815.c b/arch/arm/mach-nomadik/cpu-8815.c index 21c1aa512640..59f6ff5c9bae 100644 --- a/arch/arm/mach-nomadik/cpu-8815.c +++ b/arch/arm/mach-nomadik/cpu-8815.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #include <linux/gpio.h> | 38 | #include <linux/gpio.h> |
39 | #include <linux/amba/mmci.h> | 39 | #include <linux/amba/mmci.h> |
40 | 40 | ||
41 | #include <mach/irqs.h> | ||
42 | #include <asm/mach/arch.h> | 41 | #include <asm/mach/arch.h> |
43 | #include <asm/mach/map.h> | 42 | #include <asm/mach/map.h> |
44 | #include <asm/mach/time.h> | 43 | #include <asm/mach/time.h> |
diff --git a/arch/arm/mach-nomadik/include/mach/irqs.h b/arch/arm/mach-nomadik/include/mach/irqs.h deleted file mode 100644 index 90ac965a92fe..000000000000 --- a/arch/arm/mach-nomadik/include/mach/irqs.h +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | /* | ||
2 | * mach-nomadik/include/mach/irqs.h | ||
3 | * | ||
4 | * Copyright (C) ST Microelectronics | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | #ifndef __ASM_ARCH_IRQS_H | ||
21 | #define __ASM_ARCH_IRQS_H | ||
22 | |||
23 | #define IRQ_VIC_START 32 /* first VIC interrupt is 1 */ | ||
24 | |||
25 | /* | ||
26 | * Interrupt numbers generic for all Nomadik Chip cuts | ||
27 | */ | ||
28 | #define IRQ_WATCHDOG (IRQ_VIC_START+0) | ||
29 | #define IRQ_SOFTINT (IRQ_VIC_START+1) | ||
30 | #define IRQ_CRYPTO (IRQ_VIC_START+2) | ||
31 | #define IRQ_OWM (IRQ_VIC_START+3) | ||
32 | #define IRQ_MTU0 (IRQ_VIC_START+4) | ||
33 | #define IRQ_MTU1 (IRQ_VIC_START+5) | ||
34 | #define IRQ_GPIO0 (IRQ_VIC_START+6) | ||
35 | #define IRQ_GPIO1 (IRQ_VIC_START+7) | ||
36 | #define IRQ_GPIO2 (IRQ_VIC_START+8) | ||
37 | #define IRQ_GPIO3 (IRQ_VIC_START+9) | ||
38 | #define IRQ_RTC_RTT (IRQ_VIC_START+10) | ||
39 | #define IRQ_SSP (IRQ_VIC_START+11) | ||
40 | #define IRQ_UART0 (IRQ_VIC_START+12) | ||
41 | #define IRQ_DMA1 (IRQ_VIC_START+13) | ||
42 | #define IRQ_CLCD_MDIF (IRQ_VIC_START+14) | ||
43 | #define IRQ_DMA0 (IRQ_VIC_START+15) | ||
44 | #define IRQ_PWRFAIL (IRQ_VIC_START+16) | ||
45 | #define IRQ_UART1 (IRQ_VIC_START+17) | ||
46 | #define IRQ_FIRDA (IRQ_VIC_START+18) | ||
47 | #define IRQ_MSP0 (IRQ_VIC_START+19) | ||
48 | #define IRQ_I2C0 (IRQ_VIC_START+20) | ||
49 | #define IRQ_I2C1 (IRQ_VIC_START+21) | ||
50 | #define IRQ_SDMMC (IRQ_VIC_START+22) | ||
51 | #define IRQ_USBOTG (IRQ_VIC_START+23) | ||
52 | #define IRQ_SVA_IT0 (IRQ_VIC_START+24) | ||
53 | #define IRQ_SVA_IT1 (IRQ_VIC_START+25) | ||
54 | #define IRQ_SAA_IT0 (IRQ_VIC_START+26) | ||
55 | #define IRQ_SAA_IT1 (IRQ_VIC_START+27) | ||
56 | #define IRQ_UART2 (IRQ_VIC_START+28) | ||
57 | #define IRQ_MSP2 (IRQ_VIC_START+29) | ||
58 | #define IRQ_L2CC (IRQ_VIC_START+30) | ||
59 | #define IRQ_HPI (IRQ_VIC_START+31) | ||
60 | #define IRQ_SKE (IRQ_VIC_START+32) | ||
61 | #define IRQ_KP (IRQ_VIC_START+33) | ||
62 | #define IRQ_MEMST (IRQ_VIC_START+34) | ||
63 | #define IRQ_SGA_IT (IRQ_VIC_START+35) | ||
64 | #define IRQ_USBM (IRQ_VIC_START+36) | ||
65 | #define IRQ_MSP1 (IRQ_VIC_START+37) | ||
66 | |||
67 | #define NOMADIK_GPIO_OFFSET (IRQ_VIC_START+64) | ||
68 | |||
69 | /* After chip-specific IRQ numbers we have the GPIO ones */ | ||
70 | #define NOMADIK_NR_GPIO 128 /* last 4 not wired to pins */ | ||
71 | #define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + NOMADIK_GPIO_OFFSET) | ||
72 | #define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - NOMADIK_GPIO_OFFSET) | ||
73 | #define NOMADIK_NR_IRQS NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO) | ||
74 | |||
75 | /* Following two are used by entry_macro.S, to access our dual-vic */ | ||
76 | #define VIC_REG_IRQSR0 0 | ||
77 | #define VIC_REG_IRQSR1 0x20 | ||
78 | |||
79 | #endif /* __ASM_ARCH_IRQS_H */ | ||
diff --git a/arch/arm/mach-nomadik/include/mach/timex.h b/arch/arm/mach-nomadik/include/mach/timex.h deleted file mode 100644 index 318b8896ce96..000000000000 --- a/arch/arm/mach-nomadik/include/mach/timex.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_TIMEX_H | ||
2 | #define __ASM_ARCH_TIMEX_H | ||
3 | |||
4 | #define CLOCK_TICK_RATE 2400000 | ||
5 | |||
6 | #endif | ||
diff --git a/arch/arm/mach-nomadik/include/mach/uncompress.h b/arch/arm/mach-nomadik/include/mach/uncompress.h deleted file mode 100644 index 106fccca2021..000000000000 --- a/arch/arm/mach-nomadik/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008 STMicroelectronics | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
17 | */ | ||
18 | |||
19 | #ifndef __ASM_ARCH_UNCOMPRESS_H | ||
20 | #define __ASM_ARCH_UNCOMPRESS_H | ||
21 | |||
22 | #include <asm/setup.h> | ||
23 | #include <asm/io.h> | ||
24 | |||
25 | /* we need the constants in amba/serial.h, but it refers to amba_device */ | ||
26 | struct amba_device; | ||
27 | #include <linux/amba/serial.h> | ||
28 | |||
29 | #define NOMADIK_UART_DR (void __iomem *)0x101FB000 | ||
30 | #define NOMADIK_UART_LCRH (void __iomem *)0x101FB02c | ||
31 | #define NOMADIK_UART_CR (void __iomem *)0x101FB030 | ||
32 | #define NOMADIK_UART_FR (void __iomem *)0x101FB018 | ||
33 | |||
34 | static void putc(const char c) | ||
35 | { | ||
36 | /* Do nothing if the UART is not enabled. */ | ||
37 | if (!(readb(NOMADIK_UART_CR) & UART01x_CR_UARTEN)) | ||
38 | return; | ||
39 | |||
40 | if (c == '\n') | ||
41 | putc('\r'); | ||
42 | |||
43 | while (readb(NOMADIK_UART_FR) & UART01x_FR_TXFF) | ||
44 | barrier(); | ||
45 | writeb(c, NOMADIK_UART_DR); | ||
46 | } | ||
47 | |||
48 | static void flush(void) | ||
49 | { | ||
50 | if (!(readb(NOMADIK_UART_CR) & UART01x_CR_UARTEN)) | ||
51 | return; | ||
52 | while (readb(NOMADIK_UART_FR) & UART01x_FR_BUSY) | ||
53 | barrier(); | ||
54 | } | ||
55 | |||
56 | static inline void arch_decomp_setup(void) | ||
57 | { | ||
58 | } | ||
59 | |||
60 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ | ||