Commit graph

8541 commits

Author SHA1 Message Date
Gokul Sriram Palanisamy
ebfe553da8 QCA: Crashdump data to flash
If the dump_to_flash environment variable is set with the proper
offset in u-boot, crashdump data will be stored to flash memory.
Otherwise it will be stored in tftp server.

Change-Id: I10ac1016e3dfe6a2fa11a0a67c5774b29c3df67a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-01-29 13:18:16 +05:30
Sasirekaa Madhesu
d57e5f977c ipq40xx: Adding support to DK06 board
This patch adds support to DK06_1_C1 board.

Change-Id: Ib4fcbdfe7e2e0ce08d5aa08aad4dc168c83a3583
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-01-22 01:44:31 -08:00
Sasirekaa Madhesu
c8af13c595 ipq40xx: Adding support to DK01-S1 board
This patch adds support to DK01_1_S1 board.

Change-Id: I4a97f809766513da05f167b48923986c0860384e
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-01-22 00:04:02 -08:00
Sasirekaa Madhesu
77907d6fd3 ipq40xx: Register SPI nor as mtd device
Registering SPI nor flash as mtd device was based
on 'spi_gpio' entry in dts, whereas it will be done
based on 'spi_nor_available' in this patch as spi_gpio
entry is not required in some of the SPI nor
supported boards.

This patch also enables the spi nand support
in DK04-c5 board.

Change-Id: I2d70a6c108321d0f504daab7bc4e74739499582a
2018-01-18 12:09:39 +05:30
Linux Build Service Account
a6319f1486 Merge "ipq806x: fix i2c issues on AK" 2018-01-10 08:36:56 -08:00
Gokul Sriram Palanisamy
e1b9106107 ARM: qca: Skipping u-boot prompt during crashdump
If crashdump magic is found, should not allow user
to access u-boot prompt as tz will be in unsecure state.

Change-Id: Icdc94c33fb87664857bafa981950f9768794cf11
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-01-10 04:27:44 -08:00
Linux Build Service Account
e85f60b2d8 Merge "ipq: qca: move smem_ram_ptable structure to board specific" 2018-01-09 03:18:37 -08:00
Antony Arun T
07f112afaf ipq806x: fix i2c issues on AK
This patch fixes the issues in below i2c commands.
i2c probe , i2c md and i2c mw commands.

Change-Id: I3dd99e8846452b20a71b0664d325b309f3564579
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-01-09 00:11:38 -08:00
Rajkumar Ayyasamy
8d368edb1a ipq40xx: enable SPI NAND support
This patch enables SPI-NAND support for DK and making
chip select gpio configurable from DTS.

Change-Id: I2ca7d3021fa27da1d83e2a787a1dc626919124f8
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-08 20:31:35 +05:30
Kathiravan T
083a3f7efb ipq: qca: move smem_ram_ptable structure to board specific
ipq806x has different alignment of smem_ram_ptable structure when
compared to ipq40xx / ipq807x, which leads to fetching of wrong
information.

This patch addresses the issue by moving the above structure to
board specific.

Change-Id: If7bf2fc54243fc38d1b0a5c9e6f6ba6f9641c700
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-01-04 20:52:52 -08:00
Sasirekaa Madhesu
cc3573b68a ARM: qca: dts: Adding support for DK04 and DK07 boards
Adding support for DK04-C2,C3,C4,C5 and
DK07-C1,C2,C3 boards.

Change-Id: I2727645086328331deffd63849bedbf119d163c8
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-01-04 02:29:30 -08:00
Linux Build Service Account
f2d892333f Merge "ipq40xx: move to spi dma driver from fifo driver" 2018-01-03 10:35:24 -08:00
Rajkumar Ayyasamy
d96ce76277 ipq40xx: move to spi dma driver from fifo driver
Enabling spi dma driver for ipq40xx. This patch
also enables rx and tx pipe configurable from dts.

Change-Id: Id6009f6e9863ab2cdf8b105461d62aa68e3d004b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-03 04:34:54 -08:00
Gokul Sriram Palanisamy
e5b2b114f8 qca: psci: Added support to enable secondary cores
Change-Id: I1211577b7bbaf3fefba3613e46d25c7724e4d555
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-01-02 02:20:45 -08:00
Kathiravan T
2e4f4226e6 ipq806x: enabled USB support
Change-Id: I621d9de5c33dc78fb8121194eb1560ac817afe7a
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-27 09:32:30 +05:30
Sham Muthayyan
bbfe68e787 ipq807x: Enable Ethernet for HK06
Change-Id: I78571834387d12f84b979b34809b4c817f014ab6
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-13 19:52:55 +05:30
Vasudevan Murugesan
46632823a3 Revert "ARM: qca: Skipping u-boot prompt during crashdump"
This reverts commit 7e12e80ba8.

Change-Id: Ib5b47336577e84a4033e8bdb079f34939e5045df
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-12-12 16:03:12 +05:30
Linux Build Service Account
6c497bab12 Merge "ipq807x: fix compilation issue" 2017-12-07 00:15:34 -08:00
Linux Build Service Account
3db4cdde4d Merge "ipq806x: Add PCIE entries for AP148 board" 2017-12-07 00:15:32 -08:00
Gokul Sriram Palanisamy
bda1a9d8a9 ARM: qca: Added check for dcache status
Added check for dcache status before flushing.

Change-Id: I69462aa7852f96611e663acdf43aecd005a50c38
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-12-04 14:59:18 +05:30
Kathiravan T
a12f313e9c ipq806x: Add PCIE entries for AP161 board
Change-Id: If4da38e78d11c9fbdfce4967063462d5226e9098
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-04 11:01:59 +05:30
Sham Muthayyan
d1dda6d82a ipq806x: Add PCIE entries for AP148 board
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
(cherry picked from commit 8adef25b7860495f38e7197a864253e903c28e1a)

Change-Id: Iff345e8e0375f452fdd7ac26aab7c547515a1f57
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-04 10:39:25 +05:30
Sham Muthayyan
b18b57ef52 ipq806x: Add PCIE clocks for ipq806x
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
(cherry picked from commit 8428307000130587e3676cfd5a096a970d46a380)

Change-Id: I3a8a1f5f7bbb791a036110babe6fc9e4bccf5f03
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-04 10:35:40 +05:30
Sham Muthayyan
e4217213f7 ipq807x: Add QSGMII mode support
Change-Id: Ic952513f482590a66341d88606ad7da5d2c405a7
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-29 17:00:24 +05:30
Sham Muthayyan
55ed6cf5a5 ipq807x: Remove edma_cfg entry
Change-Id: I72f08cb03b8a7cff9eb5c0b1a1cbd8d17797b820
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-26 21:34:59 -08:00
Linux Build Service Account
fb60095895 Merge "ARM: qca: moving function get_smem_spi_addr_len specific to core" 2017-11-24 06:37:06 -08:00
Gokul Sriram Palanisamy
7e12e80ba8 ARM: qca: Skipping u-boot prompt during crashdump
If crashdump magic is found, should not allow user
to access u-boot prompt as tz will be in unsecure state.

Change-Id: I081e84eceada7ffe72d9b4fa4f0425535e4aabde
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-11-19 20:30:28 -08:00
Rajkumar Ayyasamy
20c19839b0 ARM: qca: moving function get_smem_spi_addr_len specific to core
Change-Id: I45c8c8bfe549998e96e2054c009b41ddbdd3a587
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-11-15 18:27:20 +05:30
Sham Muthayyan
d7c561d228 ipq807x: Print the spi address length info
Print spi 3 byte address by default if the
SMEM_SPI_FLASH_ADDR_LEN ID is not passed in smem.

Change-Id: I6b55401adb89a1341130465ae307c30901ce7895
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-06 18:51:22 +05:30
Vasudevan Murugesan
7fd4f44ace ipq807x: mmc: Enabled SDHCI ADMA support
This patch enables SDHCI mode and also supports
data transfer using ADMA method.

Change-Id: Ia3187fec9024ad0972ca720cf0b9ddc6a59b906c
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-11-03 02:52:37 -07:00
Sham Muthayyan
7056e90335 ipq807x: Add the Aquantia support in hk01-c2, hk02, db-hk01 boards
Change-Id: I40b3b761ce03121e764eaa51cbea44c833f17414
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-01 06:01:24 -07:00
Sham Muthayyan
db4516262a qcom: nand: Issue the Reset command before probe
Reset command must be the first command issued to all
targets after the NAND flash device is powered on.

Change-Id: I617dc5b0ad8d72705dcf20f1cb554134b166e533
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-25 23:45:34 -07:00
Sham Muthayyan
921da8d0b2 ipq807x: Add SMEM_SPI_ADDR_LEN support for SPI flash
This SMEM type is to determine the spi flash addr is in 3 byte
or 4 byte.

Change-Id: I705a9c5c6f760b93e112a873ead41cd76520501b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-25 16:53:30 +05:30
Gokul Sriram Palanisamy
09628e67ad ipq8074: Support for TZT execution
Change-Id: I59a1659893783db9dec8b23c53c34ba7b87f83b0
Signed-off-by: Gopinath Sekar <gsekar@codeaurora.com>
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-16 09:54:28 +05:30
Gokul Sriram Palanisamy
f9ad5ac9d7 ipq807x: Modified scm calls to support both 32 bit and 64 bit
Change-Id: Iee99423239f7de49a9fc7a4c2e6244df385f5f09
Signed-off-by: Gopinath Sekar <gsekar@qti.qualcomm.com>
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 04:46:15 -07:00
Gokul Sriram Palanisamy
e0e7c2116a ARM: dumpqca: Added entry for secure boot
Added a separate dumpinfo entry for
Secure boot to skip secure region.

Change-Id: Ib3836a851e8b0603a9c08013de293dcbe8e3c0fb
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 04:45:57 -07:00
Gokul Sriram Palanisamy
c6b251a55e ARM: qca: Included dynamic IMEM dump address support
NSS-IMEM region is copied to a dynamic address
region in DRAM during kernel crash to avoid
NSS dump corruption.
This patch includes support to save the NSS dump
from the dynamic DRAM region to file in host machine.

Change-Id: I6131da890dc8bde382a3d2511ea930cd76c1f79e
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2017-09-22 01:21:44 -07:00
Sham Muthayyan
36d71f4217 ipq807x: Enabled the device entries for UXSGMII and PSGMII mode
Change-Id: Iaaf784bd12aaf6af5836ae021d36777e569d1d01
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:45 -07:00
Sham Muthayyan
643f0acddf ipq807x: Enabled the 8033 phy support for DB-HK02
Change-Id: Ifa9fcb7ee3f9263e97d81dd8ea984a2c9923af2a
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:00 -07:00
Sham Muthayyan
20da321f4a ipq807x: Enabled the 8033 in DB-HK01 board
Change-Id: I3ad840997473ae41a5383e42834d1e9ce116af95
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:23:55 -07:00
Saravanan Jaganathan
3a9f14f1e6 ipq807x : Dcache fix for DDR more than or equal to 3GB
Change-Id: Ia9eccd72cd2c721517d0dfedc5783be8f59fe30a
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2017-08-29 22:47:53 -07:00
Linux Build Service Account
39b207217d Merge "ARM:cache-cp15: Set Domain Access Control Register" 2017-08-22 20:16:26 -07:00
Gokul Sriram Palanisamy
914c8702bc ipq807x: dts: Added devicetree for HK01-C2 board
Change-Id: Ic175f0737c08579220945e0abecfb9ab7b968518
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-22 14:50:53 +05:30
Gokul Sriram Palanisamy
fd0bc4b933 ARM:cache-cp15: Set Domain Access Control Register
A processor can execute instructions from a memory
region only if the access permissions for its
current state permit read access, and the XN
bit is set to 0.

The domain access is to be set as "clients"
for proper functioning of XN bit.

Change-Id: I86daffa828fa7b2fa365e358ef7042630ab98d60
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-22 02:01:19 -07:00
Gokul Sriram Palanisamy
9dc890a648 ipq807x: Reset operation through PSCI
Change-Id: Ib1f2e8f7990101aaa48c3bc259ec293008efca02
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-17 00:02:58 -07:00
Gokul Sriram Palanisamy
fbc358204d ARM: eMMC: Updated number of alternate partitions
Updated number of alternate partitions and
alternate partition data structure to match
smem entry.

Change-Id: I62484e369ed3d35037237fde2d71f9af045e438a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-10 19:00:47 +05:30
Manoharan Vijaya Raghavan
5ed3415978 ipq807x: timer: Add get_ticks() and get_tbclk() API
get_ticks() will return the timer counter value.
get_tbclk() will return the timer frequency.

Change-Id: Ib698f1c1d58403ae22381b6de8c6518beb4c34cf
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2017-08-09 07:37:25 -07:00
Linux Build Service Account
36eece43ac Merge "ipq807x: Change the I2C speed to 400KHz" 2017-08-04 08:02:17 -07:00
Sham Muthayyan
d6372425b9 ipq807x: Change the I2C speed to 400KHz
Change-Id: I5498e07c18d44e07a93d81ffbbf3d40eb3ba2e66
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-08-04 01:34:15 -07:00
Gokul Sriram Palanisamy
4e88bbf154 ARM: qca: scm_call: Added fuseipq support
Added scm_call wrapper to support fuseipq
command to work with 64 bit scm_call.

Change-Id: Ie1fd2925e9f7ed5b3eb57eb44b1c360d0d7de916
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-03 18:25:47 +05:30