Commit graph

37165 commits

Author SHA1 Message Date
Sasirekaa Madhesu
b3394e6891 ipq40xx: Replace strcpy with strlcpy
Change-Id: I0b1a6d66e7fa99f62dbd1d08602026fbb128694a
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-02 16:30:40 +05:30
Linux Build Service Account
932c29bf3c Merge "sysupgrade: Add SBL_NAND_PREAMBLE if preamble bytes exist in image" 2018-03-02 02:04:54 -08:00
Linux Build Service Account
8775f69613 Merge "sysupgrade: Add support to process SBL for ipq806x nand boot" 2018-03-02 02:04:54 -08:00
Rajkumar Ayyasamy
29c1a71b49 ipq806x: Enabled DEVICE_NULLDEV
Enabled DEVICE_NULLDEV to redirect unwanted console prints.

Change-Id: Ic6f7527ced1adb635a41c4f293f3fc06c5d4b623
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-03-02 14:32:27 +05:30
Rajkumar Ayyasamy
a94cce3a6d ipq40xx: Enabled DEVICE_NULLDEV
Enabled DEVICE_NULLDEV to redirect unwanted console prints.

Change-Id: I0248ba05b959171a534e4ecd8441e6462968813f
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-03-02 14:28:04 +05:30
Avinash Pandey
745ead5b92 sysupgrade: Read the files whose names starts with section type
Currently we are reading the .bin files who are having the type
in their image names, but this has problem when the image type
is overlapping in two file names ex. wififw_ubi.bin and ubi.bin.
To avoid this problem, we will take files whose names starts
with our image type.

Change-Id: Ib3ab64fb2bbf5c9c59b1ec644c409dee31be77a1
Signed-off-by: Avinash Pandey <avinasv@codeaurora.org>
2018-03-02 12:57:59 +05:30
Pradeep Das
02f249949e USB: xHCI: Fixed abort_td failure for usb start command
With specific USB storage device, usb start command causing
system reboot. This change avoids queuing any new URB on a
halted endpoint.

The failure log is given below:

------------------------ ERROR MESSAGE ---------------------------
scanning bus 1 for devices...
WARN halted endpoint, queueing URB anyway.
Unexpected XHCI event TRB, skipping... (87244c70 00000000 13000000 01008401)
BUG: failure at drivers/usb/host/xhci-ring.c:489/abort_td()!
BUG!
------------------------------------------------------------------

Change-Id: I0735b89832416ebd4b8d80129572afec4bb950a4
Signed-off-by: Pradeep Das <pkdas@codeaurora.org>
2018-03-01 22:09:01 -08:00
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
Kathiravan T
ea17792263 ipq806x: Fix the 8033 mii init
This change is ported based on commit b83c56c4d4

Change-Id: Ia4cdf26368d238ea3fcdb808f1446f010408a78c
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-03-01 08:13:41 -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
98f2ad5788 Merge "ipq40xx: Add support for Micron 1GB NAND flash" 2018-03-01 06:00:38 -08:00
Linux Build Service Account
a702837d3a Merge "ipq807x: Removing unused node from HK07 DTS." 2018-03-01 03:30:03 -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
Linux Build Service Account
f88ff6844b Merge "tools: Added ipq806x packing support" 2018-03-01 03:30:00 -08:00
Rajkumar Ayyasamy
5af0067f28 tools: Added ipq806x packing support
Change-Id: Id9becc59f3ecde2a262eaf91882c21650a6f90fa
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-03-01 11:25:59 +05:30
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
Nikhil Prakash V
315d0023f3 ipq807x: Removing unused node from HK07 DTS.
Removing I2C and PCIe nodes from HK07 Uboot
DTS as these are not used.

Change-Id: I6ad642fe574b7cd1bd1369cd8baa92d6ccdcad00
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-02-28 17:55:25 +05:30
Linux Build Service Account
220d52fc46 Merge "qca: Modify pack.py script" 2018-02-28 03:32:33 -08:00
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
Linux Build Service Account
e32fb8ece9 Merge "ipq40xx: Add maximum timeout for BAM interrupt" 2018-02-27 23:40:21 -08:00
Sasirekaa Madhesu
256f5ce7d1 ipq40xx: Fix for USB 3.0 detection
During usb start, all the hub initialization happens,
before scanning the bus for devices. In DK, bus 0 has 
2 NbrPorts and bus 1 has 1 NbrPorts. Since there are
two ports(USB0 and USB1) available, such initialization 
overwrites the NbrPorts of the hub descriptor. Hence it
fails to detect the USB 3.0.

This patch modifies the logic to scan for devices in the 
hub before initializing the next hub.

Change-Id: I1071d7c38a896864fe15d8b07bdb2a84ddcac7bf
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-28 11:37:30 +05:30
Linux Build Service Account
861e0d2938 Merge "drivers: phy: support AQR111B0 chip." 2018-02-27 11:49:29 -08:00
Linux Build Service Account
861f9900d7 Merge "tools: add snapshot of pack.py tool" 2018-02-27 09:08:38 -08:00
Liu Zhongjian
6a4904ef88 drivers: phy: support AQR111B0 chip.
Change-Id: I238e5263ff9e194f958fd6ef217c26654513216e
Signed-off-by: Liu Zhongjian <zhongjia@codeaurora.org>
2018-02-27 04:08:03 -08:00
Linux Build Service Account
9dbc4f95f1 Merge "ipq40xx: nand: Initialize nand flash device before flashing" 2018-02-27 02:16:52 -08:00
Rajkumar Ayyasamy
72d8969c0e tools: add snapshot of pack.py tool
This is a snapshot of the pack.py as of uboot-1.0
commit:

1fb1d5910acd0cf3950084b5d10b443af9803a05(ipq40xx:
Write actual file size in nand in case of NOR+NAND boot)

Change-Id: I85a3ffef3a17c0989d315777ff70c8e03114b6b7
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-02-26 22:53:12 -08:00
Nikhil Prakash V
d44c0cb818 ipq807x: Removing Aquantia PHY node from HK07 DTS.
Remove aquantia PHY specific properties from HK07 uboot DTS.

Change-Id: Id64c86a4163dd275a7c8e0dd44ebbc5f0a2e46a6
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-02-26 20:55:27 -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
Linux Build Service Account
64b3c8f03a Merge "Sysupgrade: Add signature certificate size check as warning." 2018-02-26 00:14:45 -08:00
Linux Build Service Account
cc3d85c7ef Merge "runmulticore: Added cache flush before enabling" 2018-02-23 22:30:24 -08:00
Linux Build Service Account
6aca692685 Merge "Revert "dcache: Invalidated dcache before enabling"" 2018-02-23 22:30:23 -08:00
Linux Build Service Account
e7718e6193 Merge "SF: Bulk Erase command support for spansion" 2018-02-23 11:55:58 -08:00
Avinash Pandey
5432bb2a0b Sysupgrade: Add signature certificate size check as warning.
For ipq807x, signature certificate size is dynamic and it is not fixed.
Hence we will treat signature certificate size check as warning. 

Change-Id: I6528212aaf9297217b19cb34311fc96500a7f38f
Signed-off-by: Avinash Pandey <avinasv@codeaurora.org>
2018-02-23 19:52:13 +05:30
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
Gokul Sriram Palanisamy
80cea89e0e Revert "dcache: Invalidated dcache before enabling"
This reverts commit a3ee77558d.
2018-02-23 16:51:15 +05:30
Antony Arun T
4ca40fa90d SF: Bulk Erase command support for spansion
Change-Id: Ida70d167cafc6af823f31c660d108cc25be6edff
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-02-23 13:10:34 +05:30
Avinash Pandey
7eeddceddf Sysupgrade: Fixing kw issues in string functions.
This change replaces banned function namely, strncat and 
strncpy to strlcat and strlcpy respectively.

Change-Id: Ic02f59b29d1e58a937670f5e53dd1199cb55e53e
Signed-off-by: Avinash Pandey <avinasv@codeaurora.org>
2018-02-22 22:39:07 -08:00
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
d8c656785c Merge "ipq807x: Adding ESS node in Uboot DT for HK07" 2018-02-22 08:00:13 -08:00
Linux Build Service Account
dcf42096fc Merge "ipq806x: Added ar8033_gpio entry in AP160.2 board" 2018-02-22 08:00:12 -08:00
Linux Build Service Account
48304f7987 Merge "ipq806x: gmac: Fixed buffer overflow while reading ART" 2018-02-22 08:00:11 -08:00
Nikhil Prakash V
b4440573a6 ipq807x: Adding ESS node in Uboot DT for HK07
Support for ESS switch node in uboot device tree
for HK07.

Change-Id: I4f5e53a713cc8c257bbc5694c434a28625720062
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-02-22 19:16:30 +05:30
Pavithra Palanisamy
77ed38c1cd qca: Modify pack.py script
Add print statements to display the failure reason for flashing.

Change-Id: Ib355271bdef307f6a981b32738a1a4195dc979ec
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-02-22 18:03:48 +05:30
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
Balaji Jagadeesan
23dfc73b5b ipq40xx: nand: Initialize nand flash device before flashing
The DK01 board will be bricked if a nand image is flashed onto it.
Because it supports only nor and nor_plus_nand flash types.
So, this patch detects the nand flash before flashing.

Change-Id: I0e0ce2f4d72bcd6724847729170562068a00394d
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
2018-02-22 15:47:51 +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
Gokul Sriram Palanisamy
6cca4bdfa9 ARM: qca: Removed unused file hk_pack.py
Change-Id: I9a3df73a8a9523cc815f51c0a87052e34f0b593e
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-22 11:03:18 +05:30