Liu Ying [Mon, 24 Jul 2017 05:26:19 +0000 (13:26 +0800)]
MLK-16075-1 gpu: imx: dpu: fetchdecode: Update funcs to enable/disable src buf
The bit to enable/disable source buffer is embedded in the register
LAYERPORPERTY0. However, the other bits of the register may have
other functionalities. So, using fetchdecode_layerproperty() to
enable/disable source buffer isn't appropriate. This patch uses
new functions to enable/disable fetchdecode source buffer so that
the function names could be a bit specific about what they are doing.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Fugang Duan [Wed, 26 Jul 2017 06:16:11 +0000 (14:16 +0800)]
MLK-16086 tty: serial: lpuart: add port.lock to protect registers accessing in suspend
Add port.lock to protect register accessing in suspend/resume function.
Disable RIE and ILIE before DMA chan is ternminated in suspend function.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Wed, 26 Jul 2017 05:27:27 +0000 (13:27 +0800)]
MLK-16085 net: fsl: kconfig: add NET_VENDOR_FREESCALE dependency with ARM64
Add NET_VENDOR_FREESCALE dependency with ARCH_MXC_ARM64 for i.MX8x
platforms.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Pete Zhang <pete.zhang@nxp.com>
Julien Olivain [Wed, 16 Nov 2016 08:39:46 +0000 (09:39 +0100)]
MLK-13473: imx_sim: fix module device table name
This fixes the build when this driver is built as a module, when
CONFIG_MXC_SIM=m
Signed-off-by: Julien Olivain <julien.olivain@nxp.com>
Richard Zhu [Fri, 21 Jul 2017 07:50:42 +0000 (15:50 +0800)]
MLK-16053 ARM64: defconfig: add pcie support in defconfig
Add the pcie support in defconfig for 64bit imx socs.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Richard Zhu [Mon, 24 Jul 2017 04:44:50 +0000 (12:44 +0800)]
MLK-16074 PCI: imx: correct some bits configiration of hsio
- Both APB_RST_0 and APB_RST_1 should be asserted, when PHYX2
is used.
Otherwise, PHYX2 can't finish calibration.
- Correct the PCIEB(PHYX2_1) TX PLL locked check.
- The clear check of the reset should be done after
clks are enabled
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Fugang Duan [Tue, 25 Jul 2017 08:42:11 +0000 (16:42 +0800)]
MLK-16067 tty: serial: lpuart: enable wakeup source in .suspend_noirq()
When use lpuart with DMA mode as wake up source, it still switch to
cpu mode in .suspend() that enable cpu interrupts RIE and ILIE as
wakkup source. When the wakeup signal coming while rx dma chan is
already teminated down, then driver should not call irq handler to
submit the new dma descriptor.
Enable the wakeup irq bits in .suspend_noirq() and disable the wakeup
irq bits in .resume_noirq().
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Guoniu.Zhou [Thu, 20 Jul 2017 04:18:42 +0000 (12:18 +0800)]
MLK-16045: pxp: add lut function in pxp data flow path
When do epdc colormap test, the epdc need pxp lut function. But
if the data flow through mux0->mux1...or mux0->mux2..., the pxp
can not trigger interrupt but mux0->mux3... can. This issue only
occures on imx7d, so I set a constant data path when using lut function.
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Sergey Senozhatsky [Sat, 21 Jan 2017 10:47:29 +0000 (19:47 +0900)]
MLK-16068 printk: use console_trylock() in console_cpu_notify()
There is no need to always call blocking console_lock() in
console_cpu_notify(), it's quite possible that console_sem can
be locked by other CPU on the system, either already printing
or soon to begin printing the messages. console_lock() in this
case can simply block CPU hotplug for unknown period of time
(console_unlock() is time unbound). Not that hotplug is very
fast, but still, with other CPUs being online and doing
printk() console_cpu_notify() can stuck.
Use console_trylock() instead and opt-out if console_sem is
already acquired from another CPU, since that CPU will do
the printing for us.
Link: http://lkml.kernel.org/r/20170121104729.8585-1-sergey.senozhatsky@gmail.com
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
This patch also fixes a deadlock that happens if while holding the
console lock someone issues a call that eventually takes the cpu
hotplug lock, like in the case below, where the following happens:
* task Xorg issues an ioctl to the fb layer which takes the console
lock and calls the driver's ioctl routine
* at the same time, task bat-cpuhotplug issue a hotplug cpu enable
operation which takes the cpu hotplug lock and waits for the cpu
bringup operation to complete
* the fb driver calls dma_alloc_coherent which, on this platform,
eventually tries to take the cpu hotplug
* task cpuhp/2 tries to flush the console
* at this point task Xorg waits after task bat-cpuhotplug to release
the cpu hotplug lock which waits after task cpuhp/2 to signal that
the CPU is up which waits after the Xorg to release the console
lock
Linux version
4.9.11-02771-gd85d61b-dirty
CPU: ARMv7 Processor [
412fc09a] revision 10 (ARMv7), cr=
10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Freescale i.MX6 Quad SABRE Smart Device Board
sysrq: SysRq : Show Blocked State
task PC stack pid father
cpuhp/2 D 0 18 2 0x00000000
[<
80a794ac>] (__schedule) from [<
80a79904>] (schedule+0x4c/0xac)
[<
80a79904>] (schedule) from [<
80a7e680>] (schedule_timeout+0x1e8/0x2fc)
[<
80a7e680>] (schedule_timeout) from [<
80a7d208>] (__down+0x64/0x9c)
[<
80a7d208>] (__down) from [<
80174224>] (down+0x44/0x58)
[<
80174224>] (down) from [<
80181a6c>] (console_lock+0x2c/0x74)
[<
80181a6c>] (console_lock) from [<
801849b4>] (console_cpu_notify+0x28/0x34)
[<
801849b4>] (console_cpu_notify) from [<
80150e58>] (notifier_call_chain+0x44/0x84)
[<
80150e58>] (notifier_call_chain) from [<
8012ed34>] (__cpu_notify+0x38/0x50)
[<
8012ed34>] (__cpu_notify) from [<
8012ed64>] (notify_online+0x18/0x20)
[<
8012ed64>] (notify_online) from [<
8012ea4c>] (cpuhp_up_callbacks+0x24/0xd4)
[<
8012ea4c>] (cpuhp_up_callbacks) from [<
8012f4c8>] (cpuhp_thread_fun+0x13c/0x148)
[<
8012f4c8>] (cpuhp_thread_fun) from [<
80153544>] (smpboot_thread_fn+0x17c/0x2dc)
[<
80153544>] (smpboot_thread_fn) from [<
8014f7d8>] (kthread+0xf0/0x108)
[<
8014f7d8>] (kthread) from [<
801077d0>] (ret_from_fork+0x14/0x24)
bat-cpuhotplug. D 0 841 718 0x00000000
[<
80a794ac>] (__schedule) from [<
80a79904>] (schedule+0x4c/0xac)
[<
80a79904>] (schedule) from [<
80a7e680>] (schedule_timeout+0x1e8/0x2fc)
[<
80a7e680>] (schedule_timeout) from [<
80a7a47c>] (wait_for_common+0xb0/0x160)
[<
80a7a47c>] (wait_for_common) from [<
8012f600>] (bringup_cpu+0x50/0xa8)
[<
8012f600>] (bringup_cpu) from [<
8012ea4c>] (cpuhp_up_callbacks+0x24/0xd4)
[<
8012ea4c>] (cpuhp_up_callbacks) from [<
8012ff58>] (_cpu_up+0xa8/0xec)
[<
8012ff58>] (_cpu_up) from [<
80130010>] (do_cpu_up+0x74/0x9c)
[<
80130010>] (do_cpu_up) from [<
80520c88>] (device_online+0x68/0x8c)
[<
80520c88>] (device_online) from [<
80520d14>] (online_store+0x68/0x74)
[<
80520d14>] (online_store) from [<
8029842c>] (kernfs_fop_write+0xf4/0x1f8)
[<
8029842c>] (kernfs_fop_write) from [<
80223da0>] (__vfs_write+0x1c/0x114)
[<
80223da0>] (__vfs_write) from [<
80224c78>] (vfs_write+0xa4/0x168)
[<
80224c78>] (vfs_write) from [<
802259c4>] (SyS_write+0x3c/0x90)
[<
802259c4>] (SyS_write) from [<
80107740>] (ret_fast_syscall+0x0/0x1c)
Xorg D 0 860 832 0x00000000
[<
80a794ac>] (__schedule) from [<
80a79904>] (schedule+0x4c/0xac)
[<
80a79904>] (schedule) from [<
80a79d98>] (schedule_preempt_disabled+0x14/0x20)
[<
80a79d98>] (schedule_preempt_disabled) from [<
80a7ab10>] (mutex_lock_nested+0x1f8/0x4a4)
[<
80a7ab10>] (mutex_lock_nested) from [<
8012ef94>] (get_online_cpus+0x78/0xbc)
[<
8012ef94>] (get_online_cpus) from [<
801e7858>] (lru_add_drain_all+0x48/0x1b4)
[<
801e7858>] (lru_add_drain_all) from [<
8021f65c>] (migrate_prep+0x8/0x10)
[<
8021f65c>] (migrate_prep) from [<
801e1bc8>] (alloc_contig_range+0xd0/0x320)
[<
801e1bc8>] (alloc_contig_range) from [<
80220ec4>] (cma_alloc+0xb8/0x1a8)
[<
80220ec4>] (cma_alloc) from [<
80113b38>] (__alloc_from_contiguous+0x38/0xd8)
[<
80113b38>] (__alloc_from_contiguous) from [<
80113c0c>] (cma_allocator_alloc+0x34/0x3c)
[<
80113c0c>] (cma_allocator_alloc) from [<
80113d88>] (__dma_alloc+0x174/0x338)
[<
80113d88>] (__dma_alloc) from [<
80113fc8>] (arm_dma_alloc+0x40/0x48)
[<
80113fc8>] (arm_dma_alloc) from [<
80478a88>] (mxcfb_set_par+0x8ec/0xd7c)
[<
80478a88>] (mxcfb_set_par) from [<
8045f200>] (fb_set_var+0x1d4/0x358)
[<
8045f200>] (fb_set_var) from [<
8045f9e8>] (do_fb_ioctl+0x4e4/0x704)
[<
8045f9e8>] (do_fb_ioctl) from [<
8023773c>] (do_vfs_ioctl+0xa0/0xa10)
[<
8023773c>] (do_vfs_ioctl) from [<
802380e0>] (SyS_ioctl+0x34/0x5c)
[<
802380e0>] (SyS_ioctl) from [<
80107740>] (ret_fast_syscall+0x0/0x1c)
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Anson Huang [Fri, 21 Jul 2017 09:30:52 +0000 (17:30 +0800)]
MLK-16055 arm64: dts: freescale: imx8mq: enable power domain support
Assign i.MX8MQ power domain id to each module to enable
power domain control for runtime power management.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Ranjani Vaidyanathan [Fri, 21 Jul 2017 16:35:04 +0000 (11:35 -0500)]
MLK16061 imx8qm/imx8qxp: Add support allowing devices to enter into low
power mode during runtime suspend and idle.
On imx8qm/imx8qx, when devices enter into runtime suspend/idle,
the resource associated with the device will be enter a low power
state (as defined by SCFW). None of the state or clocks will be lost
in this mode.
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Fugang Duan [Mon, 24 Jul 2017 03:38:48 +0000 (11:38 +0800)]
MLK-16064 arm64: dts: imx8qxp: force enet1 use PHY clock delay on lpddr4 arm2 board
Currently enet1 use MAC clock delay, there have packet error
in 100Mbps mode, no packet error in Gbps mode. Still use PHY
clock delay instead of MAC that 100Mbps mode has better timing
and no frame error.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Gao Pan [Mon, 24 Jul 2017 02:11:14 +0000 (10:11 +0800)]
MLK-16063-2 arm64: dts: add new dts file for imx8qxp mlb
add new dts file to support imx8qxp mlb due to pin conflict.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Mon, 24 Jul 2017 02:01:01 +0000 (10:01 +0800)]
MLK-16063-1 arm64: dts: disable mlb in default dts
mlb has pin confict with ESAI. So this patch disable mlb in dts.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Zhou Peng-B04994 [Mon, 24 Jul 2017 05:12:04 +0000 (13:12 +0800)]
MLK-15132-8: Enable Hantro decoder on i.MX8MQ
Implement runtime PM, disable power/clk when vpu is not used
Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
Han Xu [Fri, 21 Jul 2017 21:17:59 +0000 (16:17 -0500)]
MLK-16060: mtd: fsl-quadspi: fix the unalignment issue for qspi
ARM64 platforms may access QSPI from non-64-bit-aligned address which
causes unalignment fault. Fixed the issue for AHB reading.
Signed-off-by: Han Xu <han.xu@nxp.com>
Han Xu [Fri, 21 Jul 2017 21:30:26 +0000 (16:30 -0500)]
MLK-16059-2: ARM64: config: add quadspi to defconfig
add quadspi in defconfig
Signed-off-by: Han Xu <han.xu@nxp.com>
Han Xu [Thu, 20 Jul 2017 22:27:36 +0000 (17:27 -0500)]
MLK-16059-1: ARM64: dts: enable quadspi on i.MX8MQ
enable the quadspi module on i.MX8MQ
Signed-off-by: Han Xu <han.xu@nxp.com>
Peter Chen [Thu, 20 Jul 2017 11:48:30 +0000 (14:48 +0300)]
usb: xhci: fix spinlock recursion for USB2 test mode
Both xhci_hub_control and xhci_disable_slot tries to hold spinlock, the
spinlock recursion occurs when enters USB2 test mode. Fix it by unlock
spinlock before calling xhci_disable_slot.
Cc: <stable@vger.kernel.org>
Fixes:
0f1d832ed1fb ("usb: xhci: Add port test modes support for usb2")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Mathias Nyman [Thu, 13 Apr 2017 11:01:04 +0000 (14:01 +0300)]
xhci: use correct flags for spin_lock_irqrestore() when setting port power
commit
a6ff6cbf1fab ("usb: xhci: Add helper function xhci_set_power_on().")
created a helper to control port power that needs to be called with
xhci->lock held and interrupts disabled.
It released the lock with spin_unlock_irqrestore using a new zero flag
variable instead of the original flag from spin_lock_irqsave.
This regression triggered a static checker warning about bogus flags, and
a null pointer dereference on armada-385.
Fix it by passing a pointer to the correct flags and using it instead
Fixes:
a6ff6cbf1fab ("usb: xhci: Add helper function xhci_set_power_on().")
Cc: Guoqing Zhang <guoqing.zhang@intel.com>
Reported-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Tested-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Guoqing Zhang [Fri, 7 Apr 2017 14:56:54 +0000 (17:56 +0300)]
usb: xhci: Add port test modes support for usb2.
For usb2 ports, the port test mode Test_J_State, Test_K_State,
Test_Packet, Test_SE0_NAK and Test_Force_En can be enabled
as described in usb2 spec.
USB2 test mode is a required hardware feature for system integrators
validating their hardware according to USB spec, regarding signal
strength and stuff. It is purely a hardware test feature.
Usually you need an oscilloscope and have to enable those test modes on
the hardware. This will send some specific test patterns on D+/D-. There
is no report available (in Linux itself) as it is purely externally
visible. Regular USB usage is not possible at that time.
Anyone (well access to e.g. /dev/bus/usb/001/001 provided) can use it by
sending appropriate USB_PORT_FEAT_TEST requests to the hub.
[Add better commit message by Alexander Stein -Mathias]
Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Guoqing Zhang [Fri, 7 Apr 2017 14:56:53 +0000 (17:56 +0300)]
usb: xhci: Expose xhci_start() function.
Change the visability of xhci_start() so that it
can be used when enabling test mode.
Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Guoqing Zhang [Fri, 7 Apr 2017 14:56:52 +0000 (17:56 +0300)]
usb: xhci: Add helper function xhci_disable_slot().
Refactoring slot disable related code into a helper
function xhci_disable_slot() which can be used when
enabling test mode.
Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Guoqing Zhang [Fri, 7 Apr 2017 14:56:51 +0000 (17:56 +0300)]
usb: xhci: Add helper function xhci_set_power_on().
Refactoring port power on/off related code into
a helper function xhci_set_power_on() which can
be reused when enabling test mode.
[set port state to neutral before writing port power -Mathias]
Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Viorel Suman [Thu, 6 Jul 2017 09:09:59 +0000 (12:09 +0300)]
MLK-13975 arm64: dts: fsl-imx8qxp: enable AMIX
Enable AMIX in i.MX8 QXP.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Viorel Suman [Thu, 6 Jul 2017 09:02:39 +0000 (12:02 +0300)]
MLK-13975 arm64: dts: fsl-imx8qxp: enable SAI4 and SAI5
Enable SAI4 and SAI5.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Viorel Suman [Mon, 17 Jul 2017 08:16:55 +0000 (11:16 +0300)]
MLK-13975: ASoC: fsl: add AMIX machine driver
Add audio mixer machine driver.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Viorel Suman [Mon, 17 Jul 2017 08:15:32 +0000 (11:15 +0300)]
MLK-13975: ASoC: fsl: add AMIX device driver
Add audio mixer device driver.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Robin Gong [Tue, 18 Jul 2017 09:01:17 +0000 (17:01 +0800)]
MLK-15305-2: dma: imx-sdma: force to load context in sdma_config
Force to load context in sdma_config whatever context loaded or not,
since some configuration may change when the upper driver call sdma_config
such as bus width.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
ee8930b657af0c9ce2cfb1a521530c7d31016675)
Anson Huang [Fri, 21 Jul 2017 09:26:29 +0000 (17:26 +0800)]
MLK-16044 clk: imx: correct i.mx8mq qspi/nand clock name
i.MX8MQ QSPI and NAND's pre and post div clock
use incorrect parent name, correct them.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Shengjiu Wang [Thu, 20 Jul 2017 02:58:19 +0000 (10:58 +0800)]
MLK-16037: ARM64: dts: switch to use DMA.I2C0 instead HDMI.I2C0
Use the DMA.I2C0 instead HDMI.I2C0, they share same hardware pin
in imx8qm, then the HDMI power domain will not be enabled when
audio codec is working.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Liu Ying [Thu, 20 Jul 2017 02:19:43 +0000 (10:19 +0800)]
MLK-16036 drm/imx: ldb: Avoid early return when getting aux PHY in dual mode
In dual mode, we return too early from ->bind when we get
the auxiliary channel's PHY. This causes we miss the logics
to set driver data, get ldb alias id and initialize pixel
link(if necessary). This patch fixes the issue here by
tweaking the driver logic to do component binding properly.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Richard Zhu [Wed, 5 Jul 2017 08:22:05 +0000 (16:22 +0800)]
MLK-15343-3 PCI: imx: enable the DBI_RO_WR_EN of PCIEB
The DBI_RO_WR_EN of PCIEB should be asserted,
otherwise the CLASS_DEVICE can't be configured
correctly, then PCIEB RC doesn't work at all.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Richard Zhu [Wed, 5 Jul 2017 08:21:35 +0000 (16:21 +0800)]
MLK-15343-2 clk: imx8qm: correct the PD of PCIEB PHY CLK
Correct the PD of the PCIEB PHY CLK.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Richard Zhu [Mon, 3 Jul 2017 05:02:57 +0000 (13:02 +0800)]
MLK-15343-1 ARM: imx: enable pcieb on imx8qm
Based on base board, enable pcieb lane1, enlarge
the CFG mapping space.
HSIO configuration is 1 lane PCIEA, 1 lane PCIEB and SATA.
PHY configurations:
PHY_X2_0 <------> PCIEA 1 lane
PHY_X2_1 <------> PCIEB 1 lane
PHY_X1 <------> SATA
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Octavian Purdila [Tue, 18 Jul 2017 09:32:14 +0000 (12:32 +0300)]
MLK-16020 drivers: soc: imx8: fill in machine field
As for imx6/7, read the 'model' field from device tree and fill in the
machine soc field.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Haibo Chen [Thu, 20 Jul 2017 05:55:14 +0000 (13:55 +0800)]
MLK-16038 ARM: dts: fsl-imx8mq-evk: improve the usdhc I/O drive strength
Some normal high-speed SD card may meet some CRC error on imx8mq-evk
board, so improve the default usdhc I/O drive strength to fix this.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Zhou Peng-B04994 [Thu, 20 Jul 2017 03:04:02 +0000 (11:04 +0800)]
MLK-15132-7 : Enable Hantro decoder on i.MX8MQ
Refine clk/power operation
Adjust print level to reduce some unnecessary print info
Removing some redundant codes in bring up stage
Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
Octavian Purdila [Tue, 18 Jul 2017 12:47:36 +0000 (15:47 +0300)]
MLK-16025 ARM64: defconfig: enable xen backend blkdev
This provides a kernel dom0 based blkdev backend for domUs (raw disk)
and avoids the need to run qemu in dom0 as a backend for blkdev.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Gao Pan [Wed, 19 Jul 2017 05:57:28 +0000 (13:57 +0800)]
MLK-16031 arm64: dts: add mlb support for imx8qxp
add mlb support for imx8qxp
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Anson Huang [Wed, 19 Jul 2017 13:09:46 +0000 (21:09 +0800)]
MLK-16030-2 soc: imx: gpc: add power domain names
Add power domain names for i.MX8MQ, currently only
11 power domains support runtime ON/OFF.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Wed, 19 Jul 2017 13:08:23 +0000 (21:08 +0800)]
MLK-16030-1 arm64: dts: freescale: imx8mq: reduce power domain number
Reduce i.MX8MQ power domain number because some power
domains can NOT support runtime ON/OFF.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Daniel Baluta [Tue, 18 Jul 2017 14:20:28 +0000 (17:20 +0300)]
MLK-16006: Revert "ARM: dts: imx6sx-sdb: Change audio PLL frequency for SSI"
This reverts commit
d7d6f210522188 ("ARM: dts: imx6sx-sdb: Change audio
PLL frequency for SSI") because it breaks MQS.
MQS uses IMX6SX_CLK_SAI1 as master clock and it requires mclk rate to be
24576000. No other rate is supported.
Anyhow, due to change to fix MLK-14865 sai1 clk is changed to
36864000.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Weiguang Kong [Fri, 14 Jul 2017 01:00:11 +0000 (09:00 +0800)]
MLK-16010: ASoc: fsl: support 32-bit application for hifi4
add cases to support 32-bit application for hifi4 when
kernel is running on 64-bit cpu mode.
Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
Gao Pan [Tue, 18 Jul 2017 03:12:14 +0000 (11:12 +0800)]
MLK-16029 arm64: dts: imx8qm: enable mipi_dsi0 i2c0
add device node to enable mipi_dsi0 i2c0
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Tue, 18 Jul 2017 05:55:13 +0000 (13:55 +0800)]
MLK-16028 clk: imx8qm: add clk for dsi0 i2c0
add clk for dsi0 i2c0
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Tue, 18 Jul 2017 06:02:33 +0000 (14:02 +0800)]
MLK-16027 arm64: dts: imx8qm: correct mipi0 power domain
correct mipi0 power domain
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Fugang Duan [Tue, 18 Jul 2017 10:01:38 +0000 (18:01 +0800)]
MLK-16023-05 arm64: dts: imx8qm/qxp: enable enet MAC delayed clocks
Since i.MX8QM/QXP ENET version add new feature that support delayed
clock for rxc/txc, then enable the feature on imx8qm/qxp arm2 boards.
Only enable i.MX8QM/QXP ARM2 board port0 delayed clock, port1 still
use PHY delayed clock. i.MX8QXP MEK board also use PHY delayed clock,
once get board then enable the port1 and verify MAC delayed clock in
MEK board.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Tue, 18 Jul 2017 09:56:46 +0000 (17:56 +0800)]
MLK-16023-04 arm64: dts: imx8mq: clean up the enet compatible string
Since i.MX8MQ ENET is the same as i.MX6SX ENET version and don't
support new features added in i.MX8QM/QXP. So remove "fsl,imx8qm-fec"
compatible string.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Tue, 18 Jul 2017 09:52:44 +0000 (17:52 +0800)]
MLK-16023-03: net: fec: add MAC delayed clock feature support
i.MX8QM/QXP ENET IP version add new feture to generate delayed TXC/RXC
as an alternative option to make sure it can work well with various PHYs,
which also is useful for MAC-to-MAC case. Add the new feature support.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Tue, 18 Jul 2017 09:49:37 +0000 (17:49 +0800)]
MLK-16023-02: clk: imx8qm/qxp: correct the enetn_tx_2x_clk clock source
Correct the enetn_tx_2x_clk clock source to get the correct clk tree.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Tue, 18 Jul 2017 09:45:00 +0000 (17:45 +0800)]
MLK-16023-01 net: phy: at803x: cleared the txc/rxc clk delay enable bits
RXC clock delayed bit is enabled in HW reset in default, and
to avoid uboot set RXC/TXC clk delayed bits, it should clear
these bits firstly.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Wed, 12 Jul 2017 06:49:45 +0000 (14:49 +0800)]
MLK-16022 net: fec: get mac address from fuse
i.MX8QM/QXP MAC address only can be program by SCU, and A core
read fuse enet MAC address by sc APIs interface. i.MX8mScale is
inherited from i.MX7D, can directly read fuse in A-core.
Add i.MX8QM/QXP/MQ ENET MAC address check from fuse.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Liu Ying [Tue, 18 Jul 2017 07:15:03 +0000 (15:15 +0800)]
MLK-16015-8 gpu: imx: dpu: common: Initialize pixel link with correct settings
The pixel link configurations are broken into pieces in other drivers to
meet a recommended configuration sequence from the design team. So, let's
rename the function name of dpu_pixel_link_config() to dpu_pixel_link_init
and disable/invalidate pixel link as an initial status.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 18 Jul 2017 07:28:53 +0000 (15:28 +0800)]
MLK-16015-7 gpu: imx: dpu: common: Make dpu_pixel_link_config() return void
This patch makes dpu_pixel_link_config() return void, since no one is
checking the return value and actually even if any of the SCU operations
inside this function fails we can do nothing about it.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 18 Jul 2017 07:10:55 +0000 (15:10 +0800)]
MLK-16015-6 drm/imx: ldb: Add pixel link validate/invalidate logics
To enable or disable a display safely, we need to validate pixel link
after the relevant ldb channel is enabled and invalidate pixel link
before the channel is disabled. These operations are recommended
by the design team.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 18 Jul 2017 07:19:16 +0000 (15:19 +0800)]
MLK-16015-5 drm/imx: ldb: Specify pixel link quirks to be initialization related
This patch specifies the existing pixel link quirks is initialization related.
This may help us distinguish between the pixel link quirks and another one
up-coming which is validation and invalidation related.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 18 Jul 2017 07:04:21 +0000 (15:04 +0800)]
MLK-16015-4 gpu: imx: dpu: framegen: Add pixel link enable/disable logics
To enable or disable a display safely, we need to enable pixel link
after framegen is enabled and disable pixel link before framegen is
disabled. These operations are recommended by the design team.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 18 Jul 2017 07:01:31 +0000 (15:01 +0800)]
MLK-16015-3 arm64: fsl-imx8qm.dtsi: Add ldb aliases
This patch adds ldb aliases so that the relevant driver is
able to distinguish between the two LDB instances.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 18 Jul 2017 06:59:33 +0000 (14:59 +0800)]
MLK-16015-2 phy: mixel-lvds-combo: Add delay to wait PHY to be locked
It seems that we haven't got SCU ISO bit available to check if PHY is
locked or not after enable, so let's simply delay for a while as a
temporary solution.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 18 Jul 2017 06:54:43 +0000 (14:54 +0800)]
MLK-16015-1 phy: mixel-lvds: Add delay to wait PHY to be locked
It seems that we haven't got SCU ISO bit available to check if PHY is
locked or not after enable, so let's simply delay for a while as a
temporary solution.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Haibo Chen [Tue, 18 Jul 2017 09:27:02 +0000 (17:27 +0800)]
MLK-15973 ARM: dts: imx6sx-sabreauto: correct CD pin.
Correct the CD pin for baseboard SD slot, otherwise
the card detection can't work.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Peter Chen [Wed, 17 May 2017 15:32:02 +0000 (18:32 +0300)]
usb: host: xhci-ring: don't need to clear interrupt pending for MSI enabled hcd
According to xHCI spec Figure 30: Interrupt Throttle Flow Diagram
If PCI Message Signaled Interrupts (MSI or MSI-X) are enabled,
then the assertion of the Interrupt Pending (IP) flag in Figure 30
generates a PCI Dword write. The IP flag is automatically cleared
by the completion of the PCI write.
the MSI enabled HCs don't need to clear interrupt pending bit, but
hcd->irq = 0 doesn't equal to MSI enabled HCD. At some Dual-role
controller software designs, it sets hcd->irq as 0 to avoid HCD
requesting interrupt, and they want to decide when to call usb_hcd_irq
by software.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Chen [Wed, 19 Apr 2017 13:55:51 +0000 (16:55 +0300)]
usb: host: xhci: delete sp_dma_buffers for scratchpad
We already have sp_array to store each scratch buffer address for xHC,
it doesn't need another sp_dma_buffers array to store it.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Chen [Wed, 19 Apr 2017 13:55:50 +0000 (16:55 +0300)]
usb: host: xhci: using correct specification chapter reference for DCBAAP
Using correct specification chapter reference for DCBAAP
(Device Context Base Address Array Pointer).
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Anson Huang [Tue, 18 Jul 2017 15:27:30 +0000 (23:27 +0800)]
MLK-16017 arm64: dts: freescale: imx8qxp: add system controller rtc
Add i.MX8QXP system controller RTC support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Jessie Hao [Mon, 17 Jul 2017 09:52:34 +0000 (17:52 +0800)]
MA-9931 [#imx-667] use kzalloc instead of kmalloc during fence_init.
Fix cts android.app.uiautomation.cts.UiAutomationTest#testWindowContentFrameStats fail.
This case check fence getSignalTime, which is get from fence->timestamp.
If use kmalloc, timestamp value is not guaranteed and can't be updated during fence_signal.
Date: Jul 17, 2017
Signed-off-by: juan.hao <juan.hao@nxp.com>
Xianzhong [Fri, 7 Jul 2017 08:44:38 +0000 (16:44 +0800)]
MGS-2966 [#imx-651] fix GPU hang with power management off
iMX8QXP SCFW has the strict requirement on GPU power-up/down flow,
when GPU power management is disabled, there is no power-down,
then GPU hang with the second power-up when insmod galcore.
this fix will enable power-down when unload galcore module.
Date: Jul 07, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Gao Pan [Mon, 17 Jul 2017 02:54:31 +0000 (10:54 +0800)]
MLK-15999 imx: mlb: fix build warnings
fix build warnings
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Mon, 17 Jul 2017 08:57:48 +0000 (16:57 +0800)]
MLK-15995 imx: mlb: only use irq_ahb1 for imx6
Due to IP integration difference, there are 2 ahb irqs
for imx6 and only 1 ahb irq for imx8. This patch makes
mlb driver compatible with irq difference.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 14 Jul 2017 10:33:51 +0000 (18:33 +0800)]
MLK-15994 defconfig: add mlb support in defconfig
add mlb support in defconfig
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 14 Jul 2017 10:26:00 +0000 (18:26 +0800)]
MLK-15993 Kconfig: add mlb support for IMX8QM
add mlb support for IMX8QM
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 14 Jul 2017 10:10:57 +0000 (18:10 +0800)]
MLK-15992 imx: mlb: add ipg & hclk clocks for imx8 mlb
Add ipg & hclk clock for imx8 mlb due to IP integration difference.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 14 Jul 2017 10:04:51 +0000 (18:04 +0800)]
MLK-15991 arm64: dts: imx8qm: add mlb support
add mlb support for imx8qm
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 14 Jul 2017 09:50:33 +0000 (17:50 +0800)]
MLK-15990 imx: mlb: change mlb clock name
change mlb clock name from clk_mlb3p to mlb.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 14 Jul 2017 09:45:24 +0000 (17:45 +0800)]
MLK-15989 arm: dts: imx6q: remove clk pll8_mlb
remove clk pll8_mlb because it's not used in current driver.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 14 Jul 2017 09:42:30 +0000 (17:42 +0800)]
MLK-15988 imx: mlb: remove clk for mlb 6 pin mode
mlb 6 pin mode is not supported in current release,
so remove clk for mlb 6 pin mode.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Fri, 14 Jul 2017 09:36:59 +0000 (17:36 +0800)]
MLK-15987 imx: mlb: use dma pool when iram doesn't exist
alloc mlb data buffer from dma pool when iram doesn't exist
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Sun, 16 Jul 2017 11:49:07 +0000 (19:49 +0800)]
MLK-15997 Document: mlb: add document for mlb
add document for mlb
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Viorel Suman [Tue, 11 Jul 2017 05:26:44 +0000 (08:26 +0300)]
MLK-13975: ASoC: fsl_sai: Refine master flag handling
The patch introduces the master flag handling
as function of direction and the option to provide
the flag value from DTS.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Jason Liu [Thu, 15 Jun 2017 22:55:33 +0000 (06:55 +0800)]
MLK-16005-2 arm64: tlb: add the SW workaround for i.MX8QM TKT340553
on i.MX8QM TO1.0, there is an issue: the bus width between A53-CCI-A72
is limited to 36bits.TLB maintenance through DVM messages over AR channel,
some bits will be forced(truncated) to zero as the followings:
ASID[15:12] is forced to 0
VA[48:45] is forced to 0
VA[44:41] is forced to 0
VA[39:36] is forced to 0
This issue will result in the TLB aintenance across the clusters not working
as expected due to some VA and ASID bits get truncated and forced to be zero.
The SW workaround is: use the vmalle1is if VA larger than 36bits or
ASID[15:12] is not zero, otherwise, we use original TLB maintenance path.
Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Jason Liu [Thu, 13 Jul 2017 02:40:54 +0000 (10:40 +0800)]
MLK-16005-1 drivers: soc: refine the imx8 soc revision support
This patch is to refine the imx8 soc revision support. The imx8qm and
imx8qxp will go through the SCU API to get the silicon ID and REVISION.
imx8mq will go through the anatop interface to get the ID/REV.
Since the silicon ID/REV need be set as early as possible, thus refine it
by using the early_initcall for the early initialization. For the SCU API
interface, this need be called after the MU interface initialized.
Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Daniel Baluta [Fri, 14 Jul 2017 14:12:17 +0000 (17:12 +0300)]
MLK-15980: Revert "ASoC: imx-wm8962: Use a lower FLL output rate for S20_3LE and S24_LE formats"
This reverts commit
be13ac391d27c925 ("MLK-15101: ASoC: imx-wm8962: Use a lower
FLL output rate for S20_3LE and S24_LE formats").
This breaks recording. We'll have to find a better fix for MLK-15101.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Liu Ying [Mon, 17 Jul 2017 05:54:26 +0000 (13:54 +0800)]
MLK-16001 drm/imx: dpu: plane: Don't support active planes with CRTC disabled
It's unnecessary to support active planes with relevant CRTC being disabled,
because we cannot see the planes on the screen. Let's reject the case
in the atomic check stage explicitly.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Anson Huang [Mon, 10 Jul 2017 09:44:34 +0000 (17:44 +0800)]
MLK-16000 arm64: dts: freescale: imx8qxp: add mek board dtb
Add i.MX8QXP MEK board dtb.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Ranjani Vaidyanathan [Tue, 11 Jul 2017 22:28:24 +0000 (17:28 -0500)]
MLK15951-2 arm:dts:imx8qm - Fix HDMI clocks
Ensure that both PLL and IPG clocks are enabled and set by
the HDMI irqsteer device tree entry.
Fix some HDMI clock names.
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Ranjani Vaidyanathan [Tue, 11 Jul 2017 22:24:37 +0000 (17:24 -0500)]
MLK-15952-1 imx8qm: FIX HDMI clocks
The HDMI irqsteer incorrectly assumed that the HDMI bus clock will
be enabled automatically by the SCFW when HDMI SS is powered up.
Fix HDMI clocks so that the HDMI IPG clock is enabled when required.
Also fix all the LPCG addresses by HDMI clocks.
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Cristina Ciocan [Thu, 22 Jun 2017 14:41:37 +0000 (17:41 +0300)]
MLK-15048-2: video: Add proper config dependencies
Currently, if setting MXC_IPU to 'no' leads to a chain of build crashes.
This happens due to lack of proper config dependencies.
This patch fixes the following interdependencies:
- framebuffer sync panel (FB_MXC_SYNC_PANEL)
- should depend on IPU v3 (MXC_IPU_V3)
- ADV7535 MIPI-to-HDMI converter (FB_MXC_ADV7535)
- should depend on MIPI DSI (FB_MXC_MIPI_DSI)
- framebuffer MXS LCD controller (FB_MXS)
- should depend on framebuffer sync panel (FB_MXC_SYNC_PANEL)
- camera v4l drivers + TV decoders that use IOCTL interface
(MXC_CAMERA_OV5640, MXC_CAMERA_OV5642, MXC_CAMERA_OV5640_MIPI,
MXC_TVIN_ADV7180)
- should depend on V4L2 internal IOCTL interface
(VIDEO_V4L2_MXC_INT_DEVICE)
Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
Cristina Ciocan [Thu, 22 Jun 2017 14:41:36 +0000 (17:41 +0300)]
MLK-15048-1: media: v4l: capture: Move mxc/subdev/ drivers to mxc/capture
All drivers in mxc/subdev are capture devices, so move them to their
rightful place, in mxc/capture to avoid confusion.
Two of the drivers, ov5640 and ov5640_mipi are in both locations, having
the same configs: CONFIG_MXC_CAMERA_OV5640 and CONFIG_MXC_CAMERA_OV5640_MIPI.
After moving all to mxc/capture/ directory, add a _v2 suffix to those
drivers moved from mxc/subdev to allow a clean compile process. As a next
step, the 2 versions of drivers should be merged, since they represent the
same device and functionality.
Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
Guoniu.Zhou [Thu, 13 Jul 2017 14:53:51 +0000 (22:53 +0800)]
MLK-15962: pxp-v3: fix pxp operation timeout issue
PxP block on imx6sll, imx6ull is different with imx7d, the node
path_ctrl should be different. So add path_ctrl for 6sll, 6ull.
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Daniel Baluta [Thu, 13 Jul 2017 10:42:42 +0000 (13:42 +0300)]
MLK-15937-4: ASoC: fsl_spdif: Use DMA workaround for SPDIF
Similar with commit
2f756e7aa88407 ("MLK-15004-4: ASoC: fsl_esai: esai
workaround for imx8qxp Rev1") this is needed because of a hardware
issue where SPDIF DMA request signal is active low but the DMA
input is active high.
The workaround uses GPT to convert DMA request signal to EDMA.
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Daniel Baluta [Fri, 7 Jul 2017 14:02:31 +0000 (17:02 +0300)]
MLK-15937-3: ARM64: dts: qxp: Add support for SPDIF
Instantiate sound-spdif node and add pinmux.
Connection on debug board is:
* SPDIF_OUT: SEAF_B_G39
* SPDIF_RX: SEAF_B_G38
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Daniel Baluta [Fri, 7 Jul 2017 14:01:04 +0000 (17:01 +0300)]
MLK-15937-2: ARM64: dts: qxp: Add SPDIF0 node definition
Specify register address, interrupt, clocks and dma.
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Daniel Baluta [Thu, 13 Jul 2017 10:40:00 +0000 (13:40 +0300)]
MLK-15937-1: clk: imx8qxp: Fix spdif0_tx_clk clock parent
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Shengjiu Wang [Wed, 12 Jul 2017 10:02:35 +0000 (18:02 +0800)]
MLK-15960-6: ARM64: dts: add power domain for audio clocks
The mclk_out clock is used as codec's mclk, so need to add
its power domain to codec node.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Thu, 13 Jul 2017 02:44:43 +0000 (10:44 +0800)]
MLK-15960-5: ASoC: fsl_esai: refine pm runtime function
In imx8qm/imx8qxp, the power domain of IP is enabled when
pm_runtime_get_sync() is called, and disabled when pm_runtime
_put_sync() is called. when power domain is disabled, the value
of registers will lost, so we need to use the regcache_sync()
to restore the registers in fsl_esai_runtime_resume.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Thu, 13 Jul 2017 02:44:30 +0000 (10:44 +0800)]
MLK-15960-4: ASoC: fsl_asrc: refine pm runtime function
In imx8qm/imx8qxp, the power domain of IP is enabled when
pm_runtime_get_sync() is called, and disabled when pm_runtime
_put_sync() is called. when power domain is disabled, the value
of registers will lost, so we need to use the regcache_sync()
to restore the registers in fsl_asrc_runtime_resume.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Wed, 12 Jul 2017 10:01:07 +0000 (18:01 +0800)]
MLK-15960-3: ASoC: fsl_spdif: refine pm runtime function
In imx8qm/imx8qxp, the power domain of IP is enabled when
pm_runtime_get_sync() is called, and disabled when pm_runtime
_put_sync() is called. when power domain is disabled, the value
of registers will lost, so we need to use the regcache_sync()
to restore the registers in fsl_spdif_runtime_resume.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Wed, 12 Jul 2017 10:00:58 +0000 (18:00 +0800)]
MLK-15960-2: ASoC: fsl_sai: refine the pm runtime function
In imx8qm/imx8qxp, the power domain of IP is enabled when
pm_runtime_get_sync() is called, and disabled when pm_runtime
_put_sync() is called. when power domain is disabled, the value
of registers will lost, so we need to use the regcache_sync()
to restore the registers in fsl_sai_runtime_resume.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Wed, 12 Jul 2017 10:19:25 +0000 (18:19 +0800)]
MLK-15960-1: ASoC: fsl_sai: update fifo_depth for different platform
The fifo_depth is changed to 64 in imx8qm/imx8qxp, in imx8mq, the
fifo_depth is 128. which is mentioned in their ADD.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>