From 97718559ad703f46521c5ebf917209f4147491e4 Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Mon, 23 Feb 2015 18:24:48 -0800 Subject: soc: qcom: Service locator for kernel clients Add a library that retrieves location information given a service identifier. Location here translates to what process domain exports the service, and which subsystem that process executes on. Change-Id: Ia5d76ea4de29dbafe309a831f8a2418c058cba94 Signed-off-by: Pushkar Joshi [dkeitel@codeaurora.org: fixed minor conflicts in Kconfig and Makefile.] Signed-off-by: David Keitel --- include/soc/qcom/service-locator.h | 88 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 include/soc/qcom/service-locator.h (limited to 'include') diff --git a/include/soc/qcom/service-locator.h b/include/soc/qcom/service-locator.h new file mode 100644 index 000000000000..be1a2b431dd9 --- /dev/null +++ b/include/soc/qcom/service-locator.h @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2015, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * 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. + * + * Process Domain Service Locator API header + */ + +#ifndef _SERVICE_LOCATOR_H +#define _SERVICE_LOCATOR_H + +#define QMI_SERVREG_LOC_NAME_LENGTH_V01 64 +#define QMI_SERVREG_LOC_LIST_LENGTH_V01 32 + +/* + * @name: The full process domain path for a process domain which provides + * a particular service + * @instance_id: The QMI instance id corresponding to the root process + * domain which is responsible for notifications for this + * process domain + * @service_data_valid: Indicates if service_data field has valid data + * @service_data: Optional service data provided by the service locator + */ +struct servreg_loc_entry_v01 { + char name[QMI_SERVREG_LOC_NAME_LENGTH_V01 + 1]; + uint32_t instance_id; + uint8_t service_data_valid; + uint32_t service_data; +}; + +/* + * @client_name: Name of the client calling the api + * @service_name: Name of the service for which the list of process domains + * is requested + * @total_domains: Length of the process domain list + * @db_rev_count: Process domain list database revision number + * @domain_list: List of process domains providing the service + */ +struct pd_qmi_client_data { + char client_name[QMI_SERVREG_LOC_NAME_LENGTH_V01 + 1]; + char service_name[QMI_SERVREG_LOC_NAME_LENGTH_V01 + 1]; + int total_domains; + int db_rev_count; + struct servreg_loc_entry_v01 *domain_list; +}; + +#if defined(CONFIG_MSM_SERVICE_LOCATOR) +/* + * Use this api to request information regarding the process domains on which + * a particular service runs. The client name and the service name inside the + * pd_qmi_client_data structure need to be filled in by the client calling the + * api. The total domains, db revision and the domain list will be filled in + * by the service locator. + * Returns 0 on success; otherwise a value < 0 if no valid subsystem is found. + */ +int get_service_location(struct pd_qmi_client_data *data); + +/* + * Use this api to request information regarding the subsystem the process + * domain runs on. + * @pd_path: The name field from inside the servreg_loc_entry that one + * gets back using the get_processdomains api. + * Returns 0 on success; otherwise a value < 0 if no valid subsystem is found. + */ +int find_subsys(const char *pd_path, char *subsys); + +#else + +static inline int get_service_location(struct pd_qmi_client_data *data) +{ + return 0; +} + +static inline int find_subsys(const char *pd_path, const char *subsys) +{ + return 0; +} + +#endif /* CONFIG_MSM_SERVICE_LOCATOR */ + +#endif -- cgit v1.2.3 From efacf5d031b7e2a595db2891acf3b78cc9049bed Mon Sep 17 00:00:00 2001 From: Lior David Date: Thu, 31 Mar 2016 13:07:22 +0300 Subject: cfg80211: basic support for PBSS network type PBSS (Personal Basic Service Set) is a new BSS type for DMG networks. It is similar to infrastructure BSS, having an AP-like entity called PCP (PBSS Control Point), but it has few differences. PBSS support is mandatory for 11ad devices. Add support for PBSS by introducing a new PBSS flag attribute. The PBSS flag is used in the START_AP command to request starting a PCP instead of an AP, and in the CONNECT command to request connecting to a PCP instead of an AP. Change-Id: I9f26a8ff8433268240eb9443befadc0d279a0293 [liord@codeaurora.org: added missing attributes to nl80211.h that were added in upstream kernel before the PBSS attribute, in order to keep the ABI compatible] Signed-off-by: Lior David Signed-off-by: Johannes Berg Git-commit: 00807f28573a101dc2833f0075e806b9874f306c Git-repo: https://github.com/kvalo/ath.git CRs-Fixed: 982931 Signed-off-by: Maya Erez --- include/net/cfg80211.h | 8 ++++++++ include/uapi/linux/nl80211.h | 7 +++++++ 2 files changed, 15 insertions(+) (limited to 'include') diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 1d67f3873e10..63568caf0de8 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -712,6 +712,8 @@ struct cfg80211_acl_data { * @p2p_opp_ps: P2P opportunistic PS * @acl: ACL configuration used by the drivers which has support for * MAC address based access control + * @pbss: If set, start as a PCP instead of AP. Relevant for DMG + * networks. */ struct cfg80211_ap_settings { struct cfg80211_chan_def chandef; @@ -730,6 +732,7 @@ struct cfg80211_ap_settings { u8 p2p_ctwindow; bool p2p_opp_ps; const struct cfg80211_acl_data *acl; + bool pbss; }; /** @@ -1888,6 +1891,8 @@ struct cfg80211_ibss_params { * @ht_capa_mask: The bits of ht_capa which are to be used. * @vht_capa: VHT Capability overrides * @vht_capa_mask: The bits of vht_capa which are to be used. + * @pbss: if set, connect to a PCP instead of AP. Valid for DMG + * networks. */ struct cfg80211_connect_params { struct ieee80211_channel *channel; @@ -1910,6 +1915,7 @@ struct cfg80211_connect_params { struct ieee80211_ht_cap ht_capa_mask; struct ieee80211_vht_cap vht_capa; struct ieee80211_vht_cap vht_capa_mask; + bool pbss; }; /** @@ -3488,6 +3494,7 @@ struct cfg80211_cached_keys; * registered for unexpected class 3 frames (AP mode) * @conn: (private) cfg80211 software SME connection state machine data * @connect_keys: (private) keys to set after connection is established + * @conn_bss_type: connecting/connected BSS type * @ibss_fixed: (private) IBSS is using fixed BSSID * @ibss_dfs_possible: (private) IBSS may change to a DFS channel * @event_list: (private) list for internal event processing @@ -3518,6 +3525,7 @@ struct wireless_dev { u8 ssid_len, mesh_id_len, mesh_id_up_len; struct cfg80211_conn *conn; struct cfg80211_cached_keys *connect_keys; + enum ieee80211_bss_type conn_bss_type; struct list_head event_list; spinlock_t event_lock; diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 1f0b4cf5dd03..25627f584405 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -1783,6 +1783,11 @@ enum nl80211_commands { * between scans. The scan plans are executed sequentially. * Each scan plan is a nested attribute of &enum nl80211_sched_scan_plan. * + * @NL80211_ATTR_PBSS: flag attribute. If set it means operate + * in a PBSS. Specified in %NL80211_CMD_CONNECT to request + * connecting to a PCP, and in %NL80211_CMD_START_AP to start + * a PCP instead of AP. Relevant for DMG networks only. + * * @NUM_NL80211_ATTR: total number of nl80211_attrs available * @NL80211_ATTR_MAX: highest attribute number currently defined * @__NL80211_ATTR_AFTER_LAST: internal use @@ -2157,6 +2162,8 @@ enum nl80211_attrs { NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS, NL80211_ATTR_SCHED_SCAN_PLANS, + NL80211_ATTR_PBSS, + /* add attributes here, update the policy in nl80211.c */ __NL80211_ATTR_AFTER_LAST, -- cgit v1.2.3 From 7c7f4fd1cf1798d4a16236c8a672566456a9d93c Mon Sep 17 00:00:00 2001 From: Yuanyuan Liu Date: Mon, 7 Mar 2016 14:21:18 -0800 Subject: icnss: Update WLAN mode in wlan_firmware_service Add CCPM/QVIT in WLAN mode and add support fo setting WLAN mode from command line. CRs-Fixed: 986484 Change-Id: I5921dc3978bf96221b50148bb2f86b0ffed3b5fb Signed-off-by: Yuanyuan Liu --- include/soc/qcom/icnss.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/soc/qcom/icnss.h b/include/soc/qcom/icnss.h index 14a22fd1b55f..27ae1332947c 100644 --- a/include/soc/qcom/icnss.h +++ b/include/soc/qcom/icnss.h @@ -72,6 +72,8 @@ enum icnss_driver_mode { ICNSS_EPPING, ICNSS_WALTEST, ICNSS_OFF, + ICNSS_CCPM, + ICNSS_QVIT, }; struct icnss_soc_info { -- cgit v1.2.3 From ff717b7dab57d18250c32efed2051ac46c1e8401 Mon Sep 17 00:00:00 2001 From: Skylar Chang Date: Sun, 9 Aug 2015 00:10:21 -0700 Subject: msm: ipa: header file change for WDI2.0 structure changes for WDI2.0, wlan needs pass comp_ring_base_pa and comp_ring_wp_pa to ipa-uc Change-Id: Ib0cdd0c7614916e53f2731f61d0399959d4b739d Signed-off-by: Skylar Chang --- include/linux/ipa.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/linux/ipa.h b/include/linux/ipa.h index fe99c620b85b..4fc2231c9842 100644 --- a/include/linux/ipa.h +++ b/include/linux/ipa.h @@ -907,12 +907,21 @@ struct IpaHwStatsWDIInfoData_t { * Rx buffers) * @rdy_ring_size: size of the Rx ring in bytes * @rdy_ring_rp_pa: physical address of the location through which IPA uc is + * reading (WDI-1.0) + * @rdy_comp_ring_base_pa: physical address of the base of the Rx completion + * ring (WDI-2.0) + * @rdy_comp_ring_wp_pa: physical address of the location through which IPA + * uc is writing (WDI-2.0) + * @rdy_comp_ring_size: size of the Rx_completion ring in bytes * expected to communicate about the Read pointer into the Rx Ring */ struct ipa_wdi_ul_params { phys_addr_t rdy_ring_base_pa; u32 rdy_ring_size; phys_addr_t rdy_ring_rp_pa; + phys_addr_t rdy_comp_ring_base_pa; + phys_addr_t rdy_comp_ring_wp_pa; + u32 rdy_comp_ring_size; }; /** @@ -926,6 +935,9 @@ struct ipa_wdi_ul_params_smmu { struct sg_table rdy_ring; u32 rdy_ring_size; phys_addr_t rdy_ring_rp_pa; + struct sg_table rdy_comp_ring; + phys_addr_t rdy_comp_ring_wp_pa; + u32 rdy_comp_ring_size; }; /** -- cgit v1.2.3 From b63c02a6187b85ea589fa025805c1377da1c863f Mon Sep 17 00:00:00 2001 From: Skylar Chang Date: Mon, 26 Oct 2015 16:52:28 -0700 Subject: msm: ipa: header change for wlan VA mapping wlan will pass the VA to IPA-driver to let IPA-driver access the values of rdy_ring_rp and rdy_comp_ring_wp to decive when can suspend the WDI pipe Change-Id: I73447c5557d42817ac2214532273e0de638e13d9 Signed-off-by: Skylar Chang --- include/linux/ipa.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/ipa.h b/include/linux/ipa.h index 4fc2231c9842..4e14dd8a36bf 100644 --- a/include/linux/ipa.h +++ b/include/linux/ipa.h @@ -922,6 +922,8 @@ struct ipa_wdi_ul_params { phys_addr_t rdy_comp_ring_base_pa; phys_addr_t rdy_comp_ring_wp_pa; u32 rdy_comp_ring_size; + u32 *rdy_ring_rp_va; + u32 *rdy_comp_ring_wp_va; }; /** -- cgit v1.2.3 From e558c118418412734272a6b5721c822b6e578692 Mon Sep 17 00:00:00 2001 From: Dhoat Harpal Date: Fri, 1 Apr 2016 17:11:56 +0530 Subject: soc: qcom: smem: Renaming smem item SMEM_SMEM_STATIC_LOG_IDX SMEM_SMEM_STATIC_LOG_IDX is currently unused as its usecase has been deprecated for a long time. Reallocate the ID to SMEM_XBL_LOADER_CORE_INFO. CRs-Fixed: 998028 Change-Id: I5f80603633464e7eea322fde57110e377b72d84c Signed-off-by: Dhoat Harpal --- include/soc/qcom/smem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/soc/qcom/smem.h b/include/soc/qcom/smem.h index c83caede1763..d8ee4d523880 100644 --- a/include/soc/qcom/smem.h +++ b/include/soc/qcom/smem.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -76,7 +76,7 @@ enum { SMEM_SMD_BASE_ID, SMEM_SMEM_LOG_IDX = SMEM_SMD_BASE_ID + SMEM_NUM_SMD_STREAM_CHANNELS, SMEM_SMEM_LOG_EVENTS, - SMEM_SMEM_STATIC_LOG_IDX, + SMEM_XBL_LOADER_CORE_INFO, SMEM_SMEM_STATIC_LOG_EVENTS, SMEM_SMEM_SLOW_CLOCK_SYNC, SMEM_SMEM_SLOW_CLOCK_VALUE, -- cgit v1.2.3 From 6f398060896f29f7ee202d4cb6b126bac29f66e2 Mon Sep 17 00:00:00 2001 From: Amir Levy Date: Wed, 6 Apr 2016 17:52:14 +0300 Subject: msm: ipa3: add odu_bridge to ipa_clients folder As part of IPA driver refactoring, a separation has been made between IPA core driver and the IPA clients. odu_bridge driver has moved to the ipa_clients folder and a dedicated header file has been created in order to provide a direct interface between IPA odu_bridge client driver and other drivers without a direct interaction with the IPA core driver. CRs-Fixed: 999935 Change-Id: Ib5109681c62137d1310539daa816d5229bc08098 Signed-off-by: Amir Levy --- include/linux/ipa_odu_bridge.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/linux/ipa_odu_bridge.h (limited to 'include') diff --git a/include/linux/ipa_odu_bridge.h b/include/linux/ipa_odu_bridge.h new file mode 100644 index 000000000000..04b809b70942 --- /dev/null +++ b/include/linux/ipa_odu_bridge.h @@ -0,0 +1,30 @@ +/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * 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 _IPA_ODO_BRIDGE_H_ +#define _IPA_ODO_BRIDGE_H_ + +#if defined CONFIG_IPA || defined CONFIG_IPA3 + +int odu_bridge_init(struct odu_bridge_params *params); + +int odu_bridge_connect(void); + +int odu_bridge_disconnect(void); + +int odu_bridge_tx_dp(struct sk_buff *skb, struct ipa_tx_meta *metadata); + +int odu_bridge_cleanup(void); + +#endif /* CONFIG_IPA || defined CONFIG_IPA3 */ + +#endif /* _IPA_ODO_BRIDGE_H */ -- cgit v1.2.3 From 3e8eeb698a639e42f89fc21a610803327d3de990 Mon Sep 17 00:00:00 2001 From: Amir Levy Date: Wed, 6 Apr 2016 17:53:44 +0300 Subject: msm: ipa3: remove odu_bridge functions from ipa.h As part of IPA driver refactoring, a separation has been made between IPA core driver and the IPA clients. odu_bridge driver has moved to the ipa_clients folder and a dedicated header file has been created in order to provide a direct interface between IPA odu_bridge client driver and other drivers without a direct interaction with the IPA core driver. This change moves odu_bridge functions and structure from ipa.h to the ipa_odu_bridge.h header. CRs-fixed: 999935 Change-Id: I1b24c4e13daaae3e63c5cacefcbda12b8cfbeeb8 Signed-off-by: Amir Levy --- include/linux/ipa.h | 68 ------------------------------------------ include/linux/ipa_odu_bridge.h | 52 ++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 68 deletions(-) (limited to 'include') diff --git a/include/linux/ipa.h b/include/linux/ipa.h index 4e14dd8a36bf..3a87177b623f 100644 --- a/include/linux/ipa.h +++ b/include/linux/ipa.h @@ -1051,30 +1051,6 @@ struct ipa_wdi_buffer_info { int result; }; -/** - * struct odu_bridge_params - parameters for odu bridge initialization API - * - * @netdev_name: network interface name - * @priv: private data that will be supplied to client's callback - * @tx_dp_notify: callback for handling SKB. the following event are supported: - * IPA_WRITE_DONE: will be called after client called to odu_bridge_tx_dp() - * Client is expected to free the skb. - * IPA_RECEIVE: will be called for delivering skb to APPS. - * Client is expected to deliver the skb to network stack. - * @send_dl_skb: callback for sending skb on downlink direction to adapter. - * Client is expected to free the skb. - * @device_ethaddr: device Ethernet address in network order. - * @ipa_desc_size: IPA Sys Pipe Desc Size - */ -struct odu_bridge_params { - const char *netdev_name; - void *priv; - ipa_notify_cb tx_dp_notify; - int (*send_dl_skb)(void *priv, struct sk_buff *skb); - u8 device_ethaddr[ETH_ALEN]; - u32 ipa_desc_size; -}; - /** * enum ipa_mhi_event_type - event type for mhi callback * @@ -1437,20 +1413,6 @@ enum ipacm_client_enum ipa_get_client(int pipe_idx); bool ipa_get_client_uplink(int pipe_idx); -/* - * ODU bridge - */ - -int odu_bridge_init(struct odu_bridge_params *params); - -int odu_bridge_connect(void); - -int odu_bridge_disconnect(void); - -int odu_bridge_tx_dp(struct sk_buff *skb, struct ipa_tx_meta *metadata); - -int odu_bridge_cleanup(void); - /* * IPADMA */ @@ -2104,36 +2066,6 @@ static inline bool ipa_get_client_uplink(int pipe_idx) return -EPERM; } - -/* - * ODU bridge - */ -static inline int odu_bridge_init(struct odu_bridge_params *params) -{ - return -EPERM; -} - -static inline int odu_bridge_disconnect(void) -{ - return -EPERM; -} - -static inline int odu_bridge_connect(void) -{ - return -EPERM; -} - -static inline int odu_bridge_tx_dp(struct sk_buff *skb, - struct ipa_tx_meta *metadata) -{ - return -EPERM; -} - -static inline int odu_bridge_cleanup(void) -{ - return -EPERM; -} - /* * IPADMA */ diff --git a/include/linux/ipa_odu_bridge.h b/include/linux/ipa_odu_bridge.h index 04b809b70942..1d9ec737d0a1 100644 --- a/include/linux/ipa_odu_bridge.h +++ b/include/linux/ipa_odu_bridge.h @@ -13,6 +13,30 @@ #ifndef _IPA_ODO_BRIDGE_H_ #define _IPA_ODO_BRIDGE_H_ +/** + * struct odu_bridge_params - parameters for odu bridge initialization API + * + * @netdev_name: network interface name + * @priv: private data that will be supplied to client's callback + * @tx_dp_notify: callback for handling SKB. the following event are supported: + * IPA_WRITE_DONE: will be called after client called to odu_bridge_tx_dp() + * Client is expected to free the skb. + * IPA_RECEIVE: will be called for delivering skb to APPS. + * Client is expected to deliver the skb to network stack. + * @send_dl_skb: callback for sending skb on downlink direction to adapter. + * Client is expected to free the skb. + * @device_ethaddr: device Ethernet address in network order. + * @ipa_desc_size: IPA Sys Pipe Desc Size + */ +struct odu_bridge_params { + const char *netdev_name; + void *priv; + ipa_notify_cb tx_dp_notify; + int (*send_dl_skb)(void *priv, struct sk_buff *skb); + u8 device_ethaddr[ETH_ALEN]; + u32 ipa_desc_size; +}; + #if defined CONFIG_IPA || defined CONFIG_IPA3 int odu_bridge_init(struct odu_bridge_params *params); @@ -25,6 +49,34 @@ int odu_bridge_tx_dp(struct sk_buff *skb, struct ipa_tx_meta *metadata); int odu_bridge_cleanup(void); +#else + +static inline int odu_bridge_init(struct odu_bridge_params *params) +{ + return -EPERM; +} + +static inline int odu_bridge_disconnect(void) +{ + return -EPERM; +} + +static inline int odu_bridge_connect(void) +{ + return -EPERM; +} + +static inline int odu_bridge_tx_dp(struct sk_buff *skb, + struct ipa_tx_meta *metadata) +{ + return -EPERM; +} + +static inline int odu_bridge_cleanup(void) +{ + return -EPERM; +} + #endif /* CONFIG_IPA || defined CONFIG_IPA3 */ #endif /* _IPA_ODO_BRIDGE_H */ -- cgit v1.2.3 From 738453cfdf78ad952c47f4c79ca1d0c76a692e91 Mon Sep 17 00:00:00 2001 From: Amir Levy Date: Wed, 6 Apr 2016 17:54:44 +0300 Subject: msm: ipa3: include ipa.h from ipa_odu_bridge.h In order to allow ipa_odu_bridge clients to include only the dedicated header ipa_odu_bridge.h and also have the symbols of shared IPA structures and definitions, include ipa.h from ipa_odu_bridge.h. The clients of ipa_odu_bridge will use only APIs from ipa_odu_bridge.h. CRs-fixed: 999935 Change-Id: Ic6da089ebd7878f0d7ceebde7cd8e8549c30182e Signed-off-by: Amir Levy --- include/linux/ipa_odu_bridge.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/ipa_odu_bridge.h b/include/linux/ipa_odu_bridge.h index 1d9ec737d0a1..5d30a9784998 100644 --- a/include/linux/ipa_odu_bridge.h +++ b/include/linux/ipa_odu_bridge.h @@ -13,6 +13,8 @@ #ifndef _IPA_ODO_BRIDGE_H_ #define _IPA_ODO_BRIDGE_H_ +#include + /** * struct odu_bridge_params - parameters for odu bridge initialization API * -- cgit v1.2.3 From 0b9105a22471bb9a4f4b03560ed39e477573a745 Mon Sep 17 00:00:00 2001 From: Rajesh Bondugula Date: Mon, 28 Mar 2016 14:50:48 -0700 Subject: msm: camera: sensor: Update actuator specific I2C structures Update actuator specific I2C addr_type and data_type structures. Use the strucutres defined by sensor. CRs-Fixed: 982082 Change-Id: I77753fd25d5a4256a4a4cdd74518facd63becf25 Signed-off-by: Rajesh Bondugula --- include/media/msm_cam_sensor.h | 4 ++-- include/uapi/media/msm_cam_sensor.h | 4 ++-- include/uapi/media/msm_camsensor_sdk.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/media/msm_cam_sensor.h b/include/media/msm_cam_sensor.h index 66c0e8f43883..fb650ab2693f 100644 --- a/include/media/msm_cam_sensor.h +++ b/include/media/msm_cam_sensor.h @@ -135,8 +135,8 @@ struct msm_actuator_params_t32 { uint16_t init_setting_size; uint32_t i2c_addr; enum i2c_freq_mode_t i2c_freq_mode; - enum msm_actuator_addr_type i2c_addr_type; - enum msm_actuator_data_type i2c_data_type; + enum msm_camera_i2c_reg_addr_type i2c_addr_type; + enum msm_camera_i2c_data_type i2c_data_type; compat_uptr_t reg_tbl_params; compat_uptr_t init_settings; struct park_lens_data_t park_lens; diff --git a/include/uapi/media/msm_cam_sensor.h b/include/uapi/media/msm_cam_sensor.h index c534911d864a..d83e00876fd5 100644 --- a/include/uapi/media/msm_cam_sensor.h +++ b/include/uapi/media/msm_cam_sensor.h @@ -409,8 +409,8 @@ struct msm_actuator_params_t { uint16_t init_setting_size; uint32_t i2c_addr; enum i2c_freq_mode_t i2c_freq_mode; - enum msm_actuator_addr_type i2c_addr_type; - enum msm_actuator_data_type i2c_data_type; + enum msm_camera_i2c_reg_addr_type i2c_addr_type; + enum msm_camera_i2c_data_type i2c_data_type; struct msm_actuator_reg_params_t *reg_tbl_params; struct reg_settings_t *init_settings; struct park_lens_data_t park_lens; diff --git a/include/uapi/media/msm_camsensor_sdk.h b/include/uapi/media/msm_camsensor_sdk.h index eab853bf137f..3985e9750af7 100644 --- a/include/uapi/media/msm_camsensor_sdk.h +++ b/include/uapi/media/msm_camsensor_sdk.h @@ -367,9 +367,9 @@ struct region_params_t { struct reg_settings_t { unsigned short reg_addr; - enum msm_actuator_addr_type addr_type; + enum msm_camera_i2c_reg_addr_type addr_type; unsigned short reg_data; - enum msm_actuator_data_type data_type; + enum msm_camera_i2c_data_type data_type; enum msm_actuator_i2c_operation i2c_operation; unsigned int delay; }; -- cgit v1.2.3 From 9ce80b18e1e1baffbed19350d08dffb442a3b941 Mon Sep 17 00:00:00 2001 From: Sungjun Park Date: Thu, 10 Mar 2016 17:28:09 -0800 Subject: bluetooth: Add WCN3990 power control To support WCN3990 chipset, add control to configure regulators and clock. Change-Id: Ibf0e4a0ebd55adaadb6d26b335c3d0a9edbe8845 Signed-off-by: Sungjun Park --- include/linux/bluetooth-power.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/bluetooth-power.h b/include/linux/bluetooth-power.h index a411520a83b2..7211c48dbc7b 100644 --- a/include/linux/bluetooth-power.h +++ b/include/linux/bluetooth-power.h @@ -27,6 +27,8 @@ struct bt_power_vreg_data { /* voltage levels to be set */ unsigned int low_vol_level; unsigned int high_vol_level; + /* current level to be set */ + unsigned int load_uA; /* * is set voltage supported for this regulator? * false => set voltage is not supported -- cgit v1.2.3