Adding rpc server
Subsystems (4)
PATCH 1/1 Adding rpc server
Hi Daniel
I've tried to import the SMD server pack into the kernel. But somehow it went wrong.
Any suggestions?
best regards
leviathan
--- arch/arm/mach-msm/Kconfig | 25 + arch/arm/mach-msm/Makefile | 4 +- arch/arm/mach-msm/board-trout-battery.c | 796 ++++++++++++ arch/arm/mach-msm/board-trout-hsusb.c | 352 ++++++ arch/arm/mach-msm/gpio_chip.h | 38 + arch/arm/mach-msm/include/mach/board-hsusb.h | 68 + arch/arm/mach-msm/include/mach/board.h | 2 + arch/arm/mach-msm/smd_rpcrouter.c | 1310 ++++++++++++++++++++ arch/arm/mach-msm/smd_rpcrouter.h | 195 +++ arch/arm/mach-msm/smd_rpcrouter_device.c | 377 ++++++ arch/arm/mach-msm/smd_rpcrouter_servers.c | 229 ++++ drivers/staging/dream/include/mach/msm_rpcrouter.h | 1 + 12 files changed, 3395 insertions(+), 2 deletions(-) create mode 100644 arch/arm/mach-msm/board-trout-battery.c create mode 100644 arch/arm/mach-msm/board-trout-hsusb.c create mode 100644 arch/arm/mach-msm/gpio_chip.h create mode 100644 arch/arm/mach-msm/include/mach/board-hsusb.h create mode 100644 arch/arm/mach-msm/smd_rpcrouter.c create mode 100644 arch/arm/mach-msm/smd_rpcrouter.h create mode 100644 arch/arm/mach-msm/smd_rpcrouter_device.c create mode 100644 arch/arm/mach-msm/smd_rpcrouter_servers.c
arch/arm/mach-msm/Kconfig +25 -0
@@ -1,5 +1,30 @@ if ARCH_MSM +config MSM_AMSS_VERSION + int + default 6210 if MSM_AMSS_VERSION_6210 + default 6220 if MSM_AMSS_VERSION_6220 + default 6225 if MSM_AMSS_VERSION_6225 + default 6350 if MSM_AMSS_VERSION_6350 + +choice + prompt "AMSS modem firmware version" + + default MSM_AMSS_VERSION_6225 + + config MSM_AMSS_VERSION_6210 + bool "6.2.10" + + config MSM_AMSS_VERSION_6220 + bool "6.2.20" + + config MSM_AMSS_VERSION_6225 + bool "6.2.20 + New ADSP" + + config MSM_AMSS_VERSION_6350 + bool "6.3.50" +endchoice + choice prompt "Qualcomm MSM SoC Type" default ARCH_MSM7X00A
arch/arm/mach-msm/Makefile +2 -2
@@ -13,10 +13,10 @@ endif obj-$(CONFIG_ARCH_QSD8X50) += sirc.o obj-$(CONFIG_MSM_SMD) += smd.o smd_debug.o +obj-$(CONFIG_MSM_SMD) += smd_rpcrouter.o smd_rpcrouter_device.o smd_rpcrouter_servers.o obj-$(CONFIG_MSM_SMD) += last_radio_log.o -obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o devices-msm7x00.o -obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o board-trout-panel.o devices-msm7x00.o +obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o board-trout-hsusb.o board-trout-battery.o board-trout-panel.o devices-msm7x00.o 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
arch/arm/mach-msm/board-trout-battery.c new file +796 -0
796 lines not on this page · raw message
arch/arm/mach-msm/board-trout-hsusb.c new file +352 -0
352 lines not on this page · raw message
arch/arm/mach-msm/gpio_chip.h new file +38 -0
@@ -0,0 +1,38 @@ +/* arch/arm/mach-msm/gpio_chip.h +* +* Copyright (C) 2007 Google, Inc. +* +* This software is licensed under the terms of the GNU General Public +* License version 2, as published by the Free Software Foundation, and +* may be copied, distributed, and modified under those terms. +* +* 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. +* +*/ + +#ifndef _LINUX_GPIO_CHIP_H +#define _LINUX_GPIO_CHIP_H + +#include <linux/list.h> + +struct gpio_chip { +struct list_head list; +struct gpio_state *state; + +unsigned int start; +unsigned int end; + +int (*configure)(struct gpio_chip *chip,unsigned int gpio,unsigned long flags); +int (*get_irq_num)(struct gpio_chip *chip,unsigned int gpio,unsigned int *irqp,unsigned long *irqnumflagsp); +int (*read)(struct gpio_chip *chip,unsigned int gpio); +int (*write)(struct gpio_chip *chip,unsigned int gpio,unsigned on); +int (*read_detect_status)(struct gpio_chip *chip,unsigned int gpio); +int (*clear_detect_status)(struct gpio_chip *chip,unsigned int gpio); +}; + +int register_gpio_chip (struct gpio_chip *gpio_chip); + +#endif
arch/arm/mach-msm/include/mach/board-hsusb.h new file +68 -0
68 lines not on this page · raw message
arch/arm/mach-msm/include/mach/board.h +2 -0
@@ -41,4 +41,6 @@ void __init msm_init_gpio(void);void __init msm_clock_init (struct clk *clock_tbl,unsigned num_clocks);void __init msm_acpu_clock_init (struct msm_acpu_clock_platform_data *); +static void msm_hsusb_set_vbus_state (int online); +#endif
arch/arm/mach-msm/smd_rpcrouter.c new file +1310 -0
1,310 lines not on this page · raw message
arch/arm/mach-msm/smd_rpcrouter.h new file +195 -0
195 lines not on this page · raw message
arch/arm/mach-msm/smd_rpcrouter_device.c new file +377 -0
193 lines not on this page · raw message
arch/arm/mach-msm/smd_rpcrouter_servers.c new file +229 -0
229 lines not on this page · raw message
drivers/staging/dream/include/mach/msm_rpcrouter.h +1 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.4.4
Part of the diff is not shown here. View the raw message.
Quoted 3 lines · David Lanzendörfer
I've tried to import the SMD server pack into the kernel. But somehow it went wrong.
Any suggestions?
It would be good to elaborate on these details:
-where to pulled the driver from.
-what your testing criteria is.
-what the outcome is.
Thanks,
Michael
Quoted 4 lines · David Lanzendörfer
Hi Daniel
I've tried to import the SMD server pack into the kernel. But somehow it went wrong.
Any suggestions?
Too much at once .. You need to pull individual patches with specific features, or break up large patches into individual features..
Also please send stuff directly to my address with the list CC'd.
Daniel
Signature · 2 lines
Sent by an consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.