Commit 32836e08 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 's5p-fixes-for-linus' of...

Merge branch 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung

* 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
  ARM: Suspend: Fix dependency of ARCH_SUSPEND_POSSIBLE
  ARM: SAMSUNG: Fix CPU idmask
  ARM: EXYNOS4: Fix addruart macro
  ARM: EXYNOS4: Fix smsc9215 irq polarity on SMDKC210
  ARM: EXYNOS4: Fix smsc9215 irq polarity on SMDKV310
  ARM: EXYNOS4: Fix build warning on regarding SATA_AHCI_PLATFORM
  ARM: S5PV210: Remove duplicated inclusion
  ARM: S5PV210: Fix security engine interrupt names
  ARM: S5P64X0: Fix iodesc array size for S5P6450
parents 036a9826 3e1d9874
...@@ -2009,6 +2009,7 @@ menu "Power management options" ...@@ -2009,6 +2009,7 @@ menu "Power management options"
source "kernel/power/Kconfig" source "kernel/power/Kconfig"
config ARCH_SUSPEND_POSSIBLE config ARCH_SUSPEND_POSSIBLE
depends on !ARCH_S5P64X0 && !ARCH_S5P6442
def_bool y def_bool y
endmenu endmenu
......
...@@ -20,6 +20,11 @@ config EXYNOS4_MCT ...@@ -20,6 +20,11 @@ config EXYNOS4_MCT
help help
Use MCT (Multi Core Timer) as kernel timers Use MCT (Multi Core Timer) as kernel timers
config EXYNOS4_DEV_AHCI
bool
help
Compile in platform device definitions for AHCI
config EXYNOS4_DEV_PD config EXYNOS4_DEV_PD
bool bool
help help
...@@ -134,9 +139,9 @@ config MACH_ARMLEX4210 ...@@ -134,9 +139,9 @@ config MACH_ARMLEX4210
select S3C_DEV_HSMMC select S3C_DEV_HSMMC
select S3C_DEV_HSMMC2 select S3C_DEV_HSMMC2
select S3C_DEV_HSMMC3 select S3C_DEV_HSMMC3
select EXYNOS4_DEV_AHCI
select EXYNOS4_DEV_SYSMMU select EXYNOS4_DEV_SYSMMU
select EXYNOS4_SETUP_SDHCI select EXYNOS4_SETUP_SDHCI
select SATA_AHCI_PLATFORM
help help
Machine support for Samsung ARMLEX4210 based on EXYNOS4210 Machine support for Samsung ARMLEX4210 based on EXYNOS4210
......
...@@ -39,6 +39,7 @@ obj-$(CONFIG_MACH_NURI) += mach-nuri.o ...@@ -39,6 +39,7 @@ obj-$(CONFIG_MACH_NURI) += mach-nuri.o
# device support # device support
obj-y += dev-audio.o obj-y += dev-audio.o
obj-$(CONFIG_EXYNOS4_DEV_AHCI) += dev-ahci.o
obj-$(CONFIG_EXYNOS4_DEV_PD) += dev-pd.o obj-$(CONFIG_EXYNOS4_DEV_PD) += dev-pd.o
obj-$(CONFIG_EXYNOS4_DEV_SYSMMU) += dev-sysmmu.o obj-$(CONFIG_EXYNOS4_DEV_SYSMMU) += dev-sysmmu.o
...@@ -53,4 +54,3 @@ obj-$(CONFIG_EXYNOS4_SETUP_I2C7) += setup-i2c7.o ...@@ -53,4 +54,3 @@ obj-$(CONFIG_EXYNOS4_SETUP_I2C7) += setup-i2c7.o
obj-$(CONFIG_EXYNOS4_SETUP_KEYPAD) += setup-keypad.o obj-$(CONFIG_EXYNOS4_SETUP_KEYPAD) += setup-keypad.o
obj-$(CONFIG_EXYNOS4_SETUP_SDHCI) += setup-sdhci.o obj-$(CONFIG_EXYNOS4_SETUP_SDHCI) += setup-sdhci.o
obj-$(CONFIG_EXYNOS4_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o obj-$(CONFIG_EXYNOS4_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
obj-$(CONFIG_SATA_AHCI_PLATFORM) += dev-ahci.o
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
*/ */
.macro addruart, rp, rv .macro addruart, rp, rv
ldreq \rp, = S3C_PA_UART ldr \rp, = S3C_PA_UART
ldrne \rv, = S3C_VA_UART ldr \rv, = S3C_VA_UART
#if CONFIG_DEBUG_S3C_UART != 0 #if CONFIG_DEBUG_S3C_UART != 0
add \rp, \rp, #(0x10000 * CONFIG_DEBUG_S3C_UART) add \rp, \rp, #(0x10000 * CONFIG_DEBUG_S3C_UART)
add \rv, \rv, #(0x10000 * CONFIG_DEBUG_S3C_UART) add \rv, \rv, #(0x10000 * CONFIG_DEBUG_S3C_UART)
......
...@@ -125,7 +125,7 @@ static struct resource smdkc210_smsc911x_resources[] = { ...@@ -125,7 +125,7 @@ static struct resource smdkc210_smsc911x_resources[] = {
}; };
static struct smsc911x_platform_config smsc9215_config = { static struct smsc911x_platform_config smsc9215_config = {
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH, .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
.flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY, .flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
.phy_interface = PHY_INTERFACE_MODE_MII, .phy_interface = PHY_INTERFACE_MODE_MII,
......
...@@ -127,7 +127,7 @@ static struct resource smdkv310_smsc911x_resources[] = { ...@@ -127,7 +127,7 @@ static struct resource smdkv310_smsc911x_resources[] = {
}; };
static struct smsc911x_platform_config smsc9215_config = { static struct smsc911x_platform_config smsc9215_config = {
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH, .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
.flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY, .flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
.phy_interface = PHY_INTERFACE_MODE_MII, .phy_interface = PHY_INTERFACE_MODE_MII,
......
...@@ -119,7 +119,7 @@ void __init s5p6450_map_io(void) ...@@ -119,7 +119,7 @@ void __init s5p6450_map_io(void)
s3c_adc_setname("s3c64xx-adc"); s3c_adc_setname("s3c64xx-adc");
iotable_init(s5p64x0_iodesc, ARRAY_SIZE(s5p64x0_iodesc)); iotable_init(s5p64x0_iodesc, ARRAY_SIZE(s5p64x0_iodesc));
iotable_init(s5p6450_iodesc, ARRAY_SIZE(s5p6440_iodesc)); iotable_init(s5p6450_iodesc, ARRAY_SIZE(s5p6450_iodesc));
} }
/* /*
......
...@@ -99,9 +99,9 @@ ...@@ -99,9 +99,9 @@
#define IRQ_TC IRQ_PENDN #define IRQ_TC IRQ_PENDN
#define IRQ_KEYPAD S5P_IRQ_VIC2(25) #define IRQ_KEYPAD S5P_IRQ_VIC2(25)
#define IRQ_CG S5P_IRQ_VIC2(26) #define IRQ_CG S5P_IRQ_VIC2(26)
#define IRQ_SEC S5P_IRQ_VIC2(27) #define IRQ_SSS_INT S5P_IRQ_VIC2(27)
#define IRQ_SECRX S5P_IRQ_VIC2(28) #define IRQ_SSS_HASH S5P_IRQ_VIC2(28)
#define IRQ_SECTX S5P_IRQ_VIC2(29) #define IRQ_PCM2 S5P_IRQ_VIC2(29)
#define IRQ_SDMIRQ S5P_IRQ_VIC2(30) #define IRQ_SDMIRQ S5P_IRQ_VIC2(30)
#define IRQ_SDMFIQ S5P_IRQ_VIC2(31) #define IRQ_SDMFIQ S5P_IRQ_VIC2(31)
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#include <plat/keypad.h> #include <plat/keypad.h>
#include <plat/pm.h> #include <plat/pm.h>
#include <plat/fb.h> #include <plat/fb.h>
#include <plat/gpio-cfg.h>
#include <plat/s5p-time.h> #include <plat/s5p-time.h>
/* Following are default values for UCON, ULCON and UFCON UART registers */ /* Following are default values for UCON, ULCON and UFCON UART registers */
......
...@@ -39,7 +39,7 @@ static const char name_exynos4210[] = "EXYNOS4210"; ...@@ -39,7 +39,7 @@ static const char name_exynos4210[] = "EXYNOS4210";
static struct cpu_table cpu_ids[] __initdata = { static struct cpu_table cpu_ids[] __initdata = {
{ {
.idcode = 0x56440100, .idcode = 0x56440100,
.idmask = 0xffffff00, .idmask = 0xfffff000,
.map_io = s5p6440_map_io, .map_io = s5p6440_map_io,
.init_clocks = s5p6440_init_clocks, .init_clocks = s5p6440_init_clocks,
.init_uarts = s5p6440_init_uarts, .init_uarts = s5p6440_init_uarts,
...@@ -47,7 +47,7 @@ static struct cpu_table cpu_ids[] __initdata = { ...@@ -47,7 +47,7 @@ static struct cpu_table cpu_ids[] __initdata = {
.name = name_s5p6440, .name = name_s5p6440,
}, { }, {
.idcode = 0x36442000, .idcode = 0x36442000,
.idmask = 0xffffff00, .idmask = 0xfffff000,
.map_io = s5p6442_map_io, .map_io = s5p6442_map_io,
.init_clocks = s5p6442_init_clocks, .init_clocks = s5p6442_init_clocks,
.init_uarts = s5p6442_init_uarts, .init_uarts = s5p6442_init_uarts,
...@@ -55,7 +55,7 @@ static struct cpu_table cpu_ids[] __initdata = { ...@@ -55,7 +55,7 @@ static struct cpu_table cpu_ids[] __initdata = {
.name = name_s5p6442, .name = name_s5p6442,
}, { }, {
.idcode = 0x36450000, .idcode = 0x36450000,
.idmask = 0xffffff00, .idmask = 0xfffff000,
.map_io = s5p6450_map_io, .map_io = s5p6450_map_io,
.init_clocks = s5p6450_init_clocks, .init_clocks = s5p6450_init_clocks,
.init_uarts = s5p6450_init_uarts, .init_uarts = s5p6450_init_uarts,
...@@ -79,7 +79,7 @@ static struct cpu_table cpu_ids[] __initdata = { ...@@ -79,7 +79,7 @@ static struct cpu_table cpu_ids[] __initdata = {
.name = name_s5pv210, .name = name_s5pv210,
}, { }, {
.idcode = 0x43210000, .idcode = 0x43210000,
.idmask = 0xfffff000, .idmask = 0xfffe0000,
.map_io = exynos4_map_io, .map_io = exynos4_map_io,
.init_clocks = exynos4_init_clocks, .init_clocks = exynos4_init_clocks,
.init_uarts = exynos4_init_uarts, .init_uarts = exynos4_init_uarts,
......
...@@ -36,7 +36,7 @@ static struct cpu_table * __init s3c_lookup_cpu(unsigned long idcode, ...@@ -36,7 +36,7 @@ static struct cpu_table * __init s3c_lookup_cpu(unsigned long idcode,
unsigned int count) unsigned int count)
{ {
for (; count != 0; count--, tab++) { for (; count != 0; count--, tab++) {
if ((idcode & tab->idmask) == tab->idcode) if ((idcode & tab->idmask) == (tab->idcode & tab->idmask))
return tab; return tab;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment