Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'v3.7-samsung-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into fixes

From Kukjin Kim <kgene.kim@samsung.com>:

One is spi stuff for fix the device names for the different subtypes of
the spi controller. And the other is adding missing .smp field for
exynos4-dt and fixing memory sections for exynos4210-trats board.

* 'v3.7-samsung-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
ARM: EXYNOS: Set .smp field of machine descriptor for exynos4-dt
ARM: dts: Split memory into 4 sections for exynos4210-trats
ARM: SAMSUNG: Add naming of s3c64xx-spi devices

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+55 -2
+4 -2
arch/arm/boot/dts/exynos4210-trats.dts
··· 20 20 compatible = "samsung,trats", "samsung,exynos4210"; 21 21 22 22 memory { 23 - reg = <0x40000000 0x20000000 24 - 0x60000000 0x20000000>; 23 + reg = <0x40000000 0x10000000 24 + 0x50000000 0x10000000 25 + 0x60000000 0x10000000 26 + 0x70000000 0x10000000>; 25 27 }; 26 28 27 29 chosen {
+5
arch/arm/mach-exynos/common.c
··· 47 47 #include <plat/fimc-core.h> 48 48 #include <plat/iic-core.h> 49 49 #include <plat/tv-core.h> 50 + #include <plat/spi-core.h> 50 51 #include <plat/regs-serial.h> 51 52 52 53 #include "common.h" ··· 347 346 348 347 s5p_fb_setname(0, "exynos4-fb"); 349 348 s5p_hdmi_setname("exynos4-hdmi"); 349 + 350 + s3c64xx_spi_setname("exynos4210-spi"); 350 351 } 351 352 352 353 static void __init exynos5_map_io(void) ··· 369 366 s3c_i2c0_setname("s3c2440-i2c"); 370 367 s3c_i2c1_setname("s3c2440-i2c"); 371 368 s3c_i2c2_setname("s3c2440-i2c"); 369 + 370 + s3c64xx_spi_setname("exynos4210-spi"); 372 371 } 373 372 374 373 static void __init exynos4_init_clocks(int xtal)
+1
arch/arm/mach-exynos/mach-exynos4-dt.c
··· 99 99 100 100 DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") 101 101 /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ 102 + .smp = smp_ops(exynos_smp_ops), 102 103 .init_irq = exynos4_init_irq, 103 104 .map_io = exynos4_dt_map_io, 104 105 .handle_irq = gic_handle_irq,
+2
arch/arm/mach-s3c24xx/s3c2416.c
··· 61 61 #include <plat/nand-core.h> 62 62 #include <plat/adc-core.h> 63 63 #include <plat/rtc-core.h> 64 + #include <plat/spi-core.h> 64 65 65 66 static struct map_desc s3c2416_iodesc[] __initdata = { 66 67 IODESC_ENT(WATCHDOG), ··· 133 132 /* initialize device information early */ 134 133 s3c2416_default_sdhci0(); 135 134 s3c2416_default_sdhci1(); 135 + s3c64xx_spi_setname("s3c2443-spi"); 136 136 137 137 iotable_init(s3c2416_iodesc, ARRAY_SIZE(s3c2416_iodesc)); 138 138 }
+4
arch/arm/mach-s3c24xx/s3c2443.c
··· 43 43 #include <plat/nand-core.h> 44 44 #include <plat/adc-core.h> 45 45 #include <plat/rtc-core.h> 46 + #include <plat/spi-core.h> 46 47 47 48 static struct map_desc s3c2443_iodesc[] __initdata = { 48 49 IODESC_ENT(WATCHDOG), ··· 100 99 { 101 100 s3c24xx_gpiocfg_default.set_pull = s3c2443_gpio_setpull; 102 101 s3c24xx_gpiocfg_default.get_pull = s3c2443_gpio_getpull; 102 + 103 + /* initialize device information early */ 104 + s3c64xx_spi_setname("s3c2443-spi"); 103 105 104 106 iotable_init(s3c2443_iodesc, ARRAY_SIZE(s3c2443_iodesc)); 105 107 }
+3
arch/arm/mach-s5p64x0/common.c
··· 44 44 #include <plat/sdhci.h> 45 45 #include <plat/adc-core.h> 46 46 #include <plat/fb-core.h> 47 + #include <plat/spi-core.h> 47 48 #include <plat/gpio-cfg.h> 48 49 #include <plat/regs-irqtype.h> 49 50 #include <plat/regs-serial.h> ··· 180 179 /* initialize any device information early */ 181 180 s3c_adc_setname("s3c64xx-adc"); 182 181 s3c_fb_setname("s5p64x0-fb"); 182 + s3c64xx_spi_setname("s5p64x0-spi"); 183 183 184 184 s5p64x0_default_sdhci0(); 185 185 s5p64x0_default_sdhci1(); ··· 195 193 /* initialize any device information early */ 196 194 s3c_adc_setname("s3c64xx-adc"); 197 195 s3c_fb_setname("s5p64x0-fb"); 196 + s3c64xx_spi_setname("s5p64x0-spi"); 198 197 199 198 s5p64x0_default_sdhci0(); 200 199 s5p64x0_default_sdhci1();
+3
arch/arm/mach-s5pc100/common.c
··· 45 45 #include <plat/fb-core.h> 46 46 #include <plat/iic-core.h> 47 47 #include <plat/onenand-core.h> 48 + #include <plat/spi-core.h> 48 49 #include <plat/regs-serial.h> 49 50 #include <plat/watchdog-reset.h> 50 51 ··· 166 165 s3c_onenand_setname("s5pc100-onenand"); 167 166 s3c_fb_setname("s5pc100-fb"); 168 167 s3c_cfcon_setname("s5pc100-pata"); 168 + 169 + s3c64xx_spi_setname("s5pc100-spi"); 169 170 } 170 171 171 172 void __init s5pc100_init_clocks(int xtal)
+3
arch/arm/mach-s5pv210/common.c
··· 43 43 #include <plat/iic-core.h> 44 44 #include <plat/keypad-core.h> 45 45 #include <plat/tv-core.h> 46 + #include <plat/spi-core.h> 46 47 #include <plat/regs-serial.h> 47 48 48 49 #include "common.h" ··· 197 196 198 197 /* setup TV devices */ 199 198 s5p_hdmi_setname("s5pv210-hdmi"); 199 + 200 + s3c64xx_spi_setname("s5pv210-spi"); 200 201 } 201 202 202 203 void __init s5pv210_init_clocks(int xtal)
+30
arch/arm/plat-samsung/include/plat/spi-core.h
··· 1 + /* 2 + * Copyright (C) 2012 Heiko Stuebner <heiko@sntech.de> 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 version 2 as 6 + * published by the Free Software Foundation. 7 + */ 8 + 9 + #ifndef __PLAT_S3C_SPI_CORE_H 10 + #define __PLAT_S3C_SPI_CORE_H 11 + 12 + /* These functions are only for use with the core support code, such as 13 + * the cpu specific initialisation code 14 + */ 15 + 16 + /* re-define device name depending on support. */ 17 + static inline void s3c64xx_spi_setname(char *name) 18 + { 19 + #ifdef CONFIG_S3C64XX_DEV_SPI0 20 + s3c64xx_device_spi0.name = name; 21 + #endif 22 + #ifdef CONFIG_S3C64XX_DEV_SPI1 23 + s3c64xx_device_spi1.name = name; 24 + #endif 25 + #ifdef CONFIG_S3C64XX_DEV_SPI2 26 + s3c64xx_device_spi2.name = name; 27 + #endif 28 + } 29 + 30 + #endif /* __PLAT_S3C_SPI_CORE_H */