From: Kukjin Kim Date: Thu, 30 Dec 2010 01:44:13 +0000 (+0900) Subject: Merge branch 'next-s5p' into for-next-new X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=724c35cf530651f68f5958dc02e0b49ac6661226;p=linux-beck.git Merge branch 'next-s5p' into for-next-new --- 724c35cf530651f68f5958dc02e0b49ac6661226 diff --cc arch/arm/mach-s5pv210/mach-smdkv210.c index 82e635625073,30eec118a3a4..3a59068e983a --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c @@@ -119,11 -156,28 +156,29 @@@ static struct platform_device *smdkv210 &s3c_device_rtc, &s3c_device_ts, &s3c_device_wdt, + &smdkv210_dm9000, }; + static void __init smdkv210_dm9000_init(void) + { + unsigned int tmp; + + gpio_request(S5PV210_MP01(5), "nCS5"); + s3c_gpio_cfgpin(S5PV210_MP01(5), S3C_GPIO_SFN(2)); + gpio_free(S5PV210_MP01(5)); + + tmp = (5 << S5P_SROM_BCX__TACC__SHIFT); + __raw_writel(tmp, S5P_SROM_BC5); + + tmp = __raw_readl(S5P_SROM_BW); + tmp &= (S5P_SROM_BW__CS_MASK << S5P_SROM_BW__NCS5__SHIFT); + tmp |= (1 << S5P_SROM_BW__NCS5__SHIFT); + __raw_writel(tmp, S5P_SROM_BW); + } + static struct i2c_board_info smdkv210_i2c_devs0[] __initdata = { { I2C_BOARD_INFO("24c08", 0x50), }, /* Samsung S524AD0XD1 */ + { I2C_BOARD_INFO("wm8580", 0x1b), }, }; static struct i2c_board_info smdkv210_i2c_devs1[] __initdata = { diff --cc arch/arm/mach-s5pv310/include/mach/map.h index 53994467605d,5eab2ecfed2a..0d0e7eb5b391 --- a/arch/arm/mach-s5pv310/include/mach/map.h +++ b/arch/arm/mach-s5pv310/include/mach/map.h @@@ -64,23 -62,8 +67,24 @@@ #define S5PV310_PA_HSMMC(x) (0x12510000 + ((x) * 0x10000)) #define S5PV310_PA_SROMC (0x12570000) + #define S5P_PA_SROMC S5PV310_PA_SROMC +/* S/PDIF */ +#define S5PV310_PA_SPDIF 0xE1100000 + +/* I2S */ +#define S5PV310_PA_I2S0 0x03830000 +#define S5PV310_PA_I2S1 0xE3100000 +#define S5PV310_PA_I2S2 0xE2A00000 + +/* PCM */ +#define S5PV310_PA_PCM0 0x03840000 +#define S5PV310_PA_PCM1 0x13980000 +#define S5PV310_PA_PCM2 0x13990000 + +/* AC97 */ +#define S5PV310_PA_AC97 0x139A0000 + #define S5PV310_PA_UART (0x13800000) #define S5P_PA_UART(x) (S5PV310_PA_UART + ((x) * S3C_UART_OFFSET)) diff --cc arch/arm/mach-s5pv310/mach-smdkc210.c index 62c4d6204d2a,62956d3488b1..f3bc283df119 --- a/arch/arm/mach-s5pv310/mach-smdkc210.c +++ b/arch/arm/mach-s5pv310/mach-smdkc210.c @@@ -24,10 -24,8 +25,9 @@@ #include #include #include +#include #include - #include /* Following are default values for UCON, ULCON and UFCON UART registers */ #define SMDKC210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ diff --cc arch/arm/mach-s5pv310/mach-smdkv310.c index d5eb607763f7,342660232342..e4a826ac3c1d --- a/arch/arm/mach-s5pv310/mach-smdkv310.c +++ b/arch/arm/mach-s5pv310/mach-smdkv310.c @@@ -24,10 -24,8 +25,9 @@@ #include #include #include +#include #include - #include /* Following are default values for UCON, ULCON and UFCON UART registers */ #define SMDKV310_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \