aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-06-18 17:55:27 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-06-18 17:55:27 +0200
commit855d6a6c1f7c54ef073caac3f6c5f9b1ed72eb4d (patch)
tree89b8db35d4eb326263a0f9827c5186467d6d289e /include
parenta8c0a4a5b062a56e5494894aa86b89a21a86ea3e (diff)
downloadkernel_samsung_smdk4412-855d6a6c1f7c54ef073caac3f6c5f9b1ed72eb4d.zip
kernel_samsung_smdk4412-855d6a6c1f7c54ef073caac3f6c5f9b1ed72eb4d.tar.gz
kernel_samsung_smdk4412-855d6a6c1f7c54ef073caac3f6c5f9b1ed72eb4d.tar.bz2
u1: port sensors and modem interface from smdk4210 kernel
Change-Id: Ifa0a332a0413f4ceb3c70e96573786ae576a2ae0
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/modem.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/platform_data/modem.h b/include/linux/platform_data/modem.h
index 8eb949c..9598763 100644
--- a/include/linux/platform_data/modem.h
+++ b/include/linux/platform_data/modem.h
@@ -92,6 +92,7 @@ enum sipc_ver {
* If define multiple link_devices in @links,
* you can receive data from them. But, cannot send data to all.
* TX is only one link_device.
+ * @app: the name of the application that will use this IO device
*
* This structure is used in board-*-modem.c
*/
@@ -102,7 +103,11 @@ struct modem_io_t {
enum modem_io io_type;
enum modem_link links;
enum modem_link tx_link;
+#ifdef CONFIG_MACH_U1
+ char *app;
+#else
bool rx_gather;
+#endif
};
struct modemlink_pm_data {
@@ -140,6 +145,13 @@ struct modemlink_pm_link_activectl {
#define RES_DPRAM_IRQ_ID 2
#define RES_DPRAM_SFR_ID 3
+#ifdef CONFIG_MACH_U1
+#define STR_CP_ACTIVE_IRQ "cp_active_irq"
+#define STR_DPRAM_BASE "dpram_base"
+#define STR_DPRAM_IRQ "dpram_irq"
+#define STR_DPRAM_SFR_BASE "dpram_sfr_base"
+#endif
+
enum dpram_type {
EXT_DPRAM,
AP_IDPRAM,
@@ -219,6 +231,9 @@ struct modemlink_dpram_control {
enum dpram_type dp_type; /* DPRAM type */
int aligned; /* aligned access is required */
+#ifdef CONFIG_MACH_U1
+ bool disabled; /* Disabled during phone booting */
+#endif
u8 __iomem *dp_base;
u32 dp_size;