Commit graph

9623 commits

Author SHA1 Message Date
Sivaprakash Murugesan
6ea54bd348 runmulticore: disable console prints during cpu bringup
Printing on console while executing multi core command causes a race
condition in serial driver and results in data abort. Disable serial
console briefly during secondary cpu bring up to overcome the race
condition and data abort exception.

Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Change-Id: I6b3cda3bd828cbcaf8e766f243f8137ab496a805
2020-08-27 18:09:41 +05:30
Balaji Prakash J
3bac9f85dd ipq: minidump: handle error cases properly
When dump_to_flash is set, and if the cur_type value is
set to QCA_WDT_LOG_DUMP_TYPE_INVALID, while loop is
executed forever. So, handled the error cases properly.

Change-Id: Ic3fdc01897b4fe9a45023074e9397af3c84f3aaa
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2020-07-31 07:49:34 -07:00
Vandhiadevan Karunamoorthy
cec29b5195 ipq5018: Add 8033 phy support in MP02.1 RDP
This changes add 8033 phy support in MP02.1(Ap & Db) RDP
in tiny nor flash

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib35faba4321c70fed007c923ff0f5e618fad0276
2020-07-20 14:51:05 +05:30
Linux Build Service Account
d386abb434 Merge "driver: i2c: Enable I2C support for ipq5018" 2020-07-17 08:11:15 -07:00
Md Sadre Alam
6639bc0828 driver: i2c: Enable I2C support for ipq5018
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I9da4833a6aefc132092b88b4610f57dd3568ee5a
2020-07-16 18:53:41 +05:30
Vandhiadevan Karunamoorthy
6ce81e423e ipq5018: Update uncompress load address
This change update uncompress load address for ART
uncompress action, previously it was load at sys address.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ifce14c3cfe7746203acfcffa91adb2861f2b03db
2020-07-14 09:02:22 +05:30
Vandhiadevan Karunamoorthy
d760f30afe ipq5018: Add multicore support
This features allow to execute task on core 1.
This features not enable in tiny u-boot

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I986e7e3af840fd627dc5b6675931b79ab24ecb33
2020-07-14 08:57:51 +05:30
Linux Build Service Account
5c023622bc Merge "ipq5018: remove phy_name from dts" 2020-07-11 01:36:09 -07:00
Linux Build Service Account
532c493d5c Merge "ipq5018: skip USB init & deinit if EUD enable." 2020-07-09 05:07:43 -07:00
Vandhiadevan Karunamoorthy
d15814b9f3 ipq5018: remove phy_name from dts
This changes remove the phy_name from all mpXX dts and
handle by driver itself.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia2d0379151db0c68a0b28f5062e83f80579d37c1
2020-07-04 15:47:56 +05:30
Vandhiadevan Karunamoorthy
4ee702eff9 ipq5018: Add Napa phy support in mp03.3 RDP
This changes removes NAPA support from tiny U-boot config

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I057064d63a3ac0788275a4572242cc251a445a98
2020-07-04 14:52:02 +05:30
Linux Build Service Account
52bc8f5c05 Merge "ipq5018: Fix S17C auto-negotiation issue" 2020-07-02 01:44:19 -07:00
Vandhiadevan Karunamoorthy
0bf31a7cd2 ipq5018: skip USB init & deinit if EUD enable.
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I156d64a35048d5170424047e08b34304219357f0
2020-07-01 23:13:25 -07:00
Linux Build Service Account
82e2d85569 Merge "ipq5018: reduce delay in pci initialization" 2020-07-01 16:38:57 -07:00
Vandhiadevan Karunamoorthy
cad9402279 ipq5018: reduce delay in pci initialization
This changes reduce boot delay because of delay in pci
initialization

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I15d4ed26a07dafe0c8dd7eb8a666b3c7a3d2cfb6
2020-06-30 13:43:56 +05:30
Vandhiadevan Karunamoorthy
31499cc6e5 ipq5018: Add warm-reset dload fdt fixup
This changes skip crash dump if warm-reset is enable.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I4a6d66ee0dc574c5f708a3d9d2964dbec0bbedb7
2020-06-29 10:44:48 +05:30
Vandhiadevan Karunamoorthy
82c05e91fa ipq5018: Fix S17C auto-negotiation issue
This changes enable s17c link upto 1Gbps speed.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I78e3efbbfd1bad58ab2abcba87c06cb9d4ffcd18
2020-06-26 15:54:19 +05:30
Vandhiadevan Karunamoorthy
ffbf1122c0 ipq5018: Fix secure_authenticate scm call
This changes update the SCM_CMD_SEC_AUTH command.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I6952999bd91062a3e5b3992b2dc166e847d27a58
2020-06-25 10:24:48 +05:30
Vandhiadevan Karunamoorthy
0f7bca7746 ipq5018: Fix for data abort in secure boot
This update fix the the data abort happening while collecting
crash dump  in secure boot.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I59bfd0032d3d580345fab721f750e50c9367e2b9
2020-06-25 10:18:18 +05:30
Vandhiadevan Karunamoorthy
65b179ddc4 ipq5018: Update pcie phy initialization
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia5228bffd2b663e463542f2c96012329eefb1833
2020-06-24 18:22:34 +05:30
Linux Build Service Account
157a9b01b3 Merge "ipq5018: Update usb init sequence" 2020-06-22 10:39:23 -07:00
Md Sadre Alam
07e59f4960 driver: nand: qpic_nand: Enable config for serial training.
This change will enable config for serial training.

This change also fix the the logic to get most appropriate phase
out of passed phase.

This change also add support to read serial training offset from
partition table. Also patching freqency value & phase value to kernel.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: Ibb4a5cd80f16605e8e91bdf6a0c6c484edff1735
2020-06-21 22:22:13 -07:00
Manikanta Mylavarapu
dc8f02bd66 ipq5018: Update usb init sequence
This patch tune's usb ssphy into SSC
instead of fixed offset.Also It ensures
Phy autoload should be done within
30us to 100us after pipe reset.

Change-Id: I192da047861a02d0b70d5c5c2f03715af7213c21
Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
2020-06-22 09:57:57 +05:30
Gokul Sriram Palanisamy
e9aae6d127 ipq807x: Added golden PINE RDP support
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: If910fe9f6f221b39833156d0226435785173fbc8
2020-06-17 17:46:44 +05:30
Gokul Sriram Palanisamy
f2b16c5a1e ipq807x: Removed identical device-trees AC02 and OAK03
Removed identical device-tree to reuse original dts.

Affected boards: AC02 and OAK03
OAK03 to reuse HK01 dts and AC02 to reuse AC01 dts

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I5a70514370f394b15e68d5819cf8d1b52da14f3f
2020-06-15 22:05:58 +05:30
Linux Build Service Account
190ddf15fc Merge "fdt: ipq5018: Add support for tiny nor fixup" 2020-06-14 19:46:46 -07:00
Manikanta Mylavarapu
65a09cf89e ipq5018: Fix usb3 ssphy sequence
This patch will tune ssuniphy to fixed
offset instead of SSC.

Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
Change-Id: Ieca1e079275092ea49fcc1ffa9ba1dadadd2a93a
2020-06-13 01:52:30 -07:00
Manikanta Mylavarapu
5c90c31be3 ipq5018: Fix usb3 configuration
This patch will update usb3 configurtaion
based on ssphy availability.

Since usb3 ssphy shared with pcie phy,
certain configuration need to be done based
on ssphy availability.

Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
Change-Id: I474a6ea269e7778738ca9464dae510bb58e8bcea
2020-06-13 01:50:58 -07:00
Vandhiadevan Karunamoorthy
23db7fb51f fdt: ipq5018: Add support for tiny nor fixup
This changes fixup the mtdparts without support of
MTD framework,This code read the partition details from env
variable and patch to kernel dts.

Change-Id: I829808620c35b57973dc0ae015131bc5019c4844
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-06-12 05:44:40 -07:00
Vandhiadevan Karunamoorthy
7d9fa0c5e4 common: init: Add nor env support
This changes enable nor enviornemnt support if its no flash with
eMMC and NAND is disabled.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I1ff389ed388fb7f72543cc87e852c360a965db48
2020-06-12 04:19:11 -07:00
Gokul Sriram Palanisamy
c8365407da ipq807x:Add support to avoid identical device-tree
We had identical device-tree for different RDPs
though they are the same except for machid.

This change enables reuse of a single device-tree
across RDPs with same configurations.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: If81b431e4a6afe54e427fe0a52de275fdd29df00
2020-06-10 20:49:54 -07:00
Vandhiadevan Karunamoorthy
701787232f ipq5018: Fix GMAC clock source command register.
This change fixes setting dirty bit in CMD_RCGR and configure GMAC
to run on GPLL4 clock source.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I01bb0e3af2da93f0464d41a6bd571480b1a4e581
2020-06-04 22:06:22 +05:30
Manikanta Mylavarapu
caaaddfa7a ipq5018: Fix usb configuration
Update usb controller and phy
configuration for enumeration.

Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
Change-Id: I9e20fe5bf4c7abe7547f383ab58bff9b8dad64e0
2020-06-04 22:06:22 +05:30
Vandhiadevan Karunamoorthy
ef78642323 ipq5018: Add support for Gephy
This Gephy is internal phy driver for ethernet

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia4e744c0fbd990bdc94fe93263ac2ddbe4cecf61
2020-06-04 22:06:22 +05:30
Vandhiadevan Karunamoorthy
d42f5e0c52 ipq5018: Add support S17C switch support
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia3877ba97bc9cbe3b853c6f72ce6e5970395b43f
2020-06-04 22:06:21 +05:30
Md Sadre Alam
63d0c33622 board: qca: ipq5018: Remove GCC_SDCC1_MISC register.
This change will remove GCC_SDCC1_MISC register from
SDCC clock configuration code path. Since in ipq5018 this
register is not available. so removining this register.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I980fc0f0ce24cd0da5610300608a5dd223c33941
2020-05-19 23:21:32 +05:30
Linux Build Service Account
3f5714cc45 Merge "ipq5018: ethernet: update clock configuration" 2020-05-18 06:09:20 -07:00
Linux Build Service Account
3fbe57d2a1 Merge "ipq5018: Fix Uart src clock calculation" 2020-05-18 01:36:34 -07:00
Vandhiadevan Karunamoorthy
2d5526ad83 ipq5018: Fix Uart src clock calculation
This changes remove double calculation of N and D values.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I1c8444b5f6dbbc06a2b676477599978d6a91a681
2020-05-16 17:50:18 +05:30
Selvam Sathappan Periakaruppan
7945594c1d ipq: Remove reserved memory nodes in crashdump disabled path
This change is to remove SBL and U-Boot reserved memory nodes
in crashdump disabled case.

Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Change-Id: Iea9d7e483e2766ec6124c9ec833dd81c3c8e9046
2020-05-15 04:16:51 -07:00
Vandhiadevan Karunamoorthy
699e92652f ipq5018: ethernet: update clock configuration
This changes initialize clock and enable the block of
Gephy, Uniphy, GMAC0 & GMAC1 and also udpate Rx & Tx clock
based on speed.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia2627e17f7029c2d0d1cbb9eff26afb27aa1c057
2020-05-15 12:28:16 +05:30
Vandhiadevan Karunamoorthy
4daa70b2bc ipq5018: Fix usb initialization.
This changes avoid initialize the usb if not present in dts.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I8d5666f1cceedb47b121ce6aefae93aa8c64d130
2020-05-15 10:35:02 +05:30
Linux Build Service Account
f637a16ef2 Merge "ipq5018: Fix usb configuration" 2020-05-14 16:08:34 -07:00
Linux Build Service Account
aadc053ce6 Merge "driver: mtd: qpic_nand: Add support for serial training." 2020-05-14 12:10:48 -07:00
Linux Build Service Account
1ff812066d Merge "ipq5018: Support for Compressed ART caldata" 2020-05-14 08:39:37 -07:00
Linux Build Service Account
34bd7e8a76 Merge "ipq5018: Add support for BT-RAM dump collection" 2020-05-14 08:39:36 -07:00
Md Sadre Alam
a99d538e1b driver: mtd: qpic_nand: Add support for serial training.
This change will add support for serial training in
QPIC.

Due to different PNR and PCB delays, serial read data
can come with different delays to QPIC. At high frequency
operations Rx clock should be adjusted according to delays
so that Rx Data can be captured correctly. CLK_CNTR_INIT_VAL_VEC
in NAND_FLASH_SPI_CFG register is a 12-bit vector which is divided
in 4 parts of 3 bits each representing delay of 4 serial input data
lines. Bit [2:0] corresponds to qspi_miso[0], bit [5:3] corresponds
to qspi_miso[1], bit [8:6] corresponds to qspi_miso[2] and bit [11:9]
corresponds to qspi_miso[3]. Delay of each qspi_miso line can be set
from 0 to 7.

For serial training the following rule should be followd.

1) SW should write a page with any known pattern in flash at lower
frequency.

2) Set the CLK_CNTR_INIT_VAL_VEC for qspi_miso[0] line.

3) Read that page repetitively in high frequency mode until it
gets data accurately.

4) Repeat above steps for other qspi_miso lines.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: If622809efff55fb2abe60f409a590abd5313741b
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2020-05-12 04:27:24 -07:00
Linux Build Service Account
953252e6cf Merge "ipq8074: include new config name of hk01 board" 2020-05-12 03:09:32 -07:00
Vandhiadevan Karunamoorthy
a95f6f7ce0 ipq5018: Add support for BT-RAM dump collection
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I0a59fe50e45d06f394b9b16e97cf281e41504ecc
2020-05-12 11:35:00 +05:30
Manikanta Mylavarapu
9800b9c065 ipq5018: Fix usb configuration
Update usb configuration based
on hardware requirement.

Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
Change-Id: I307834cddab8b3b060d78a98ed047725d265ee00
2020-05-10 21:49:14 +05:30