Octavian Purdila [Mon, 20 Feb 2017 09:27:15 +0000 (11:27 +0200)]
MLK-13869 mmc: card: fix infinite loop in mmc_blk_alloc_req
Initialize ret to avoid an infinite loop in mmc_blk_alloc_req which may
happen if the uninitialize ret value is -EAGAIN.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Irina Tirdea [Tue, 14 Feb 2017 08:37:56 +0000 (10:37 +0200)]
MLK-13869 Revert "ARM: imx: add sleep for pllv3 relock"
This reverts commit
322503a15740bd9383bb4ed452e5dd5a40598170.
The driver for clk-pllv3 has moved from arch/arm/mach-imx/clk-pllv3.c
to drivers/clk/imx/clk-pllv3.c since the orginal change was made,
so the revert is done to the new file instead.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Irina Tirdea [Thu, 9 Feb 2017 14:04:11 +0000 (16:04 +0200)]
MLK-13869 clk: imx7d: Fix usdhc and ahb init clock order
The nand_usdhc_root_clk and ahb_root_clk clocks need to be initialized
earlier so the board can boot, since there are other clocks that
depend on them.
This is a leftover from rebasing patch
a06eafc305c4c2db6dfc3de372f667af0135fa9e
(MLK-11349-3 ARM: imx: update clk driver for imx7d), that has the clocks
initialized in the correct order.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Anson Huang [Wed, 22 Feb 2017 14:25:44 +0000 (22:25 +0800)]
MLK-14239-3 dt-bindings: update i.MX8QXP pins head file
Update i.MX8QXP pins head file based on below:
"Ensure that SCFW API follows the Linux coding style and standards.
Also update SCFW API to the following commit:
(
d36d0418b4a5d294c4ebbeb20d38b7dfdcc37d20)"
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Anson Huang [Wed, 22 Feb 2017 14:24:45 +0000 (22:24 +0800)]
MLK-14239-2 pinctrl: imx8qm: update i.MX8QM pins head file
Update i.MX8QM pins head file based on below:
"Ensure that SCFW API follows the Linux coding style and standards.
Also update SCFW API to the following commit:
(
d36d0418b4a5d294c4ebbeb20d38b7dfdcc37d20)"
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Anson Huang [Wed, 22 Feb 2017 14:08:49 +0000 (22:08 +0800)]
MLK-14239-1 dt-bindings: update i.MX8 resource head file
Update i.MX8 resource head file based on below:
"Ensure that SCFW API follows the Linux coding style and standards.
Also update SCFW API to the following commit:
(
d36d0418b4a5d294c4ebbeb20d38b7dfdcc37d20)"
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Peng Fan [Tue, 21 Feb 2017 02:51:23 +0000 (10:51 +0800)]
MLK-14012 pinctrl: imx: fix imx_pinctrl_parse_pin
list is a local variable, each time imx_pinctrl_parse_pin is
invoked, list points to the first pin. Directly use list_p in
imx_pinctrl_parse_pin to fix it.
When splitting pinctrl-imx.c, two pieces code is correctly moved.
- In imx_pmx_set_one_pin, when mux_reg is -1, need to return 0 to
let the caller continue the loop.
- In imx_pinctrl_parse_pin, need to use (mux_reg != -1) when calculating
the pin_id.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Mihai Serban [Wed, 15 Feb 2017 16:29:53 +0000 (18:29 +0200)]
MLK-13799: ASoC: fsl: Add ASoC generic hdmi audio codec support
Use the new ASoC hdmi-codec infrastructure.
Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Anson Huang [Wed, 18 Jan 2017 20:10:23 +0000 (04:10 +0800)]
MLK-13911-13 ARM64: defconfig: add i.mx8 soc support
Add i.MX8QM/QXP/MQ support by default.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Anson Huang [Wed, 18 Jan 2017 20:09:15 +0000 (04:09 +0800)]
MLK-13911-12 tty: serial: fsl: add earlycon support
Add FSL LPUART earlycon support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Anson Huang [Wed, 18 Jan 2017 20:07:25 +0000 (04:07 +0800)]
MLK-13911-11 clk: imx: imx8qxp: add clk driver
Add i.MX8QXP clock driver support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Anson Huang [Tue, 14 Feb 2017 15:16:18 +0000 (23:16 +0800)]
MLK-13911-10 clk: imx: imx8qm: add clk driver
Add i.MX8QM clock driver support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Anson Huang [Sun, 19 Feb 2017 12:13:26 +0000 (20:13 +0800)]
MLK-13911-9 pinctrl: freescale: imx8qxp: add pinctrl
Add i.MX8QXP pinctrl driver support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Sun, 19 Feb 2017 12:12:49 +0000 (20:12 +0800)]
MLK-13911-8 pinctrl: freescale: imx8qm: add pinctrl
Add i.MX8QM pinctrl driver support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Peng Fan [Sat, 18 Feb 2017 12:08:43 +0000 (20:08 +0800)]
MLK-13911-7 drivers: pinctrl: support i.MX8 SCU
On i.MX8QM/QXP, pin is handled by SCU, A53/72 can not directly
handle pinmux as i.MX6/7.
Split the original pinctrl-imx.c to two parts, the pinctrl-memmap.c
will handle the memory mapped access for i.MX6/7. pinctrl-imx.c
will be shared by legacy i.mx and i.MX8.
Introduce pinctrl-scu.c to handle the connection with SCU to configure
pin settings.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Wed, 18 Jan 2017 20:01:30 +0000 (04:01 +0800)]
MLK-13911-6 soc: imx8: add soc and power domain
Add i.MX8 SOC and power domain support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Anson Huang [Wed, 18 Jan 2017 19:59:00 +0000 (03:59 +0800)]
MLK-13911-5 soc: scfw: imx8: add SCFW
Add i.MX8 SCFW API support.
Based on below commit:
(
fcd0efb5f2550712bd7d27f1279e51f7f687f71d)
Fix MX8 MU driver to follow Linux coding conventions.
Remove unused functions.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Anson Huang [Wed, 18 Jan 2017 19:54:52 +0000 (03:54 +0800)]
MLK-13911-4 ARM64: dts: imx8qxp: add dtsi
Add i.MX8QXP dtsi support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Anson Huang [Wed, 18 Jan 2017 19:53:31 +0000 (03:53 +0800)]
MLK-13911-3 ARM64: dts: imx8qm: add dtsi
Add i.MX8QM dtsi support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Anson Huang [Fri, 5 Aug 2016 01:21:38 +0000 (09:21 +0800)]
MLK-13911-2 ARM64: dts: imx8: add arm core common dtsi
Add i.MX8 arm core common dtsi.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Anson Huang [Fri, 5 Aug 2016 01:08:08 +0000 (09:08 +0800)]
MLK-13911-1 dt-bindings: add definitions for i.MX8 resources and power domains
Add head files for i.MX8 resource ID and power domains.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Octavian Purdila [Tue, 14 Feb 2017 12:56:27 +0000 (14:56 +0200)]
MLK-13927 ARM: imx: remove time.c
arch/arm/mach-imx/time.c has been moved to a new location upstream but
during the rebase process from 4.1 to 4.9 it was reintroduced in
error.
This patch removes the old file and updates the new file with changes
from commit
67000df ("MLK-13303-7 ARM: imx: add gpt timer support for
i.mx6sll").
Note that commit
4c4769ba1cb5c0f1 ("MLK-12627-01 ARM: imx: add
i.mx6ull msl support") does not introduce changes to the new
implementation since imx6ull DTSs use "fsl,imx6ul-gpt" for compatible
properties.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Sandor Yu [Thu, 22 Dec 2016 10:13:42 +0000 (18:13 +0800)]
MLK-13631-02: ARM: dts: Change i.MX6SL CSI module compatible string
Change i.MX6SL CSI module compatible string from "fsl,imx6s-csi"
to "fsl,imx6sl-csi".
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor Yu [Thu, 22 Dec 2016 10:02:55 +0000 (18:02 +0800)]
MLK-13631-01: media: camera: add FIFO reset flag for i.MX6S CSI driver
Except i.MX6SL, all other i.MX6S serial SOC CSI module will been reset
to recovery from RX FIFO overflow error.
So add xx_fifo_rst flag in driver to distinguish i.MX6SL and other
i.MX6S SOC.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Octavian Purdila [Mon, 13 Feb 2017 13:17:26 +0000 (15:17 +0200)]
MLK-13922: ARM: dts: imx6qp-sabreauto: add lvd-channel info to ldb
Also, enable the mxcfb* entries.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Irina Tirdea [Sun, 12 Feb 2017 19:07:31 +0000 (21:07 +0200)]
MLK-13793-6 regulator: anatop: fix min dropout for bypass mode
In bypass mode, the anatop digital regulators do not have any minimum
dropout value (the input voltage is equal to the output voltage according
to documentation).
Having a min dropout value of 125mV will lead to an increased voltage
for PMIC supplies.
Only set minimum dropout value for ldo enabled mode.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Robin Gong [Thu, 9 Feb 2017 03:00:55 +0000 (11:00 +0800)]
MLK-13849 dma: imx-sdma: fix kernel crashs when play Audio by HDMI
In cyclic/loop mode, DMA call shouldn't touch dma cookie, since only one
time need to be submitted, otherwise, below kernel bug will be triggered:
Playing WAVE '/unit_tests/audio8k16S.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
------------[ cut here ]------------
Kernel BUG at
8043d030 [verbose debug info unavailable]
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
Modules linked in: ov5642_camera mxc_v4l2_capture ipu_bg_overlay_sdc ipu_still ipu_prp_enc ipu_csi_enc ipu_fg_overlay_sdc ov5640_camera_mipi_int ov5640_camera_int v4l2_int_device mxc_dcic
CPU: 0 PID: 0 Comm: swapper/0 Not tainted
4.9.5-01681-g6dbd27b #7
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
task:
80f06600 task.stack:
80f00000
PC is at mxc_sdma_handle_channel_normal+0xc0/0xd8
LR is at tasklet_action+0x94/0x14c
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Octavian Purdila [Wed, 8 Feb 2017 16:54:24 +0000 (18:54 +0200)]
MLK-13897: ARM: dts: imx6ul-14x14-evk: revert to fsl,imx-audio-wm8960
Upstream commit
bf3251e ("ARM: dts: imx6ul-14x14-evk: Add audio
support") switched to using the simple sound card driver.
This does not seem to work anymore on vanilla 4.9.5 (aplay gets stuck
with no sound output). Adding the rest of our out internal patches
from 4.1 causes even greater issues, the card does not even enumerate.
While we eventually want to switch to using simple sound card, lets
revert to using the fsl,imx-audio-wm8960 driver for the time being,
while investigating what it takes to switch to the simple sound card
driver.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Wed, 8 Feb 2017 15:22:17 +0000 (17:22 +0200)]
MLK-13888-5: ARM: dts: imx6ull: update "dma" clock name to "spba"
Upstream is using "spba" clock name in the various sound drivers as
opposed to our internal tree where we have used "dma". Update all of
the dtsi files to use the new name.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Wed, 8 Feb 2017 15:21:59 +0000 (17:21 +0200)]
MLK-13888-4: ARM: dts: imx6sx: update "dma" clock name to "spba"
Upstream is using "spba" clock name in the various sound drivers as
opposed to our internal tree where we have used "dma". Update all of
the dtsi files to use the new name.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Wed, 8 Feb 2017 15:21:34 +0000 (17:21 +0200)]
MLK-13888-3: ARM: dts: imx6sll: update "dma" clock name to "spba"
Upstream is using "spba" clock name in the various sound drivers as
opposed to our internal tree where we have used "dma". Update all of
the dtsi files to use the new name.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Wed, 8 Feb 2017 15:10:00 +0000 (17:10 +0200)]
MLK-13888-2: ARM: dts: imx6qdl: update "dma" clock name to "spba"
Upstream is using "spba" clock name in the various sound drivers as
opposed to our internal tree where we have used "dma". Update all of
the dtsi files to use the new name.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Tue, 7 Feb 2017 16:30:20 +0000 (18:30 +0200)]
MLK-13888-1: ARM: dts: imx6ul: update "dma" clock name to "spba"
Upstream is using "spba" clock name in the various sound drivers as
opposed to our internal tree where we have used "dma". Update all of
the dtsi files to use the new name.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Wed, 8 Feb 2017 10:34:12 +0000 (12:34 +0200)]
MLK-13890 ARM: dts: imx6ul-14x14-evk: remove a few pins from hoggrp-1
They belong in the usdhc1 group, where they were already present and
which causes the usdhc1 device to fail probe:
[ 1.484978] imx6ul-pinctrl
20e0000.iomuxc: pin MX6UL_PAD_UART1_RTS_B already requested by
20e0000.iomuxc; cannot claim for
2190000.usdhc
[ 1.496166] imx6ul-pinctrl
20e0000.iomuxc: pin-36 (
2190000.usdhc) status -22
[ 1.501959] imx6ul-pinctrl
20e0000.iomuxc: could not request pin 36 (MX6UL_PAD_UART1_RTS_B) from group usdhc1grp on device
20e0000.iomuxc
[ 1.513186] sdhci-esdhc-imx
2190000.usdhc: Error applying setting, reverse things back
Note that out internal commit
cf65c8d ("MLK-11300-02 ARM: dts: imx:
add imx6ul board dts support") is similar with the upstream commit
a5fcccb ("ARM: dts: imx: add imx6ul and imx6ul evk board support") but
since it has more nodes defined we had to integrate parts of it
nonetheless.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Wed, 8 Feb 2017 13:24:56 +0000 (15:24 +0200)]
MLK-13892-2: ARM: dts: imx7d: update caam clock names
Upstream commit
24821c4 ("crypto: caam - Enable and disable clocks on
Freescale i.MX platforms") added the imx caam clock support with
different names then what we used internally. Update the dts names to
sync with upstream.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Tue, 7 Feb 2017 16:15:52 +0000 (18:15 +0200)]
MLK-13892-1: ARM: dts: imx6ul: update caam clock names
Upstream commit
24821c4 ("crypto: caam - Enable and disable clocks on
Freescale i.MX platforms") added the imx caam clock support with
different names then what we used internally. Update the dts names to
sync with upstream.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Tue, 7 Feb 2017 15:53:20 +0000 (17:53 +0200)]
MLK-13863: ARM: imx: reserve ocram space for low power mode
This patches adds two new device nodes and carves out space used by
the low power mode code.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Fri, 3 Feb 2017 14:42:04 +0000 (16:42 +0200)]
MLK-13860: ARM: dts: imx6qp-sabresd: add lvd-channel info to ldb
Also, enable the mxcfb* entries.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Irina Tirdea [Mon, 6 Feb 2017 09:40:35 +0000 (11:40 +0200)]
MLK-13856 ARM: imx: gpc: Do not print error message for EPROBE_DEFER
The pu regulator request will return -EPROBE_DEFER if it has a supply
from PMIC and this supply is not yet registered. This does not represent
an error since the driver will call probe again later, so only print a
warning message in this case.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Octavian Purdila [Fri, 3 Feb 2017 13:41:08 +0000 (15:41 +0200)]
MLK-13859: video: mxc: mipi dsi: don't print errors on EPROBE_DEFER
The device may fail to reset with EPROBE_DEFER because of the
initialization order between the mipi and the mipi gpio reset
drivers. This is not an error, since the probe will be later retried
and eventually will succeed.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Irina Tirdea [Tue, 31 Jan 2017 15:09:09 +0000 (17:09 +0200)]
MLK-13793-5 ARM: dts: imx6qdl-sabresd: Remove duplicate supply sources for cpu0
Regulator supplies for cpu0 are already defined in imx6q.dtsi/imx6dl.dtsi
as reg_arm, reg_pu, reg_soc. The same supplies are also defined in
imx6qdl-sabresd.dtsi (by connecting the CPU directly to PMIC and skipping
the SoC LDOs).
Keep the correct supplies from imx6q.dtsi/imx6dl.dtsi and remove the duplicate
ones.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Irina Tirdea [Fri, 27 Jan 2017 15:16:39 +0000 (17:16 +0200)]
MLK-13793-4 ARM: dts: imx6qdl-sabresd: Add supplies for the SoC internal regulators
The following errors are shown at boot:
vddarm: bypassed regulator has no supply!
vddarm: failed to get the current voltage(-517)
anatop_regulator
20c8000.anatop:regulator-vddcore: failed to register vddarm
vddsoc: bypassed regulator has no supply!
vddsoc: failed to get the current voltage(-517)
anatop_regulator
20c8000.anatop:regulator-vddsoc: failed to register vddsoc
vddpu: bypassed regulator has no supply!
The SoC internal regulators come from the Freescale PFUZE100 PMIC:
- SW1AB is connected through VDDARM_IN to LDO_ARM (vddarm)
- SW1C is connected through VDDSOC_IN to LDO_PU (vddpu) and LDO_SOC (vddsoc)
Add this relationship to the device tree so these regulators have a supply
specified and can be registered properly.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Irina Tirdea [Thu, 2 Feb 2017 11:08:30 +0000 (13:08 +0200)]
MLK-13793-3 regulator: anatop: Fix enable for vddpu with LDO bypass
Enabling the vddpu regulator at boot has no efect, since the enable call in
anatop will set it to power gated off. This leads to a hang in the VPU driver
if cpufreq does not get initialized before.
The anatop on i.MX6 requires that vddpu uses the same voltage level as vddsoc.
When it is initialized, vddsoc will have a default selector of 0
(Power gated off), but will use LDO_FET_FULL_ON since it is in bypass mode.
However, the local value saved for the vddsoc selector will remain 0.
When vddpu is enabled, it will use the local selector 0 from vddsoc and
will remain disabled.
Take into consideration the bypass mode when using the vddsoc selector for
vddpu.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Irina Tirdea [Thu, 2 Feb 2017 13:35:48 +0000 (15:35 +0200)]
MLK-13793-2 regulator: anatop: Do not print error message for EPROBE_DEFER
An anatop regulator will return -EPROBE_DEFER when trying to register,
if it has a supply from PMIC and this supply is not yet registered.
This does not represent an error since the driver will call probe again later,
so skip the error message in this case.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Irina Tirdea [Thu, 2 Feb 2017 13:24:59 +0000 (15:24 +0200)]
MLK-13793-1 cpufreq: imx6q: Return regulator error in probe
If there are any errors in getting the cpu0 regulators, the driver returns
-ENOENT. In case the regulators are not yet available, the devm_regulator_get
calls will return -EPROBE_DEFER, so that the driver can be probed later.
If we return -ENOENT, the driver will fail its initialization and will
not try to probe again (when the regulators become available).
Return the actual error received from regulator_get in probe. Print a
differentiated message in case we need to probe the device later and
in case we actually failed. Also add a message to inform when the
driver has been successfully registered.
Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
Song Bing [Wed, 30 Nov 2016 07:41:16 +0000 (15:41 +0800)]
MLK-13561 ion: Enable mxc ion driver
Enable mxc ion driver. ion driver can allocate physical continuous
memory and can convert to physical address from DMA FD and virtual
address if the memory is physical continuous.
Signed-off-by: Song Bing bing.song@nxp.com
Nandor Han [Tue, 11 Oct 2016 11:13:41 +0000 (14:13 +0300)]
MLK-13794: BACKPORT: dmaengine: imx-sdma - correct the dma transfer residue calculation
This patch fixes crackling sound reported when running autorun-asrc.sh
and it is a backport of
85f57752b3 ("dmaengine: imx-sdma - correct
the dma transfer residue calculation") from v10-rc6.
Original commit message:
From: Nandor Han <nandor.han@ge.com>
Date: Tue, 11 Oct 2016 14:13:41 +0300
Subject: [PATCH] dmaengine: imx-sdma - correct the dma transfer residue
calculation
The residue calculation was taking in consideration that dma
transaction status will be always retrieved in the dma callback
used to inform that dma transfer is complete. However this is not
the case for all subsystems that use dma. Some subsystems use a
timer to check the dma status periodically.
Therefore the calculation was updated and residue is calculated
accordingly by a) update the residue calculation taking in
consideration the last used buffer index by using *buf_ptail* variable
and b) chn_real_count (number of bytes transferred) is initialized to
zero, when dma channel is created, to avoid using an uninitialized
value in residue calculation when dma status is checked without
waiting dma complete event.
Signed-off-by: Nandor Han <nandor.han@ge.com>
Acked-by: Peter Senna Tschudin <peter.senna@collabora.com>
Tested-by: Peter Senna Tschudin <peter.senna@collabora.com>
Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Leonard Crestez [Mon, 30 Jan 2017 14:52:53 +0000 (16:52 +0200)]
MLK-13843: Ensure PLL1 is bypassed before ARM-PODF is set
This is a missing piece of
99a978fbde34227a2ab2a3595446b757b5d7c3ab from
linux-imx/imx_4.1.y.
This fixes a hang on imx6sl when attempting to decrease cpufreq
during late boot. This was found through tracing and comparing code with
the imx_4.1.y branch
Leonard Crestez [Thu, 26 Jan 2017 15:00:33 +0000 (17:00 +0200)]
MLK-13833 imx6sll.dtsi: Correct snvs-pwrkey 'wakeup' to 'wakeup-source'
Should probably squash into commit
4349481 ("MLK-13303-2 ARM: dts:
imx6sll: add dtsi file")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Leonard Crestez [Thu, 26 Jan 2017 15:00:32 +0000 (17:00 +0200)]
MLK-13833 imx6ull.dtsi: Correct snvs_pwrkey 'wakeup' to 'wakeup-source'
Should probably squash into commit
d1f2e882c28 ("MLK-12627-03 ARM:
dts: imx: Add dtsi file for imx6ull").
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Leonard Crestez [Thu, 26 Jan 2017 11:39:02 +0000 (13:39 +0200)]
MLK-13798 tty: serial: imx: Only poke at suspend wakeup bits in noirq phase
This prevents unwanted interrupts coming in early suspend.
Loosely based on
81e8e7d91d81351d9fea4ad7c289b122706640fd from imx_4.1.y:
MLK-11382 tty: serial: imx: disable irq after suspend
Disable rx irq after suspend to avoid interrupt coming in early
resume.
Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Leonard Crestez [Fri, 20 Jan 2017 15:36:45 +0000 (17:36 +0200)]
MLK-13797 v4l2-ioctl: Do not warn on device-specific pixelformat
Since commit
ba3002045f8022f3a7e88511c4ebd9876a467ac8 the v4l2 core now
sets the v4l2_fmtdesc->description string based on numeric pixelformat
so that drivers no longer have to contain description strings.
This happens even if the driver already filled the description and
prints an ugly warning if the pixelformat is unknown. Reduce this to
pr_debug if the driver provided a description string.
Fixes https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsw-jira.freescale.net%2Fbrowse%2FMLK-13797&data=01%7C01%7Coctavian.purdila%40nxp.com%
7C739251a045b045cfee0f08d4414a2972%
7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=cUsGBObv2wvVfE59KgLujwhlBeRdpR501GplYrYqVrk%3D&reserved=0
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Octavian Purdila [Mon, 23 Jan 2017 15:02:41 +0000 (17:02 +0200)]
Octavian Purdila [Mon, 23 Jan 2017 13:18:03 +0000 (15:18 +0200)]
MLK-13789 request "gpu2d" and "gpuvg" resets as shared
These resets are shared at least on im6q, so request them as shared to
avoid devm_reset_control_get() failures since upstream has modified it
to assume exclusive usage.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Leonard Crestez [Fri, 20 Jan 2017 12:40:57 +0000 (14:40 +0200)]
MLK-13803 dts fixes for ldb-di{0,1}-parent not included
Signed-off-by: Leonard Crestez <dan-leonard.crestez@nxp.com>
Octavian Purdila [Fri, 20 Jan 2017 11:40:50 +0000 (13:40 +0200)]
MLK-13787 Revert "ARM: dts: imx6qdl-sabresd: Pass the hannstar panel compatible string"
This reverts commit
e0884948a48013bb2097f3e61c4f2122b22f6eb1.
The internal fbdev driver does not use the DRM infrastructure hence we
can't use the DRM simple panel driver, we have to stich with display
timings from device tree.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Robin Gong [Thu, 5 Jan 2017 06:20:55 +0000 (14:20 +0800)]
MLK-13720-5: ARM: dts: imx7ulp-evk: support multi rpmsg instances
Add 'vdev-nums' to imply how many rpmsg instances used in kernel. If
it beyond the 5, please enlarge the 'MAX_VDEV_NUMS' in imx_rpmsg.c
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
0cbc0fdc4cce2c292aded56619d1001f7c936a6f)
Robin Gong [Fri, 6 Jan 2017 02:01:19 +0000 (10:01 +0800)]
MLK-13720-6 ARM: imx: mu: remove clk_prepare_enable in resume
We didn't need to touch MU clock on i.mx7ULP, since it has already
been enabled by M4 side, remove the useless code in resume flow
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
117f17a00b2508c783c13dea090a2896689b5601)
Robin Gong [Thu, 5 Jan 2017 06:15:17 +0000 (14:15 +0800)]
MLK-13720-4: regulator: pf1550-regulator-rpmsg: fix "rpmsg_send timeout"
Sometimes rpmsg callback triggered quickly before reinit_completion, then
cause "rpmsg_send timeout!". Move reinit_completion to the place before
rpmsg_send to make sure the completion is ready before callback triggered.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
8e44277d3f27e5f46232bd705ee9ef594db42575)
Robin Gong [Thu, 5 Jan 2017 06:09:19 +0000 (14:09 +0800)]
MLK-13720-3: regulator: pf1550-regulator-rpmsg: use the specific pf1550 rpmsg channel name
Since multi rpmsg instances supported now, we can use the specific rpmsg
channel name "rpmsg-regulator-channel" instead of "rpmsg-openamp-demo-channel"
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
8a9d73fe43da2833951b428f389aac01aef7cb2a)
Robin Gong [Thu, 5 Jan 2017 05:57:03 +0000 (13:57 +0800)]
MLK-13720-2: ARM: imx: mu: fix mu message overwrite issue
In multi rpmsg instances usecase, mu message maybe overwrite by the
next another rpmsg instance's mu message before this mu message handled.
Add circle buf to save all incoming mu messages to make sure no mu message
overwritten by the next mu interrupt.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
0124df33dc4f7ccfd9692ba66df0f691f03dbac2)
Robin Gong [Thu, 5 Jan 2017 05:44:16 +0000 (13:44 +0800)]
MLK-13720-1: ARM: imx: imx_rpmsg: extend rpmsg to support multi instances
Extend rpmsg driver to support multi virtio_devices, because there are more
rpmsg channels on i.mx7ulp, such as pingpong and pf1550.. Every channel
callback only handle the right mu message and ignore if it's not so that
the right channel callback handle it.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
85719b35f4ca66dc6fed18ccfca2545b191a4af1)
Haibo Chen [Fri, 6 Jan 2017 09:34:06 +0000 (17:34 +0800)]
MLK-13707 ARM: dts: move cd/vsel/rst/wp pin out of pinctrl_hog_1
For 7ULP, when system suspend, it will in VLLS mode, all pad config
will lost when system resume. For vsel pin, if lost, I/O voltage can't
change from 3.3v to 1.8v, for cd/wp pin, card detect and write protect
function will also not work. So for usdhc cd/wp/rst/vsel pad, need
to set again after system resume, so move this pin out of pinctrl_hog_1.
Besides, cd/wp pin need to be config as GPIO input mode, and rst pin
need to be config to GPIO output mode. This patch also clear the OBE
for cd/wp pin, and clear the IBE for rst pin, otherwise system can't
detect SD3.0 card due to the wrong pad setting.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit
314597864b1d8cad54bae7d4c6289830156eb088)
Anson Huang [Mon, 9 Jan 2017 10:14:29 +0000 (18:14 +0800)]
MLK-13702 rtc: snvs: make sure set time is working for i.mx7ulp
On i.MX7ULP, only waiting for enable bit of SNVS RTC clear is
NOT enough for RTC time program, need to add at least 12us delay,
here adds 38us margins to make sure RTC time can be changed, and
this is NOT harmful for other i.MX.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Yuchou Gan [Fri, 6 Jan 2017 18:08:39 +0000 (02:08 +0800)]
MGS-2513 [#imx-320] [imx7ulp] RTC suspend/resume stress test met resume failed.
When on condition that suspend/resume repeatly called and no other gpu command, the command buffer will filled with command comes from gckCOMMAND_Start and not gckCOMMAND_Stall to the hardware, thus lead to command buffer full and waiting for a hardware signal. Because these commands not submit to the hardware to execute, hardware won't emit such signal, make the gpu hang.
Date: Jan 6, 2017
Signed-off-by: Yuchou Gan <yuchou.gan@nxp.com>
(cherry picked from commit
a6553be76f8368442bd976f39a6bc28352c57f99)
Xianzhong [Fri, 30 Dec 2016 09:55:22 +0000 (17:55 +0800)]
MGS-2133-3 [#imx-199] refine flat mapping setting for i.MX8
allow to set the flat mapping in uboot configuration first.
Date: Dec 30, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit
32c43d676dba1a3b6cdb22b2532547e8888f83b9)
Xianzhong [Thu, 29 Dec 2016 08:00:47 +0000 (16:00 +0800)]
MGS-2133-2 [#imx-199] refine gpu power management for i.MX8
Remove IMX8_DISABLE_PM since 8QM/8QXP share the same config.
Date: Dec 29, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit
d4bd1805a8e26a76adc0297817d7123e820a5ece)
Xianzhong [Fri, 30 Dec 2016 06:48:49 +0000 (14:48 +0800)]
MGS-2133-1 [#imx-199] remove clk_set_rate for i.MX8 gpu
use dtb clock to set different rate for 8QM/8QXP accordingly,
need remove clk_set_rate in gpu kernel to avoid overwriting.
Date: Dec 30, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit
db19ad8fb86e9eb4311d429fb1448911ecc8cbe9)
ye li [Thu, 22 Dec 2016 10:46:18 +0000 (18:46 +0800)]
MLK-13639 mfgtool: Enable PF1550 regulators support in mfg config
Need to enable PF1550 regulators, otherwise the SD devices/eMMC can't
work.
Signed-off-by: ye li <ye.li@nxp.com>
Robin Gong [Wed, 21 Dec 2016 11:30:06 +0000 (19:30 +0800)]
MLK-13636-2 regulator: pf1550-regulator-rmpsg: enable pm_qos to prevent low power idle
CLKE bit of MU_CR may bring VLS state mess in M4 side, so use pm_qos instead
to prevent i.mx7ulp A7 core enter STOP mode during pf1550 send command by rpmsg
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Wed, 21 Dec 2016 09:55:03 +0000 (17:55 +0800)]
MLK-13636-1 ARM: imx: mu: resume back MU when enter VLS mode
On i.mx7ulp the whole chip may enter VLS mode which MU power off and
clock gate, so we need resume back for this case.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
1df68be084a7e5229b1676d5ce606fc8a11d8cc3)
Xianzhong [Wed, 21 Dec 2016 06:04:34 +0000 (14:04 +0800)]
MGS-2485 [#imx-309] fix gpu baseAddress for 7ulp
7ulp gc7000NU support new MMU and need set baseAddress as 0 always.
however gckHARDWARE_GetBaseAddress function has wrong programming
and return the invalid baseAddress.
the corrective code use gcvFEATURE_MMU to replace gcvFEATURE_MC20.
Date: Dec 21, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit
41625eed49349053f0faae7fd7ad521df8311bed)
Meng Mingming [Wed, 21 Dec 2016 09:01:21 +0000 (17:01 +0800)]
MGS-2487 gpu: Set gpu physical base address and size into dts for 7ulp
Set gpu physical base address and size into dts for 7ulp.
Date: Dec 21, 2016
Signed-off-by: Meng Mingming <mingming.meng@nxp.com>
(cherry picked from commit
b5ae6ee5c84b8eb197af34d78f572be667ed0574)
Xianzhong [Wed, 21 Dec 2016 08:10:58 +0000 (16:10 +0800)]
MGS-2486 [#imx-311] set physBase and physSize with device node
phys_baseaddr in device node can be used to set physBase and physSize,
still keep the old configuration when phys_baseaddr is not valid.
Date: Dec 21, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit
7b3cfa451f64409264c84c61561901279c503244)
Fancy Fang [Wed, 14 Dec 2016 08:21:51 +0000 (16:21 +0800)]
MLK-13607-8 video: mipi-panel: hx8363: change DE polarity to active high
The NorthWest Logic MIPI DSI only support active low data enable
signal on imx7ulp-evk board.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
33781fd4cf41e2b0f7dfc60b5527755a57aa6aa3)
Fancy Fang [Tue, 29 Nov 2016 07:57:08 +0000 (15:57 +0800)]
MLK-13607-7 video: mipi_dsi_northwest: add build support for this mipi dsi controller
Add kernel build support the NorthWest Logic MIPI DSI module
on the imx7ulp-evk board.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
4f6d2b2e57c357b015b1f88f77b8af6da74d0df6)
Fancy Fang [Tue, 6 Dec 2016 01:19:09 +0000 (09:19 +0800)]
MLK-13607-6 video: mipi_dsi_northwest: add dsi controller driver code
The MIPI DSI controller on imx7ulp board comes from NorthWest Logic
which is a completely new DSI module. And this is the driver code
for the new IP.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
99ea590f9898b876215baf70c2f0a7112fc15ad3)
Fancy Fang [Mon, 5 Dec 2016 10:03:32 +0000 (18:03 +0800)]
MLK-13607-5 ARM: dts: imx7ulp-evk: add mipi dsi support
Add dts support for mipi dsi module on imx7ulp-evk board.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
51584bcf07c6e97631bd22ed7eeb8bd14cbfc61a)
Fancy Fang [Thu, 8 Dec 2016 05:40:48 +0000 (13:40 +0800)]
MLK-13607-4 video: mxsfb: change enable/disable controller logic.
Change the enable/disable controller logic to support mipi dsi
display on imx7ulp-evk board.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
657d3a052581d517bb6c9cd978b04c4a3194c350)
Fancy Fang [Thu, 8 Dec 2016 08:15:45 +0000 (16:15 +0800)]
MLK-13607-3 video: mxsfb: add pm_qos to interact with cpuidle
In imx7ulp board, it doesn't support busfreq but pm_qos to
interact with cpuidle.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
d33f95300aae724fc0f0bbff5444f24022f7a38c)
Fancy Fang [Mon, 5 Dec 2016 09:46:17 +0000 (17:46 +0800)]
MLK-13607-2 video: mxsfb: add new compatible entry for lcdif on imx7ulp
Add the compatible entry specific for imx7ulp platform in lcdif
driver.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
f0e73404a8177c9627d04300fc421684d22fa582)
Fancy Fang [Mon, 5 Dec 2016 09:38:23 +0000 (17:38 +0800)]
MLK-13607-1 ARM: dts: imx7ulp-evk: add gpio backlight support.
The mipi dsi panel on imx7ulp-evk board will use gpio to control
lcd backlight.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
763dbfe8a24dd11827f5024327b400f73917d118)
Jason Liu [Wed, 23 Nov 2016 07:42:54 +0000 (15:42 +0800)]
of: of_reserved_mem: Ensure cma reserved region not cross the low/high memory
Need ensure the cma reserved region not cross the low/high memory boundary
when using the dynamic allocation methond through device-tree, otherwise,
kernel will fail to boot up when cma reserved region cross how/high mem.
Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Cc: Laura Abbott <labbott@redhat.com>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: stable@vger.kernel.org
Yuchou Gan [Tue, 20 Dec 2016 18:09:19 +0000 (02:09 +0800)]
MGS-2483 Increase the gpu 2d and 3d frequency to 475M Hz on 7ULP
Increase the gpu 2d and 3d frequency to 475M Hz on 7ULP
Signed-off-by: Yuchou Gan <yuchou.gan@nxp.com>
Date: Dec 20, 2016
Shengjiu Wang [Tue, 20 Dec 2016 09:25:24 +0000 (17:25 +0800)]
MLK-13621: ASoC: codec: wm8960: fix reset failed in probe
There is occasion that wm8960 reset failed in the beginning,
Especially after board reboot. The issue is found in the
imx7d-sdb board Rev.C. After retry, the reset operation is
successful.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Bai Ping [Mon, 19 Dec 2016 10:11:07 +0000 (18:11 +0800)]
MLK-13632 driver: watchdog: Fix system reset when sending wdog unlock sequence
For i.MX7ULP wdog, when we want to unlock the wdog with 16bit unlock command,
the two unlock command sequence must be write to WDOG_CNT register within 16 bus
clocks, otherwise, system may be reset unexpected. As writel include memory barrier,
if we use writel to send the unlock command, it may take more time than 16 bus clock,
so we should use writel_relaxed to write the unlock command to the CNT register.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Tue, 13 Dec 2016 08:57:58 +0000 (16:57 +0800)]
MLK-13601-02 ARM: imx: Add fuse check support for imx6ull
On i.MX6ULL, some part can run at 1GHz or 800MHz setpoint.
we need to use the speed grading fuse to disable the unsupported
setpoint. speed grading fuse define as below:
2'b00: Reserved;
2'b01: 528MHz;
2'b10: 792MHz;
2b'11: 996Mhz;
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Tue, 13 Dec 2016 08:51:59 +0000 (16:51 +0800)]
MLK-13601-01 ARM: dts: imx: update the setpoint for imx6ull
According to the latest datasheet(Rev.0,09/2016), two new setpoints
are added on i.MX6ULL, 996MHz/1.25V and 792MHz/1.2V. these two setpoints
can only be enabled when LDO is enabled. In order to cover IR drop and
board tolerance, we add a 25mV margin to the voltage.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Mon, 21 Nov 2016 06:56:12 +0000 (14:56 +0800)]
MLK-13616 ARM: imx: Add low power run voltage change support on i.MX6SLL
On i.MX6SLL, if all PLLs is bypassed in low power run mode, we can decrease
the VDD_ARM_IN and VDD_SOC_IN voltage to 0.925V to save power. a 25mV margin
is added to cover IR drop and board tolerance.
Add low power run voltage change support for i.MX6SLL.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Anson Huang [Thu, 15 Dec 2016 13:54:30 +0000 (21:54 +0800)]
MLK-13614 input: keyboard: imx: make sure keypad interrupts are enabled in suspend
Change the suspend/resume callback to suspend_noirq/resume_noirq
callback to make sure keypad interrupts are enabled during suspend,
as when there is keypad interrupt coming after suspend callback
is called, the interrupt handler will still be called and it will
disable keypad interrupts, it will cause keypad can NOT generate
interrupts to wake up system from suspend.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Shengjiu Wang [Fri, 16 Dec 2016 07:15:06 +0000 (15:15 +0800)]
MLK-13625: ARM: dts: support spdif with imx51 evk expansion card
The HDMI daughter card with sii902x will not be supported in
imx6sll-lpddr3-arm2 board, so use imx51 evk expansion card as spdif
interface
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Mon, 12 Dec 2016 03:52:24 +0000 (11:52 +0800)]
MLK-13609: ASoC: fsl_sai: fix for synchronize mode
TX synchronous with receiver: the RMR should not be changed and
the RCSR.RE should be set in playback.
RX synchronous with transmitter: the TMR should not be changed and
the TCSR.TE should be set in recording.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Wed, 14 Dec 2016 05:02:24 +0000 (13:02 +0800)]
MLK-13608: mfd: mxc-hdmi-core: fix the dependency of alsa sound
When remove sound card build config, there will be error
drivers/built-in.o: In function `mxc_hdmi_register_audio':
vf610_adc.c:(.text+0xd64f8): undefined reference to `_snd_pcm_stream_lock_irqsave'
vf610_adc.c:(.text+0xd6518): undefined reference to `snd_pcm_stream_unlock_irqrestore'
drivers/built-in.o: In function `mxc_hdmi_abort_stream':
vf610_adc.c:(.text+0xd65a4): undefined reference to `_snd_pcm_stream_lock_irqsave'
vf610_adc.c:(.text+0xd65d0): undefined reference to `snd_pcm_stream_unlock_irqrestore'
make: *** [vmlinux] Error 1
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Haibo Chen [Thu, 15 Dec 2016 02:58:18 +0000 (10:58 +0800)]
MLK-13610-2 ARM: dts: imx7ulp-evk: add base board sd slot support
On imx7ulp-evk board, the SD slot on base board is conflict with BT/WiFi.
This patch seperate the usdhc1 from imx7ulp-evk.dts, and create new dts.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Wed, 14 Dec 2016 11:35:34 +0000 (19:35 +0800)]
MLK-13610-1 ARM: dts: add SD3.0 support for usdhc0 on imx7ulp-evk
Add SD3.0 support for usdhc0 on imx7ulp-evk board. Currently the
usdhc0 root clock is 158.4MHz.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Gao Pan [Thu, 15 Dec 2016 06:38:18 +0000 (14:38 +0800)]
MLK-13619 defconfig: enable lpspi in imx_v7_defconfig
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Thu, 15 Dec 2016 06:34:15 +0000 (14:34 +0800)]
MLK-13618 arm: dts: enable lpspi3 in imx7ulp-evk.dts
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 25 Mar 2016 08:49:27 +0000 (16:49 +0800)]
MLK-13617 spi: imx7ulp: add i.MX7ULP lpspi bus driver
Add i.MX7ULP lpspi bus driver which can continue operating
in stop modes provided an appropriate clock is available.
It is also designed for low CPU overhead with DMA offloading
of FIFO register accesses.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Dong Aisheng [Wed, 14 Dec 2016 22:54:45 +0000 (06:54 +0800)]
MLK-13615-1 regulator: pf1550-regulator-rpmsg: should set voltage closest to min_uV
According to API definition, Set the voltage for the regulator within the
range specified, the driver should select the voltage closest to min_uV.
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Fabio Estevam [Thu, 11 Dec 2014 15:14:22 +0000 (13:14 -0200)]
MLK-9987: Input: imx_keypad: Fix suspend/resume while keypad is pressed
Since commit commit
560a64749d1dd0ff ("ENGR00318936-2 input: keyboard: imx:
remove usless release interrupt enabled) the following problem happens:
- Keep any keypad key pressed
- Enter low power mode via "echo mem > /sys/power/state"
- Then we are no longer able to wake-up the system via the keypad
The reason for this behaviour is that the KRIE (Release Interrupt) is not
enabled.
In order to fix this problem, we should enable KRIE when a key is pressed
(KPKD bit is set) or enable KDIE when no key is pressed (KPKR is set).
This way we will always have a valid source of keypad interrupt no matter if
the system entered low power mode while a keypad key was pressed or not.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
(cherry picked from commit
5a7ab47e67d1045cb2f5d408c112617dff48dee2)
(cherry picked from commit
f75c35512bd3df7dbb26f4a35cf17dcbb6ffb724)