Commit graph

9199 commits

Author SHA1 Message Date
Sham Muthayyan
469897d6d1 ipq807x: Fix malibu phy reset
Malibu phy reset doesnot happen, once the cache is enabled.
Fix the malibu phy reset sequence.

Change-Id: Iad69294fd92c9198b329e5d15d4b2e72e50fe426
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-02-26 03:03:51 -08:00
Gokul Sriram Palanisamy
2f6db324fb runmulticore: Added cache flush before enabling
Change-Id: I1b1470cdd6fc04700112f0f54e087f548baee29f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-23 16:51:30 +05:30
Linux Build Service Account
48304f7987 Merge "ipq806x: gmac: Fixed buffer overflow while reading ART" 2018-02-22 08:00:11 -08:00
Antony Arun T
b79f60774c ipq806x: gmac: Fixed buffer overflow while reading ART
Buffer overflow was happening during read from ART
partition. MMC reading API uses block count so this
patch allocates required size temp buffer and copies
the ethernet MAC address data from this temp buffer.

Change-Id: If9ad01f20651b1b6f48128abc8828f303cde003b
2018-02-22 12:14:45 +05:30
Linux Build Service Account
2c3843028a Merge "ipq40xx: Add ethernet support for DK07-C3 board." 2018-02-21 06:01:13 -08:00
Linux Build Service Account
b7435142c8 Merge "ipq40xx: Add DK01-C3 config support for Standard profile" 2018-02-19 06:04:02 -08:00
Linux Build Service Account
2a332b2c0c Merge " ipq807x: fixed secure pshold API name" 2018-02-19 06:03:59 -08:00
Saravanan Jaganathan
5fd15748ea ipq807x: fixed secure pshold API name
Change-Id: I448a1341bec82b1a35d671eb12b2ba94f29cdc1d
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2018-02-19 00:03:17 -08:00
Sasirekaa Madhesu
612713b37f ipq40xx: Add ethernet support for DK07-C3 board.
This patch enables ethernet initialization in
DK07-C3 board.

Change-Id: I70bf4dd2917b0fc02f937b236e68ebcb6b1c423c
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-19 12:02:27 +05:30
Gokul Sriram Palanisamy
19a90604e9 qca: cache: Enabled dcache on board initialization
dcache is enabled only during boot from flash.
During JTAG recovery, dcache_enable is skipped
to avoid cache issues in recovery environment.

Change-Id: Ie3003f67c787cbc6b88dc42017aeb2a9508d2ff9
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:40 -08:00
Gokul Sriram Palanisamy
9b5374d10a qca: Disabling dcache before scheduling secondary cores
Disabling dcache before scheduling secondary cores
and enabling it back after the cores are down.

Change-Id: I73011db903a0da1113d09fb8306b8d3f940ece60
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-16 04:56:25 -08:00
Antony Arun T
a87141b204 ipq806x: Enabled HW Watchdog
Change-Id: I0850c1082be7dcbd1301acca5ed345d6db72aa2e
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-02-12 16:18:59 +05:30
Linux Build Service Account
68f0e9fb64 Merge "ipq806x: Enabling pci for AP160 and Ap160_2xx board" 2018-02-08 18:36:16 -08:00
Sasirekaa Madhesu
9857b3461c ipq40xx: Add DK01-C3 config support for Standard profile
This patch is to support DK01-C3 dts which is required
for standard profile in linux 4.4 kernel.Linux 3.14 kernel
does not have DK01-C3, hence it uses DK01-C1 config.

Change-Id: I4afa8c4511e55f093b573cf42e04b0917ce7d0b4
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-08 18:40:41 +05:30
Rajkumar Ayyasamy
fd01d1b29b ipq806x: Enabling pci for AP160 and Ap160_2xx board
1. Added pci entries in AP160 and AP160_2xx dts

2. The wifi pcie card requires to be powered on from GPIO
pins. This patch also adds the same in AP160 dts file and
enable it during PCIe configuration.

Change-Id: Icd8f5741d5df38d46640c78a7475853e77b873a9
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-02-08 18:06:48 +05:30
Santan Kumar
bf90754ab4 qca: Add logic to restrict runmulticore command on secondary cores
Change-Id: Ibe1bf89614ddadb770cda2216b696152534daaf7
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-02-08 01:37:20 -08:00
Santan Kumar
6d18b009c7 Revert "qca: restricts 'runmulticore' command on secondary cores"
This reverts commit a3dd633252.
2018-02-07 02:06:29 -08:00
Linux Build Service Account
463c793088 Merge "ipq40xx: spi: Added support for GD25Q256" 2018-02-06 10:51:56 -08:00
Rajkumar Ayyasamy
8ac98b5fd9 ipq40xx: spi: Added support for GD25Q256
Change-Id: Iefc667c95558234e54111e6052f16e0f035b24ab
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-02-06 14:46:09 +05:30
Rajkumar Ayyasamy
34abc3d3aa ipq806x: pcie: Fix PCI 2.0 cards probing
This patch putting pci into reset and waiting
for 2ms.

Change-Id: Ied3863f50956f5c099f3c4c0ed7f2df55573ca0b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-02-05 19:57:45 +05:30
Antony Arun T
4b79b9c406 ipq806x: Clear L2 error status register before linux boots.
Previous pending L2 cache errors are cleared during the
cleanup phase before transferring the control to linux.

Change-Id: I3a54c64049135e150c2b49b0d6de1667511b6a14
2018-02-02 11:54:11 +05:30
Gokul Sriram Palanisamy
3ad3c2e50c QCA: Enable board reset after crashdump to flash
Added board reset command after crashdump to flash. Also,
updated with valid return values in do_dumpqca_flash_data function.

Change-Id: Ib89ee06cd6e34c0a56090284983534f107c97ea7
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-01-31 19:49:35 -08:00
Linux Build Service Account
d82fe7ce10 Merge "QCA: Crashdump data to flash" 2018-01-31 04:02:44 -08:00
Linux Build Service Account
66f395836e Merge "ipq807x: Added support for secure pshold" 2018-01-29 18:58:58 -08:00
Linux Build Service Account
39186094e7 Merge "ipq806x: make diagnostics feature configurable." 2018-01-29 14:06:25 -08:00
Linux Build Service Account
5836c01947 Merge "ipq40xx: make diagnostics feature configurable." 2018-01-29 06:31:37 -08:00
Rajkumar Ayyasamy
46bc61999d ipq806x: make diagnostics feature configurable.
This patch makes diagnostics feature configurable and
in the standard config diagnostics feature is disabled

Change-Id: Ib5478701075591369c14e1a4d1200d792e434df4
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-29 05:59:06 -08:00
Saravanan Jaganathan
216b4fdcfe ipq807x: Added support for secure pshold
Change-Id: Ie6369013611eabc6e67a30347cb0e9d87d3ce067
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2018-01-29 04:23:51 -08:00
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
Rajkumar Ayyasamy
5c5f733e6e ipq40xx: make diagnostics feature configurable.
This patch makes diagnostics feature configurable and
in the standard config diagnostics feature is disabled

Change-Id: Ie3ad2248446043744057a656dab03d44d1e005df
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-29 12:50:18 +05:30
Linux Build Service Account
ff83336bcd Merge "ipq806x: support to add the boot version to the device tree" 2018-01-25 03:30:48 -08:00
Kathiravan T
58da5b1a55 ipq806x: support to add the boot version to the device tree
Made the necessary changes to retrieve the boot version through
SMEM call and append the same to device tree.

Change-Id: I627b108935995212520794d12d6f9af64641a96f
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-01-24 22:22:41 -08:00
Kathiravan T
4d784a580a ipq806x: support to add the tz version to the device tree
Made the necessary changes to retrieve the tz version through
SCM call and append the same to device tree.

Change-Id: I890f82a4ec03bb9c24eccce09fdeba9d948e1c71
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-01-25 10:46:17 +05:30
Gokul Sriram Palanisamy
a3dd633252 qca: restricts 'runmulticore' command on secondary cores
Change-Id: Ia5f316476556b4cff97dd023d594beaaee939cc4
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-01-23 01:34:44 +05:30
Kathiravan T
747d931340 ipq806x: use proper partition for env varibales in eMMC
In eMMC flash, whenever we save the env variables, it is updated in
the wrong offset instead of using the APPSBLENV partition, which leads
to the system hang in the next reboot. This patch addresses the same.

Also, moved the function board_mmc_env_init to common/env.c, since
the same functionality is used across ipq806x/ipq40xx/ipq807x.

Change-Id: I4c446dad583089fb2515e13267aa7b4724c16fba
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-01-19 03:15:08 -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
Sham Muthayyan
47bbd2ea51 ipq: qca: Fixed AQ-FW for ipq40xx and ipq806x
The AQ-FW support is used only in ipq807x. Add the __weak for
ipq806x and ipq40xx boards.

Change-Id: If5b13b1a9c98d7b74decd15450377f8e866d33e2
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-01-16 15:05:01 +05:30
Linux Build Service Account
c2cf85a1ad Merge "ipq807x: usb: gadget: Restricting usb gadget device to work only on "high-speed"" 2018-01-10 19:36:55 -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
Tushar Nimkar
7f88586a6e ipq807x: usb: gadget: Restricting usb gadget device to work only on "high-speed"
This patch will change the default "super-speed" mode to "high-speed"
If 'usb_mode' is setting to "peripheral" in u-boot it will set with
"high-speed" as 'maximum-speed'. Changes are only for USB port 0.
Affected features : diag, USB console.

Change-Id: I60708cfb4706eea77f00cb5c2bedc7e7b77989f5
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2018-01-09 06:26:15 -08:00
Sham Muthayyan
897bc3b2a4 ipq807x: Fixed the AQ phy reset
Removing the delay for boot time.

Change-Id: Iab968986d58aa5bc930b7c03bb16f5b1041be3b1
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-01-09 06:17:13 -08:00
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
Linux Build Service Account
07e4cea9c0 Merge "qca: psci: Added support to enable secondary cores" 2018-01-03 07:33:07 -08:00
Linux Build Service Account
190a7c71c3 Merge "ipq40xx: Add SPI NAND support" 2018-01-03 04:36:58 -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
Rajkumar Ayyasamy
f44fe93184 ipq40xx: Add SPI NAND support
Change-Id: I74de22fcea6455f73f263672b72b30b796f6c820
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-02 14:57:16 +05:30
Gokul Sriram Palanisamy
8e2326232d Revert "ipq806x: use proper partition for env varibales in eMMC"
This reverts commit 6345e2888c.
2017-12-29 16:30:47 +05:30
Linux Build Service Account
adaaa17195 Merge "ipq806x: enabled USB support" 2017-12-27 15:35:42 -08:00
Linux Build Service Account
b2d362e64d Merge "ipq806x: use proper partition for env varibales in eMMC" 2017-12-27 07:53:53 -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