Commit graph

36110 commits

Author SHA1 Message Date
Rajkumar Ayyasamy
ffeea6dd1e ipq6018: free ubi ptr to avoid memory leak
This patch will free the ubi volume and ubi
object  memory

Change-Id: I4151fc70efefbf338123a734f2abcbc48e440444
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-10-30 15:42:13 +05:30
Vandhiadevan Karunamoorthy
fd7d21dd13 ipq5018: Add cache support
Change-Id: Ib4388e63da3f9a3ef7cced5d7485df49aef62f53
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-10-22 03:11:35 -07:00
Vandhiadevan Karunamoorthy
bd904fe2f4 ipq5018: Modify DDR base address to 0x40000000
Change-Id: I6a5a62b88affa9514df8ebf2df3eb36f88943c4d
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-10-21 16:18:48 +05:30
Linux Build Service Account
5cab6b814f Merge "ipq5018: Add spi nor support" 2019-10-18 14:40:39 -07:00
Linux Build Service Account
0ac02eab14 Merge "pack: Add ubinizing support for ipq5018" 2019-10-18 14:40:38 -07:00
Vandhiadevan Karunamoorthy
73712e5b7d ipq5018: Add spi nor support
Change-Id: I1191f2cab63f09fa9c69f417d9cd3050e7a928e3
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-10-17 23:08:48 +05:30
Linux Build Service Account
e75088ff88 Merge "qca: ipq5018: Adding support for IPQ5018" 2019-10-17 07:56:59 -07:00
Pavithra Palanisamy
766b714a45 pack: Add ubinizing support for ipq5018
Change-Id: I730827fde904c354c65b5aa5c9b31c015c22ccb0
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-10-17 04:10:09 -07:00
Pavithra Palanisamy
eae0db2a4a pack: Add support to pack ipq5018 single-images
Change-Id: I8dda94e43f478a5cf4de497b7dd4c25fa912c7fa
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-10-17 04:07:26 -07:00
Vandhiadevan Karunamoorthy
5951991989 ipq5018: Fixing whitespace errors
Change-Id: I8c3c6cb436344cec2211cd53281d757e68bc0a6b
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-10-17 13:48:41 +05:30
Linux Build Service Account
339eb45ebd Merge "ipq807x: Detect NOC error" 2019-10-16 21:06:29 -07:00
Vandhiadevan Karunamoorthy
474077431c qca: ipq5018: Adding support for IPQ5018
Added config, dts and initial board support code for ipq5018

Change-Id: I70c0432623e57430187a7f432033056e19be8e5b
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-10-10 21:55:42 +05:30
speriaka
7b44c8c9b2 ipq: Move pcie and usb deinit from booti to bootm
This is because we will be needing pcie and usb deinit
during bootm.

Also during booti, bootm will be called, so that time
also this deinit will be called.

Change-Id: I81eb43bf6db89a3f5600ce5327042a5aab0bb437
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-10-08 11:18:35 -07:00
Prasanna Kumar Thoorvas Samyrao Muralidharan
4c904e23a5 ipq807x: Detect NOC error
Detect NOC error and reset the board.

Change-Id: Id03e7c58d5ea47ef7fe508f0598fd57b80cba1dd
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2019-10-01 04:03:28 -07:00
Sham Muthayyan
107d511bdc Revert "ipq807x: fat: Fix overflow issue"
This reverts commit 8791ff3dab.

Change-Id: I03af0ce35aa2df9e381b98c3842e4b88fbd35e1d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-09-30 18:33:03 +05:30
Antony Arun T
8d977bd916 Revert "ipq: bootm: do pcie and usb deinit in bootm path"
This reverts commit 7bec79fb7c.

Change-Id: Iec49eff0936d8af6fd093518522db8095fb6ef1c
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-26 13:44:22 +05:30
Linux Build Service Account
8523967598 Merge "ipq6018: take ubinize from src path instead of current path" 2019-09-20 22:09:08 -07:00
Linux Build Service Account
f8e59efd09 Merge "ipq: bootm: do pcie and usb deinit in bootm path" 2019-09-20 17:11:57 -07:00
Rajkumar Ayyasamy
a636319503 ipq6018: take ubinize from src path instead of current path
Change-Id: I6613f29d2c4b867b9232068c0849cd53a94d84fb
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-09-20 15:35:39 +05:30
Linux Build Service Account
becd07ff6b Merge "reset: Use correct scm id for pshold" 2019-09-19 09:13:29 -07:00
Antony Arun T
7bec79fb7c ipq: bootm: do pcie and usb deinit in bootm path
Change-Id: Ic49f292b6c1ce9497dbab0f36a0d46e89300f2cb
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-18 15:27:51 +05:30
Linux Build Service Account
0a17e06f1e Merge "ipq6018: Disable secure pil if 'aft' env variable is set" 2019-09-17 14:41:00 -07:00
Prasanna Kumar Thoorvas Samyrao Muralidharan
dcfb86f9d9 reset: Use correct scm id for pshold
Incorrct scm id was used for pshold. Use correct value instead.

Change-Id: Ife5c5d73cd007865234e4c899304a861f6c4ea9d
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2019-09-17 03:24:10 -07:00
Linux Build Service Account
17d1a6da32 Merge "ipq807x: added support for HK10 external reference clk select." 2019-09-16 04:11:43 -07:00
Antony Arun T
5594635943 ipq6018: Disable secure pil if 'aft' env variable is set
Change-Id: I5415001eddfa121dc580a8cb525e383a6fe0f7c2
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-16 00:43:21 -07:00
Linux Build Service Account
75ec5dacf5 Merge "ipq6018: ubinizing APPS images in pack script" 2019-09-14 08:08:42 -07:00
Linux Build Service Account
bcbb214a6e Merge "ipq6018: add support to flash individual ubi volumes" 2019-09-14 08:08:41 -07:00
Tushar Nimkar
0206407f5f ipq807x: added support for HK10 external reference clk select.
By default UNIPHY PLL takes 48MHz, now this need to take  50M
from external oscilator input pin for HK10. So need to change
the PLL ref sel.

Affected only for HK10. Tested on Reworked HK01 board with 50MHz
oscillator connected to USGMII_OSCILL_50M pin

Change-Id: Ie90fdbbfbfc700a30d9ada895baa1a170db25888
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2019-09-13 21:36:36 +05:30
Linux Build Service Account
79958aaa31 Merge "ipq807x: dts: Removed DB board support" 2019-09-13 05:12:31 -07:00
Rajkumar Ayyasamy
04d99019b2 ipq6018: add support to flash individual ubi volumes
Change-Id: I660879ffa28437eb88faa04ee61d329c224d16f9
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-09-13 15:13:08 +05:30
Rajkumar Ayyasamy
789206700c ipq6018: ubinizing APPS images in pack script
Change-Id: I55418f6f041d65b7fde30381b49110ada934fb2c
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-09-12 22:39:04 -07:00
Saravanan Jaganathan
00124dca56 ipq807x: dts: Removed DB board support
Out of space, so removing for now.

Change-Id: Iacaa5e6c64ce6dc9a8a92230cccc396cf1b3d928
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2019-09-12 22:24:44 -07:00
Linux Build Service Account
150ab01d79 Merge "Revert "tools: pack.py: ipq6018: Add support for NAND AC image"" 2019-09-12 17:03:26 -07:00
speriaka
e6dbd85747 Revert "tools: pack.py: ipq6018: Add support for NAND AC image"
This reverts commit 466666e8d3.

Change-Id: Icb705096f5edec0eefa7a9a68c89600b6b3f9d2d
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-09-11 23:53:34 -07:00
speriaka
94a7c06f0d ipq6018: Add env variable for dload disable
Change-Id: Ibde00d0f01813787a9a1113299ff107ce88fe91e
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-09-11 23:52:50 -07:00
speriaka
98e4409f87 ipq6018: Handle crashdump disabled case in reset flow
When crashdump is disabled, kernel will set the dload_magic
as 0x40. When dload magic is 0x40, u-boot will clear the
magic and do warm/cold reset.

Change-Id: I4e5ed215419ba550776993f8a1772ad30f1a27e4
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-09-11 23:52:44 -07:00
Linux Build Service Account
3c7fc02e90 Merge "ipq6018: reset: Do pmic reset if "atf" env variable is set" 2019-09-11 05:38:31 -07:00
Antony Arun T
bc59f37c9b ipq6018: reset: Do pmic reset if "atf" env variable is set
Change-Id: Ie8e1f1907841cac52c52005209bbcec5690de4de
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-10 18:34:59 +05:30
Saravanan Jaganathan
de8cf404e7 Revert "ipq9807x: dts: Removed unsed HK06 and HK10"
This reverts commit 4ecd8ad83d.
Change-Id: I0efb305d3c1f91d25691a814aaebc7e683a823c5
2019-09-09 23:04:29 -07:00
Antony Arun T
57117bb939 ipq6018: reset: patch-up kernel dts with "qca,coldreboot-enabled"
patch-up kernel dts file with "qca,coldreboot-enabled" if atf env
variable is set in uboot.

Change-Id: If4988b1828b162499b0dc76f99375a0ba6a9abf4
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-06 10:36:41 +05:30
Linux Build Service Account
5f8ed3222a Merge "ipq6018: i2c: enabling i2c0 support in cp01" 2019-08-31 04:35:54 -07:00
Linux Build Service Account
ff9c471f62 Merge "qca: arm: fix compiler error when eMMC is disabled" 2019-08-29 18:38:00 -07:00
Rajkumar Ayyasamy
cebcfa59e1 qca: arm: fix compiler error when SPI-NOR is disabled
Change-Id: Iec996fc670fd28d467b81afc0ebfcba07fd82b60
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-08-26 04:00:09 -07:00
Rajkumar Ayyasamy
90afafbdb8 qca: arm: fix compiler error when eMMC is disabled
Change-Id: I24aadfb70efbe48bb5d33c76ed29a873b0975b2b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-08-26 03:59:57 -07:00
speriaka
32d259be7a Revert "drivers: net: ipq6018: Remove 8033 port support"
This reverts commit 28be68e3b7.

Change-Id: Ie93dfa039e41c3eb9db6fecbfe0449832422c189
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-23 14:50:10 +05:30
Antony Arun T
90d693cf7d ipq6018: i2c: enabling i2c0 support in cp01
Change-Id: If971fd108edf8822d5f8130fb205c65b0c7805e6
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-08-23 00:50:10 -07:00
Linux Build Service Account
21889e03fd Merge "drivers: net: ipq6018: Update AQ ETHPHYFW loading method" 2019-08-22 19:06:47 -07:00
Linux Build Service Account
b8845f1c1f Merge "ipq807x: dts: Removed PCIe1 for HK01-C5" 2019-08-22 19:06:45 -07:00
speriaka
d99e73cef8 drivers: net: ipq6018: Update AQ ETHPHYFW loading method
This patch adds malloc for loading ethphyfw instead
of loading it in RAM Address.

Change-Id: I0f39d7b61b7675667201a218e5e7830910472b9c
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-18 22:06:11 -07:00
Sham Muthayyan
2b2f744a8d ipq807x: Add delay for Get descriptor
REQUEST SUMMARY
Setup Data 8006000200000900 Direction Device-to-host
Type Standard Recipient Device
bRequest GET_DESCRIPTOR wValue CONFIGURATION, Index 0
wIndex 0x0000 wLength 0x0009

DECODING INFORMATION

  Field Length(bits) Offset(bits) Decoded HexValue Description
  bRequest     8     8     GET_DESCRIPTOR     0x06     bRequest HexVal: 0x06
  wValue     16     16     CONFIGURATION type, Index 0     0x0200     Type of Descriptor
  wIndex     16     32     0x0000     0x0000     index info

DEVICE_QUALIFIER
  Descriptor(128 bytes) Field  Length(bits) Offset(bits)   Decoded HexValue Description
  bLength     8     0      0x80      0x80     Descriptor size is 128 bytes
  bDescriptorType     8     8      0x06      0x06     DEVICE_QUALIFIER Descriptor Type
  bcdUSB     16     16      0x0200      0x0200     USB Specification version 2.00
  bDeviceClass     8     32      0x00      0x00     Each interface specifies its own class information
  bDeviceSubClass     8     40      0x00      0x00     Each interface specifies its own Subclass information
  bDeviceProtocol     8     48      0x09      0x09     Protocol code = 9
  bMaxPacketSize0     8     56      0x00      0x00     The Maximum packet size 0 for endpoint zero is invalid! (Only 8,16,32,or 64 are valid)
  bNumConfigurations     8     64      0x09      0x09     The device has 9 possible other-speed configurations

The Transcend device fails for get configuration descriptor length.
Adding a delay fixes the issue.

Change-Id: Ic337e94e6342163e57e652781544709d0c32edcc
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-08-14 04:37:42 -07:00