Commit graph

9219 commits

Author SHA1 Message Date
Linux Build Service Account
6dc756d7a8 Merge "ipq40xx: Disable audio clock registers in u-boot" 2018-03-08 08:06:03 -08:00
Linux Build Service Account
27f397f5d2 Merge "ipq40xx: Add properties to gmac DT nodes for link detection" 2018-03-08 08:06:00 -08:00
Linux Build Service Account
7ca102793f Merge "ipq40xx: Enabled LAN port ID handling NSS and DK Switch" 2018-03-08 08:05:59 -08:00
Sasirekaa Madhesu
0f64876e84 ipq40xx: Disable audio clock registers in u-boot
Change-Id: I02386fb0a56d100f2d9bc63e242e6c8ac5a8c1d2
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-07 15:32:58 +05:30
Sasirekaa Madhesu
78c2c9bea7 ipq40xx: Add properties to gmac DT nodes for link detection
Modified the existing function to create and set values for
properties which is used for link detection in LAN port
ID handling.

Change-Id: I94cf0acf17b26567498c9f9c03a91e4e69519876
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-07 12:50:42 +05:30
Sasirekaa Madhesu
2d61b1f569 ipq40xx: Enabled LAN port ID handling NSS and DK Switch
Enabled a Function that patched the dtb with ethernet and gmac values
in the edma node.

Change-Id: Iee6495ab6e5336791419c79f4d93222f85962d3e
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-07 12:34:25 +05:30
Santan Kumar
94fb410d53 qca: fix kw issues
Change-Id: I25b62362e28ee64329a9a587491e69cf0e358334
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-03-06 15:27:44 +05:30
Kathiravan T
6186c29910 ipq806x: Reset S17C switch during soft reboot
In case of AP148 , the S17C switch has to be additionally reset using
GPIO 63. This is done for soft reboot cases.

This change is ported based on commit e1c6cd2c07

Change-Id: I31ce8a34797ae353035a7b3fa05ad2783f78aece
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-03-01 08:14:17 -08:00
Linux Build Service Account
480c11c94d Merge "ipq806x: Dump CPU1 register contents as part of crash dump" 2018-03-01 06:00:53 -08:00
Linux Build Service Account
6a11f0db3f Merge "ipq806x: Add "cpu_type" to root node of the devicetree" 2018-03-01 03:30:01 -08:00
Antony Arun T
a3303e7b23 ipq806x: Dump CPU1 register contents as part of crash dump
Invokes TZ (via scm call) to pull Core-1 out of reset if
crash magic is set. TZ saves the register contents in the
NSS TCM, which is saved from U-Boot as CPU1_REG.BIN as part
of the crash dump saving procedure.

Change-Id: I8e1404fb354a47ae69d70d13a79f45bd4eb1c450
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-01 10:27:30 +05:30
Linux Build Service Account
36268c264d Merge "ipq40xx: Enable USB device mode through dts patching" 2018-02-27 23:40:27 -08:00
Linux Build Service Account
3174e97d20 Merge "ipq40xx: Replace sprintf with snprintf" 2018-02-27 23:40:26 -08:00
Linux Build Service Account
5de0f7a7fd Merge "ipq40xx: Reduce time b/w qca8075 assert and deassert to 1ms" 2018-02-27 23:40:24 -08:00
Linux Build Service Account
eaf20104f1 Merge "ipq40xx: Enabled Ethernet initialization for DK07-C2 board" 2018-02-27 23:40:22 -08:00
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
Sasirekaa Madhesu
75d4a7a9c2 ipq40xx: Enabled Ethernet initialization for DK07-C2 board
Change-Id: I9aec449ce94e99a2d641fc6adb6c1bb09cf0d6e6
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-22 21:05:54 -08:00
Linux Build Service Account
48304f7987 Merge "ipq806x: gmac: Fixed buffer overflow while reading ART" 2018-02-22 08:00:11 -08:00
Sasirekaa Madhesu
da5968ecbd ipq40xx: Enable USB device mode through dts patching
This commit enables USB device mode through dts patching.
To enable 'setenv usb_mode device' to be executed in u-boot 
environment before booting the kernel.

Change-Id: I2bcba292a514d04eed7e941a7feba00600fc1fc9
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-22 17:34:07 +05:30
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
Sasirekaa Madhesu
857c5be7b4 ipq40xx: Reduce time b/w qca8075 assert and deassert to 1ms
Change-Id: If7f6bdffd981e23d1b33541199f5f00c2ff36af2
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-20 11:51:11 +05:30
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
Sasirekaa Madhesu
c5ffa908c0 ipq40xx: Replace sprintf with snprintf
Change-Id: I2f1d31901ce4c4b15dad9e25265597518d4b4122
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-08 12:40:04 +05:30
Santan Kumar
6d18b009c7 Revert "qca: restricts 'runmulticore' command on secondary cores"
This reverts commit a3dd633252.
2018-02-07 02:06:29 -08:00
Rajkumar Ayyasamy
f6cdfa3e0c ipq806x: Add "cpu_type" to root node of the devicetree
Change-Id: I824f9091013ee1cbdb5b511845cb174115c8dfac
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-02-07 13:01:47 +05:30
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