Commit Graph

643309 Commits

Author SHA1 Message Date
qwx495460 20793d3f5d support ip regulator
add ip power driver based on regulator framework for hikey970
2018-03-16 09:28:30 +08:00
Siwei Xu 495c89ef5b Drivers/IPU: fix a potential panic issue and remove unsed codes.
Signed-off-by: Siwei Xu <xusiwei1@hisilicon.com>
2018-03-15 16:01:23 +08:00
Kevin Wangtao 1d2cd9e4bd cpufreq: cpufreq-dt: fix NETLINK wake up during suspend
during suspend, non-boot cpu will be pluged off, and when
the last cpu of big cluster be pluged off, the related cpu
cooling device will be unregistered, it will trigger an
uevent, this will cause early wakeup if there are not enough
time for the uevent to be handled before suspend.

This patch fixes the issue by not unregistering cpu cooling
device during suspend, this may not be a perfect solution.

Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
2018-03-08 16:12:47 +08:00
Yao Chen 09fd0174c5 Drivers/PCIe: Bugfix for MSI interrupts missing.
This patch fixes MSI interrupts missing problem.

Signed-off-by: Yao Chen <chenyao11@huawei.com>
2018-03-08 10:56:43 +08:00
zwx305167 cf21836d0d Drivers/IPU: add IPU driver for hikey970
Add IPU device driver and device tree source for HiKey970.

Signed-off-by: zwx305167 <zwx305167@notesmail.huawei.com>
2018-03-07 20:55:15 +08:00
qwx495460 d02cfc90a2 Add WIFI/BT/GPS Driver For Hikey970.
Signed-off-by: qwx495460 <qwx495460@notesmail.huawei.com>
2018-03-07 15:17:21 +08:00
l00401870 41e8a414ad drivers: vcodec: Modify the IOMMU related interface in the vcodec driver
Modify the IOMMU related interface in the vcodec driver.

Signed-off-by: l00401870 <l00401870@notesmail.huawei.com>
2018-03-05 17:55:13 +08:00
Li Wei b39ab2d98c drivers:iommu: muti-domain for smmu on hikey970 platform
On the hikey960 platform, only one domain is supported,
and you can see that the media business is all used by the domain created by the ion.

After adding IPU (AI) to Hikey970 platform, it uses its own domain,
so the underlying layer needs to support multiple page mapping of domain,
otherwise IPU and DRM mapping will conflict, resulting in IPU recognition of image failure.

Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-05 17:55:11 +08:00
xwx495457 b18aa48f36 media: Hisilicon isp: add Hisilicon isp driver on Hikey970 board. support for yuv sensor ov5640 & D3 Camera board.
Signed-off-by: xwx495457 <xwx495457@notesmail.huawei.com>
2018-03-05 16:14:41 +08:00
Guodong Xu bb3fd43c36 hikey970_defconfig: enable hdmi audio
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2018-03-05 15:58:35 +08:00
houxiaoyong 08c3eee43a Hifi_dsp: add hikey970 memmap and fix a bug about memory overflow
Signed-off-by: houxiaoyong <houxiaoyong1@huawei.com>
2018-03-05 15:44:31 +08:00
houxiaoyong 5ec9e7ade8 Hifi_dsp: support hifi for hikey970
Add HiFi DSP support for HiKey970

Signed-off-by: houxiaoyong <houxiaoyong1@huawei.com>
[clean up failure when applying support_hifi.patch]
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2018-03-05 15:41:44 +08:00
xwx495457 8094511eee Drivers/VCODEC: support vcodec function for hikey970.
Add VCODEC code in kernel to support vcodec for hikey970.

Signed-off-by: xwx495457 <xwx495457@notesmail.huawei.com>
2018-03-05 15:18:46 +08:00
zwx305167 cae64574fd dts: arm64: add drm for hikey970.
Add dts and defconfig support HDMI&LCD display function for hikey970.

Signed-off-by: zwx305167 <zwx305167@notesmail.huawei.com>
2018-03-02 15:24:26 +08:00
zwx342317 3db63453bc Drivers/DRM: support display function for hikey970.
Add HDMI & LCD driver code use DRM/KMS subsystem for hikey970.

Signed-off-by: cailiwei@hisilicon.com
Signed-off-by: zhangxiubin1@huawei.com
2018-03-02 15:24:14 +08:00
zwx305167 4c2a034fd7 MALI: Hikey970 GPU Dirver Porting 2018-03-02 15:21:49 +08:00
Li Wei b743e0961e BACKPORT: staging: android: ion: Stop butchering the DMA address
Now that we have proper caching, stop setting the DMA address manually.
It should be set after properly calling dma_map.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 62b3a094cb9e4a3c5a5be4a20b72e0ced3af0e31)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-02 14:12:45 +08:00
Li Wei a92f30866f BACKPORT: staging: android: ion: Remove crufty cache support
Now that we call dma_map in the dma_buf API callbacks there is no need
to use the existing cache APIs. Remove the sync ioctl and the existing
bad dma_sync calls. Explicit caching can be handled with the dma_buf
sync API.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 5dc3bafb4217e021a38fe67445dac5b659909c36)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-02 14:12:45 +08:00
Li Wei a065b7aaa8 BACKPORT: staging: android: ion: Call dma_map_sg for syncing and mapping
Technically, calling dma_buf_map_attachment should return a buffer
properly dma_mapped. Add calls to dma_map_sg to begin_cpu_access to
ensure this happens. As a side effect, this lets Ion buffers take
advantage of the dma_buf sync ioctls.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2a55e7b5e5446c970e00be1bca8536f4a58bf21c)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-02 14:12:44 +08:00
Laura Abbott e0ac735734 BACKPORT: staging: android: ion: Duplicate sg_table
Ion currently returns a single sg_table on each dma_map call. This is
incorrect for later usage.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 17fd283f3870dd63c91c99591aab14e21799c119)
Signed-off-by: Li Wei <liwei213@huawei.com>
2018-03-02 14:12:44 +08:00
wanghaoxiang1 ab5d241d7b eth: hisilicon: Solve the "no buffer space available" problem of Ethernet 2018-03-01 15:12:03 +08:00
Yao Chen 1bc151858c Drivers/PCIe: Fix the failure of enumerating devices under root subordinate
Bugfix for the commit of a20c7f36bd3d ("PCI: Do not allocate more buses than available in
parent").With this patch enumeration stops digging deeper downstream as soon as bus num 0x01 has been assigned, which is always the case for a bridge device.This results in all devices behind a bridge bus to remain undetected, as these would be connected to bus 0x02 or higher.

Reference to https://patchwork.ozlabs.org/patch/857566/

Signed-off-by: Yao Chen <chenyao11@huawei.com>
2018-03-01 10:40:01 +08:00
Wanglai Shi a5e090208b dts: arm64: Add CoreSight trace support for kirin970 included
This patch includes the CoreSight dts into the device tree.
2018-02-28 13:18:43 +08:00
Wanglai Shi d5222b5ab6 dts: arm64: Add CoreSight trace support for kirin970
This patch adds devicetree entries for the CoreSight trace components
on the kirin970.
2018-02-28 13:18:43 +08:00
Wanglai Shi 1a4bac00ad coresight: ETM: Add support for ARM Cortex-A73
Add ARM Cortex A-73 ETM PIDs to the known ETM ips. While at it
also add description of the CPU to which the ETM belongs, to make
it easier to identify the ETM devices.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
2018-02-28 13:18:42 +08:00
Mathieu Poirier b667a2035b coresight: tmc: implementing TMC-ETR AUX space API
This patch implement the AUX area interfaces required to
use the TMC (configured as an ETR) from the Perf sub-system.

The ETR is configured to work with contiguous memory only.
Although not optimal, it allows the IP block to be used
while the scatter-gather mode of operation is being worked
on.

The heuristic is heavily borrowed from the ETB10 and TMC-ETF
implementation.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit ea817df0ff9e657c2bc1014787562dbf49bfdccd)
2018-02-28 13:18:41 +08:00
Quentin Lambert 61c6ef2dc8 coresight: perf: Add a missing call to etm_free_aux
Most error branches following the call to alloc_event_data contain a call
to etm_free_aux. This patch add a call to etm_free_aux to an error branch
that does not call it.

This issue was found with Hector.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 285fb22a8f3b242727da09d43262ef8dfd6424dd)
2018-02-28 13:18:41 +08:00
Suzuki K. Poulose 1825a7db86 coresight: tmc: Remove duplicate memset
The tmc_etr_enable_hw() fills the buffer with 0's before enabling
the hardware. So, we don't need an explicit memset() in
tmc_enable_etr_sink_sysfs() before calling the tmc_etr_enable_hw().
This patch removes the explicit memset from tmc_enable_etr_sink_sysfs.

Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 80445970ae1c928e503aefc66033e825b9668884)
2018-02-28 13:18:41 +08:00
Suzuki K. Poulose d0d63cb9c1 coresight: tmc: Get rid of mode parameter for helper routines
Get rid of the superfluous mode parameter and the check for
the mode in tmc_etX_enable_sink_{perf/sysfs}. While at it, also
remove the unnecessary WARN_ON() checks.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 63c0930d10ced04a542a526c9641b512d4074f02)
2018-02-28 13:18:40 +08:00
Suzuki K. Poulose 701f480ade coresight: tmc: Cleanup operation mode handling
The mode of operation of the TMC tracked in drvdata->mode is defined
as a local_t type. This is always checked and modified under the
drvdata->spinlock and hence we don't need local_t for it and the
unnecessary synchronisation instructions that comes with it. This
change makes the code a bit more cleaner.

Also fixes the order in which we update the drvdata->mode to
CS_MODE_DISABLED. i.e, in tmc_disable_etX_sink we change the
mode to CS_MODE_DISABLED before invoking tmc_disable_etX_hw()
which in turn depends on the mode to decide whether to dump the
trace to a buffer.

Applies on mathieu's coresight/next tree [1]

https://git.linaro.org/kernel/coresight.git next

Reported-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@broadcom.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 034cd3ad350f05718a11271b64ec7634edafe89a)
2018-02-28 13:18:40 +08:00
Mathieu Poirier 1b3b4dca3e coresight: reset "enable_sink" flag when need be
When using coresight from the perf interface sinks are specified
as part of the perf command line.  As such the sink needs to be
disabled once it has been acknowledged by the coresight framework.
Otherwise the sink stays enabled, which may interfere with other
sessions.

This patch removes the sink selection check from the build path
process and make it a function on it's own.  The function is
then used when operating from sysFS or perf to determine what
sink has been selected.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 286665518b31be5f7b8e27fe7468941438046d16)
2018-02-28 13:18:40 +08:00
Yao Chen a27c9208e8 Drivers/PCIe: change mode of pcie driver files
This patch change the mode of pcie driver files

Signed-off-by: Yao Chen <chenyao11@huawei.com>
2018-02-14 12:12:35 +08:00
wanghaoxiang1 c2ddf9217f eth: hisilicon: hikey970: enable r8168 Ethernet driver for hikey970 2018-02-13 15:33:34 +08:00
liwei213 33bca63281 drivers/scsi:ufs: enable the ufs feature
Open the kernel macros of ufs for hikey platform.

Signed-off-by: liwei213 <liwei213@huawei.com>
2018-02-13 15:17:58 +08:00
liwei213 c021aabeff drivers/scsi:ufs:add hikey970 ufs driver
Modify ufs driver to support both hikey960 and hikey970.

Signed-off-by: liwei213 <liwei213@huawei.com>
2018-02-13 15:09:43 +08:00
mwx533604 b20a70bf85 Drivers/CAN: support can bus function for hikey970.
Add CAN code in kernel to support can bus for hikey970.

Signed-off-by: mwx533604 <mwx533604@notesmail.huawei.com>
2018-02-12 22:07:35 +08:00
c00354815 698e0b3159 Drivers/PCIe: support pcie function for hikey970
Add PCIe code in kernel to support PCIe for hikey970

Signed-off-by: Yao Chen <chenyao11@huawei.com>
2018-02-12 21:54:31 +08:00
Roger Quadros e04a0e9faa usb: udc: allow adding and removing the same gadget device
allow usb_del_gadget_udc() and usb add_gadget_udc() to be called
repeatedly on the same gadget->dev structure.

We need to clear the gadget->dev structure so that kobject_init()
doesn't complain about already initialized object.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2018-02-12 21:54:07 +08:00
Yu Chen 980f4daeea dts: hisilicon: hikey970: enable i2c1 in kirin970.dtsi
Signed-off-by: chenyu <chenyu56@huawei.com>
2018-02-12 21:54:06 +08:00
Yu Chen 31f1e4fabf hikey970_defconfig: turn on some configs to support usb of hikey970
Signed-off-by: chenyu <chenyu56@huawei.com>
2018-02-12 21:54:06 +08:00
Yu Chen 63d9726572 usb: pd: optimize hisi pd code
Signed-off-by: chenyu <chenyu56@huawei.com>
2018-02-12 21:47:40 +08:00
Yu Chen cc157f58ba misc: hisi_hikey_usb: add support for hikey970
Signed-off-by: chenyu <chenyu56@huawei.com>
2018-02-12 21:47:40 +08:00
Yu Chen 4d2515a2ba usb: dwc3: dwc3 controller of kirin970 need more delay for ep command
Signed-off-by: chenyu <chenyu56@huawei.com>
2018-02-12 21:47:39 +08:00
Yu Chen 077a5b3771 usb: dwc3: dwc3-hisi add support for PM_SLEEP on hikey970
Signed-off-by: chenyu <chenyu56@huawei.com>
2018-02-12 21:47:39 +08:00
Yu Chen 0c19ed5549 phy: phy-kirin970-usb3: fix some error of usb phy init for hikey970
Signed-off-by: chenyu <chenyu56@huawei.com>
2018-02-12 21:47:38 +08:00
Kevin Wangtao 5c26bd0d3d dts: arm64: add thermal zone for kirin970
This patch adds thermal zone to bind thermal sensor with CPU cooling
device

Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
2018-02-12 16:48:41 +08:00
Kevin Wangtao 22400906fd dts: arm64: add gpu support for kirin970
This patch enable gpu on kirin970

Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
2018-02-12 16:48:41 +08:00
Kevin Wangtao 4248d89046 PM / devfreq: hisi: add ddr devfreq support for kirin970
This patch adds the support for ddr devfreq on the kirin970 SoC,
make it possible to control the ddr frequency through devfreq
interface or PMQOS.

Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
2018-02-12 16:48:40 +08:00
Kevin Wangtao 9e266823ff thermal/drivers/hisi: Add support for kirin970
This patch adds the support for thermal sensor on the kirin970 SoC.

Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
2018-02-12 16:48:40 +08:00
Kevin Wangtao 0f9cb51ad7 cpufreq: hisi-acpu: add support for kirin970
Enable cpufreq-dt driver for krin970.

Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
2018-02-12 16:48:40 +08:00