diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2017-06-17 10:36:40 -0300 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2017-06-17 10:36:40 -0300 |
| commit | 683b9eda58bdc48ad6606f22ca318f1d2200934d (patch) | |
| tree | 7acde2eff67256e06cae0419b03af38c5503e5c1 /include/linux | |
| parent | a4418c438de6ad397fd17f006ca86257fb9ec5a6 (diff) | |
| parent | 30278abfe0977b1d2f065271ce1ea23c0e2d1b6e (diff) | |
Merge remote-tracking branch 'imx/imx_4.1.15_2.0.0_ga' into 4.1-2.0.x-imx
* imx/imx_4.1.15_2.0.0_ga: (157 commits)
MLK-14762 ARM: dts: imx6sll-evk: correct gpio pin for lcd power control
MLK-14285-3 usb: phy: mxs: optimize disconnect line condition
MLK-14285-2 usb: chipidea: set mode for usb phy driver
MLK-14285-1 usb: phy: add usb mode for usb_phy
MLK-14747 driver: cpufreq: Correct dc regulator voltage on imx6ull
MLK-14720 epdc: correct WFE setting when bypass legacy process
MLK-13801-02 ARM: dts: Correct the gpt timer clock source on imx6ul/ull/sll
MLK-13801-01 ARM: imx: add gpt_3m clock on imx6sll
MLK-14680 pxp/epdc: add LUT cancellation feature
MLK-14518-2 pxp: set data path for pxp after reset
MLK-14518-1 pxp: initialize pxp according to recommended flow
MLK-14516 epdc: bypass pxp legacy process when there's no transformation
MLK-14369 epdc: sync LUT status to PXP before enable collision detection
MLK-13198 pxp: imx7d: fix error histogram status report issue
MLK-13917 pxp: fix build error for pxp library in user space
MLK-13862-2 epdc/pxp: imx6ull/imx6sll: enhance the LUT cleanup flow to avoid stalling display
MLK-13862-1 epdc/pxp: imx7d: enhance the LUT cleanup flow to avoid stalling display
MLK-14697 ARM: dts: imx: update the setpoint data of imx6sll
MXSCM-266 arm: dts: increase lpddr2 voltage to 1.25V
MXSCM-265: dts: place imx6sxscm dtb files under CONFIG_SOC_IMX6SX
...
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/busfreq-imx.h | 5 | ||||
| -rw-r--r-- | include/linux/pxp_dma.h | 1 | ||||
| -rw-r--r-- | include/linux/regulator/consumer.h | 1 | ||||
| -rw-r--r-- | include/linux/usb/phy.h | 19 |
4 files changed, 25 insertions, 1 deletions
diff --git a/include/linux/busfreq-imx.h b/include/linux/busfreq-imx.h index d309f3db02ae..2a2459a15d5a 100644 --- a/include/linux/busfreq-imx.h +++ b/include/linux/busfreq-imx.h @@ -1,5 +1,5 @@ /* - * Copyright 2012-2015 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2012-2016 Freescale Semiconductor, Inc. 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 as @@ -10,6 +10,7 @@ #define __ASM_ARCH_MXC_BUSFREQ_H__ #include <linux/notifier.h> +#include <linux/regulator/consumer.h> /* * This enumerates busfreq low power mode entry and exit. @@ -42,6 +43,8 @@ enum bus_freq_mode { }; #ifdef CONFIG_CPU_FREQ +extern struct regulator *arm_reg; +extern struct regulator *soc_reg; void request_bus_freq(enum bus_freq_mode mode); void release_bus_freq(enum bus_freq_mode mode); int register_busfreq_notifier(struct notifier_block *nb); diff --git a/include/linux/pxp_dma.h b/include/linux/pxp_dma.h index 61e38a71d511..81f34e172fa9 100644 --- a/include/linux/pxp_dma.h +++ b/include/linux/pxp_dma.h @@ -35,6 +35,7 @@ struct pxp_tx_desc { struct pxp_proc_data proc_data; u32 hist_status; /* Histogram output status */ + u32 pixel_nums; /* total pixel numbers to be updated */ struct pxp_tx_desc *next; }; diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 86c6d3205dbd..6406d03826ff 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -121,6 +121,7 @@ struct regmap; #define REGULATOR_EVENT_ABORT_DISABLE 0x800 #define REGULATOR_EVENT_PRE_DO_ENABLE 0x1000 #define REGULATOR_EVENT_PRE_DO_DISABLE 0x2000 +#define REGULATOR_EVENT_AFT_DO_ENABLE 0x4000 /** * struct pre_voltage_change_data - Data sent with PRE_VOLTAGE_CHANGE event diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index 6700d2f6fdde..315b3096b2e8 100644 --- a/include/linux/usb/phy.h +++ b/include/linux/usb/phy.h @@ -60,6 +60,13 @@ enum usb_otg_state { OTG_STATE_A_VBUS_ERR, }; +/* The usb role of phy to be working with */ +enum usb_current_mode { + USB_MODE_NONE, + USB_MODE_HOST, + USB_MODE_DEVICE, +}; + struct usb_phy; struct usb_otg; @@ -127,6 +134,9 @@ struct usb_phy { int (*notify_resume)(struct usb_phy *x, enum usb_device_speed speed); + int (*set_mode)(struct usb_phy *x, + enum usb_current_mode mode); + }; /** @@ -201,6 +211,15 @@ usb_phy_vbus_off(struct usb_phy *x) return x->set_vbus(x, false); } +static inline int +usb_phy_set_mode(struct usb_phy *x, enum usb_current_mode mode) +{ + if (!x || !x->set_mode) + return 0; + + return x->set_mode(x, mode); +} + /* for usb host and peripheral controller drivers */ #if IS_ENABLED(CONFIG_USB_PHY) extern struct usb_phy *usb_get_phy(enum usb_phy_type type); |
