From: Olof Johansson Date: Sat, 22 Sep 2012 07:22:33 +0000 (-0700) Subject: Merge branch 'multiplatform/platform-data' into next/multiplatform X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3a66aa33a8f06924f67770e15c22a5c52df314e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Merge branch 'multiplatform/platform-data' into next/multiplatform * multiplatform/platform-data: ARM: spear: move platform_data definitions ARM: samsung: move platform_data definitions ARM: orion: move platform_data definitions ARM: nomadik: move platform_data definitions ARM: w90x900: move platform_data definitions ARM: vt8500: move platform_data definitions ARM: tegra: move sdhci platform_data definition ARM: sa1100: move platform_data definitions ARM: pxa: move platform_data definitions ARM: netx: move platform_data definitions ARM: msm: move platform_data definitions ARM: imx: move platform_data definitions ARM: ep93xx: move platform_data definitions ARM: davinci: move platform_data definitions ARM: at91: move platform_data definitions Conflicts due to removed files: arch/arm/mach-tegra/board-harmony.c arch/arm/mach-tegra/board-trimslice.c Conflicts due to code removal: arch/arm/mach-tegra/board-paz00.c Context conflicts in: drivers/mmc/host/sdhci-tegra.c drivers/net/irda/pxaficp_ir.c Signed-off-by: Olof Johansson --- e3a66aa33a8f06924f67770e15c22a5c52df314e diff --cc arch/arm/mach-exynos/mach-origen.c index abd0e6059ab3,4a531dccd0c6..fc23f74ade81 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@@ -42,9 -42,8 +42,9 @@@ #include #include #include +#include - #include + #include #include #include diff --cc arch/arm/mach-exynos/mach-smdkv310.c index 69b858ceefc5,fa2ada6c9ca7..6e52cbd0b3e0 --- a/arch/arm/mach-exynos/mach-smdkv310.c +++ b/arch/arm/mach-exynos/mach-smdkv310.c @@@ -38,12 -38,11 +38,12 @@@ #include #include #include - #include + #include #include +#include #include - #include + #include #include #include "common.h" diff --cc arch/arm/mach-msm/board-qsd8x50.c index b16b71abf5f6,b21bb4cfc642..a344a373928b --- a/arch/arm/mach-msm/board-qsd8x50.c +++ b/arch/arm/mach-msm/board-qsd8x50.c @@@ -32,10 -32,11 +32,10 @@@ #include #include #include - #include + #include #include "devices.h" - -extern struct sys_timer msm_timer; +#include "common.h" static const resource_size_t qsd8x50_surf_smc91x_base __initdata = 0x70000300; static const unsigned qsd8x50_surf_smc91x_gpio __initdata = 156; diff --cc arch/arm/mach-pxa/devices.c index adf32e61f451,e66bd1bf0163..ddaa04de8e22 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c @@@ -6,18 -6,19 +6,18 @@@ #include #include -#include #include - #include - #include - #include - #include + #include + #include + #include + #include #include - #include - #include - #include + #include + #include + #include #include #include - #include + #include #include "devices.h" #include "generic.h" diff --cc arch/arm/mach-tegra/board-paz00.c index 59305516fadb,112bf683283b..740e16f64728 --- a/arch/arm/mach-tegra/board-paz00.c +++ b/arch/arm/mach-tegra/board-paz00.c @@@ -17,10 -17,72 +17,10 @@@ * */ -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include - -#include -#include -#include -#include -#include - -#include -#include -- + #include "board.h" #include "board-paz00.h" -#include "clock.h" -#include "devices.h" -#include "gpio-names.h" - -static struct plat_serial8250_port debug_uart_platform_data[] = { - { - /* serial port on JP1 */ - .membase = IO_ADDRESS(TEGRA_UARTA_BASE), - .mapbase = TEGRA_UARTA_BASE, - .irq = INT_UARTA, - .flags = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE, - .type = PORT_TEGRA, - .handle_break = tegra_serial_handle_break, - .iotype = UPIO_MEM, - .regshift = 2, - .uartclk = 216000000, - }, { - /* serial port on mini-pcie */ - .membase = IO_ADDRESS(TEGRA_UARTC_BASE), - .mapbase = TEGRA_UARTC_BASE, - .irq = INT_UARTC, - .flags = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE, - .type = PORT_TEGRA, - .handle_break = tegra_serial_handle_break, - .iotype = UPIO_MEM, - .regshift = 2, - .uartclk = 216000000, - }, { - .flags = 0 - } -}; - -static struct platform_device debug_uart = { - .name = "serial8250", - .id = PLAT8250_DEV_PLATFORM, - .dev = { - .platform_data = debug_uart_platform_data, - }, -}; static struct rfkill_gpio_platform_data wifi_rfkill_platform_data = { .name = "wifi_rfkill", diff --cc drivers/mtd/nand/pxa3xx_nand.c index d944d6ef7da8,c53502f3eb6c..c45227173efd --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@@ -22,11 -22,9 +22,11 @@@ #include #include #include +#include +#include #include - #include + #include #define CHIP_DELAY_TIMEOUT (2 * HZ/10) #define NAND_STOP_DELAY (2 * HZ/50) diff --cc drivers/net/irda/pxaficp_ir.c index cb0a5d3c0b64,aa4b9470f04e..002a442bf73f --- a/drivers/net/irda/pxaficp_ir.c +++ b/drivers/net/irda/pxaficp_ir.c @@@ -28,9 -28,9 +28,9 @@@ #include #include - #include + #include -#include #include +#include #define FICP __REG(0x40800000) /* Start of FICP area */ #define ICCR0 __REG(0x40800000) /* ICP Control Register 0 */ diff --cc include/linux/platform_data/camera-mx2.h index 000000000000,3c080a32dbf5..7ded6f1f74bc mode 000000,100644..100644 --- a/include/linux/platform_data/camera-mx2.h +++ b/include/linux/platform_data/camera-mx2.h @@@ -1,0 -1,46 +1,44 @@@ + /* + * mx2-cam.h - i.MX27/i.MX25 camera driver header file + * + * Copyright (C) 2003, Intel Corporation + * Copyright (C) 2008, Sascha Hauer + * Copyright (C) 2010, Baruch Siach + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. + */ + + #ifndef __MACH_MX2_CAM_H_ + #define __MACH_MX2_CAM_H_ + -#define MX2_CAMERA_SWAP16 (1 << 0) + #define MX2_CAMERA_EXT_VSYNC (1 << 1) + #define MX2_CAMERA_CCIR (1 << 2) + #define MX2_CAMERA_CCIR_INTERLACE (1 << 3) + #define MX2_CAMERA_HSYNC_HIGH (1 << 4) + #define MX2_CAMERA_GATED_CLOCK (1 << 5) + #define MX2_CAMERA_INV_DATA (1 << 6) + #define MX2_CAMERA_PCLK_SAMPLE_RISING (1 << 7) -#define MX2_CAMERA_PACK_DIR_MSB (1 << 8) + + /** + * struct mx2_camera_platform_data - optional platform data for mx2_camera + * @flags: any combination of MX2_CAMERA_* + * @clk: clock rate of the csi block / 2 + */ + struct mx2_camera_platform_data { + unsigned long flags; + unsigned long clk; + }; + + #endif /* __MACH_MX2_CAM_H_ */