msm: serial: Add MSM8960 serial support
Subsystems (3)
PATCH 1/1 msm: serial: Add MSM8960 serial support
Add the device definitions and platform data to support the console serial port on MSM8960 Simulator and RUMI3 targets.
--- arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/board-msm8960.c | 22 +++++++++ arch/arm/mach-msm/devices-msm8960.c | 83 +++++++++++++++++++++++++++++++++++ arch/arm/mach-msm/devices.h | 3 + 4 files changed, 109 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-msm/devices-msm8960.c
arch/arm/mach-msm/Makefile +1 -1
@@ -24,7 +24,7 @@ obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o obj-$(CONFIG_ARCH_MSM8X60) += board-msm8x60.o -obj-$(CONFIG_ARCH_MSM8960) += board-msm8960.o +obj-$(CONFIG_ARCH_MSM8960) += board-msm8960.o devices-msm8960.o obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-7x30.o gpiomux-v1.o gpiomux.o obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-v1.o gpiomux.o
arch/arm/mach-msm/board-msm8960.c +22 -0
@@ -27,6 +27,8 @@#include <mach/board.h> #include <mach/msm_iomap.h> +#include "devices.h" +static void __init msm8960_map_io (void ) {msm_map_msm8960_io ();
@@ -54,15 +56,35 @@ static void __init msm8960_init_irq(void) } } +static struct platform_device *sim_devices[]__initdata = { + &msm8960_device_uart_gsbi2, +}; + +static struct platform_device *rumi3_devices[]__initdata = { + &msm8960_device_uart_gsbi5, +}; + +static void __init msm8960_sim_init (void ) +{ +platform_add_devices (sim_devices,ARRAY_SIZE (sim_devices)); +} + +static void __init msm8960_rumi3_init (void ) +{ +platform_add_devices (rumi3_devices,ARRAY_SIZE (rumi3_devices)); +} +MACHINE_START (MSM8960_SIM ,"QCT MSM8960 SIMULATOR" ) .map_io = msm8960_map_io, .init_irq = msm8960_init_irq, + .init_machine = msm8960_sim_init, .timer = &msm_timer, MACHINE_ENDMACHINE_START (MSM8960_RUMI3 ,"QCT MSM8960 RUMI3" ) .map_io = msm8960_map_io, .init_irq = msm8960_init_irq, + .init_machine = msm8960_rumi3_init, .timer = &msm_timer,MACHINE_END
arch/arm/mach-msm/devices-msm8960.c new file +83 -0
83 lines not on this page · raw message
arch/arm/mach-msm/devices.h +3 -0
@@ -22,6 +22,9 @@ extern struct platform_device msm_device_uart1;extern struct platform_device msm_device_uart2;extern struct platform_device msm_device_uart3; +extern struct platform_device msm8960_device_uart_gsbi2; +extern struct platform_device msm8960_device_uart_gsbi5; +extern struct platform_device msm_device_sdc1;extern struct platform_device msm_device_sdc2;extern struct platform_device msm_device_sdc3;
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
arch/arm/mach-msm/devices-msm8960.c line 3
Quoted 9 lines · Stepan Moskovchenko
arch/arm/mach-msm/devices-msm8960.c new file +3
-0@@ -0,0 +1,83 @@ +/* +* Copyright (C) 2008 Google, Inc. +* Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
What is the general consenus on this kind of copyright. Stepan started with a file with a Google copyright on it, but has largely rewritten the file to support the new board. Should we be keeping the copyright from the file?
Thanks,
David
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH v2 1/1 msm: serial: Add MSM8960 serial support
In reply to Stepan MoskovchenkoAdd the device definitions and platform data to support the console serial port on MSM8960 Simulator and RUMI3 targets.
---
V2: Minor cosmetic changes
* Change the order of some fields based on Russell's rules
* Update copyright header
arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/board-msm8960.c | 22 +++++++++ arch/arm/mach-msm/devices-msm8960.c | 85 +++++++++++++++++++++++++++++++++++ arch/arm/mach-msm/devices.h | 3 + 4 files changed, 111 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-msm/devices-msm8960.c
arch/arm/mach-msm/Makefile +1 -1
@@ -25,7 +25,7 @@ obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o obj-$(CONFIG_ARCH_MSM8X60) += board-msm8x60.o -obj-$(CONFIG_ARCH_MSM8960) += board-msm8960.o +obj-$(CONFIG_ARCH_MSM8960) += board-msm8960.o devices-msm8960.o obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-v1.o gpiomux.o obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-v1.o gpiomux.o
arch/arm/mach-msm/board-msm8960.c +22 -0
@@ -27,6 +27,8 @@#include <mach/board.h> #include <mach/msm_iomap.h> +#include "devices.h" +static void __init msm8960_map_io (void ) {msm_map_msm8960_io ();
@@ -54,15 +56,35 @@ static void __init msm8960_init_irq(void) } } +static struct platform_device *sim_devices[]__initdata = { + &msm8960_device_uart_gsbi2, +}; + +static struct platform_device *rumi3_devices[]__initdata = { + &msm8960_device_uart_gsbi5, +}; + +static void __init msm8960_sim_init (void ) +{ +platform_add_devices (sim_devices,ARRAY_SIZE (sim_devices)); +} + +static void __init msm8960_rumi3_init (void ) +{ +platform_add_devices (rumi3_devices,ARRAY_SIZE (rumi3_devices)); +} +MACHINE_START (MSM8960_SIM ,"QCT MSM8960 SIMULATOR" ) .map_io = msm8960_map_io, .init_irq = msm8960_init_irq, .timer = &msm_timer, + .init_machine = msm8960_sim_init, MACHINE_ENDMACHINE_START (MSM8960_RUMI3 ,"QCT MSM8960 RUMI3" ) .map_io = msm8960_map_io, .init_irq = msm8960_init_irq, .timer = &msm_timer, + .init_machine = msm8960_rumi3_init,MACHINE_END
arch/arm/mach-msm/devices-msm8960.c new file +85 -0
85 lines not on this page · raw message
arch/arm/mach-msm/devices.h +3 -0
@@ -22,6 +22,9 @@ extern struct platform_device msm_device_uart1;extern struct platform_device msm_device_uart2;extern struct platform_device msm_device_uart3; +extern struct platform_device msm8960_device_uart_gsbi2; +extern struct platform_device msm8960_device_uart_gsbi5; +extern struct platform_device msm_device_sdc1;extern struct platform_device msm_device_sdc2;extern struct platform_device msm_device_sdc3;
--
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.