Commit graph

9655 commits

Author SHA1 Message Date
Vandhiadevan Karunamoorthy
7fff6b863d ipq5018: update ethernet initialization sequence
This change make the qca_8337 switch initialization generic based on
dts irrespective of gmac controller.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I292992307ead2cd7bbb0763ff483dc16c266d417
2020-10-22 12:13:32 +05:30
Vandhiadevan Karunamoorthy
7cc905582f ipq5018: Add compressed crash dump support
This features not support in tiny nor profile,
since no CONFIG_GZIP lib support

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia6321e60f5451e60193804ef2dba22ea493b435c
2020-10-09 14:35:21 +05:30
Linux Build Service Account
61db3ec2dd Merge "boot: skip secure boot if atf is present." 2020-10-06 04:30:33 -07:00
Linux Build Service Account
d0a7c9bed8 Merge "ipq: Handled unaligned data written in nand flash while dump collection" 2020-09-24 06:36:59 -07:00
Karthick Shanmugham
59d79e1661 ipq: Handled unaligned data written in nand flash while dump collection
During dump collection, when dump_to_flash enabled, nand erases are skipped
due to unaligned written. This changes handles that and write after erasing

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Idfc6b3a0596a5ddb5c7e0b0da5c7bcb2751769b8
2020-09-24 13:10:23 +05:30
Vandhiadevan Karunamoorthy
43d228de80 Revert "ipq5018: Add memory size fixup"
This reverts commit ef050e1c51.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I0e3b25a34799e59ad899e77c7dbeea52940273d5
2020-09-23 12:51:21 +05:30
Linux Build Service Account
9648ab1374 Merge "ipq: fdt_fixup: add support to add / edit array of values" 2020-09-15 10:36:28 -07:00
Vandhiadevan Karunamoorthy
c143b7e576 boot: skip secure boot if atf is present.
This change skip kernel signing validation and proceed with
unsigned boot path only if atf set in env.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I01728c754eb1a7514e7206056385a55e0ba192c7
2020-09-15 13:38:29 +05:30
Linux Build Service Account
6a5a7b2811 Merge "ipq5018: Fix uncompressed maxsize issue." 2020-09-14 11:38:01 -07:00
Linux Build Service Account
1ca5e2577d Merge "ipq: Added nand bad block skipping to dump_to_flash feature" 2020-09-14 06:37:37 -07:00
Vandhiadevan Karunamoorthy
7495413684 ipq5018: Fix uncompressed maxsize issue.
This change update uncompressed destination size to 1MB Max.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I987560981490a05020d7cede76b481b03f71f7d6
2020-09-14 06:02:09 -07:00
Balaji Prakash J
803a517c47 ipq: fdt_fixup: add support to add / edit array of values
This patch adds support to add / edit array of 32bit or 64bit
values. Also, detailed documentation is updated.

To add 32bit or 64bit array values:
  setenv fdtedit0 <node_path>%<bit_value>?<num_values>?<property_name>%<value1>?<value2>?..
  here, <bit_value> can be 32 / 64;  <num_values> is number of array elements
  to be patched; <property_name> is the actual name of the property to
  be patched; each array value has to be separated by '?'
  for reg = <addr> <size>; <num_values> is 2 in this case
example:
 setenv fdtedit0 /soc/dbm@0x8AF8000/%32?2?reg%0x8AF8000?0x500
 setenv fdtedit1 /soc/pci@20000000/%32?2?bus-range%0xee?0xee
 setenv fdtedit2 /soc/usb3@8A00000/%32?4?reg%0x8AF8600?0x200?0x8A00000?0xcb00
 setenv fdtedit3 /reserved-memory/tzapp@49B00000/%64?2?reg%0x49A00000?0x500000

Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Change-Id: Ia68464c8d7288a09a6b1004b8e7364a248e10522
2020-09-13 21:18:39 +05:30
Linux Build Service Account
26f0f2b652 Merge "ipq5018: update bt_debug fixup" 2020-09-11 12:36:13 -07:00
Linux Build Service Account
6d7cb14af5 Merge "ipq5018: remove apps_iscrashed_crashdump_disabled" 2020-09-11 10:36:04 -07:00
Karthick Shanmugham
434cc613fc ipq: Added nand bad block skipping to dump_to_flash feature
This change will skip the bad blocks offsets, if any while writing
into the nand flash duirng crash when dump_to_flash enabled. This
change also verifies whether the dump data is not overwritten into
the next partition.

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: I0eec4c772a5f5efb3c17bfd1fd3d3d9a5ff85d1d
2020-09-11 12:49:29 +05:30
Vandhiadevan Karunamoorthy
53ea88f717 ipq5018: update bt_debug fixup
This changes disable mdio 1 if bt_debug set.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic960edb10ce52a7db0133406de36d502ebc1017f
2020-09-11 11:25:29 +05:30
Vandhiadevan Karunamoorthy
a35a62b823 ipq5018: remove apps_iscrashed_crashdump_disabled
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I7d9a47c1a31fb2b836e4e9d845be5adf232f1560
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-09-10 14:27:56 +05:30
Vandhiadevan Karunamoorthy
34bc85d52c ipq5018: Add SDI disable support.
This changes disable SDI path if dload_warm_reset set.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia3fbec57ab69e312f7451a5327bbe9a505f3afbc
2020-09-07 13:48:01 +05:30
Vandhiadevan Karunamoorthy
ef050e1c51 ipq5018: Add memory size fixup
This changes fixup memory size for tiny-nor.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Icfa930cc51ca16aa286ca19aa50fcce91aee7338
2020-09-02 16:12:14 +05:30
Linux Build Service Account
a9fcd674a8 Merge "Revert "ipq5018: configure RFA to 96MHZ"" 2020-09-01 09:36:16 -07:00
Vandhiadevan Karunamoorthy
510c3267ab Revert "ipq5018: configure RFA to 96MHZ"
This reverts commit caf976951e.
This changes revert RFA 96MHZ configuration.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I9d9480cae71809e135b1a3ce523ec39cfa4f666a
2020-08-31 16:06:10 +05:30
Sivaprakash Murugesan
ff617d75d5 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-30 23:35:29 -07:00
Linux Build Service Account
558a97b041 Merge "Revert "ipq5018: Disable secure pil for ATF"" 2020-08-19 16:37:10 -07:00
Vandhiadevan Karunamoorthy
b938efd45a Revert "ipq5018: Disable secure pil for ATF"
This reverts commit b9ca7ae4a2.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I3b13f56af12945fa0d25b129b94c3621feb2678d
2020-08-17 12:26:55 +05:30
Linux Build Service Account
198a0c0c1d Merge "ipq5018: update RFA clock to 96MHz" 2020-08-14 09:05:58 -07:00
Vandhiadevan Karunamoorthy
c139e66172 fdt: ipq5018: fixup for ART format info.
This changes inform kernel whether ART is compressed or
uncompressed format.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ied2088bc0f93504ad2bec01659716c16b178b5ba
2020-08-13 23:26:40 -07:00
Vandhiadevan Karunamoorthy
0930b350c2 ipq5018: update RFA clock to 96MHz
This changes initialize the CMN block with 96MHz based on
INTERNAL_96MHZ define flag otherwise it will initialize to 48MHz

This changes also enable GMAC0 & GMAC1 AXI clock.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic7f9981394119ea95954ece49d30e36ba4bb2ebd
2020-08-13 23:18:35 -07:00
Vandhiadevan Karunamoorthy
81ba78ca06 mtd: ipq5018: remove CONFIG_CMD_NAND from tiny nor
This changes add CONFIG_CMD_NAND flags in flash command and smem
source file to eliminate nand specific source if CONFIG_CMD_NAND
is not defined.

This changes replace CONFIG_IPQ_MTD_NOR with CONFIG_MTD_DEVICE flag

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I612ae89c3730dc86f2693088fb4cb5c10763165d
2020-08-12 00:04:52 -07:00
Linux Build Service Account
00ad38e0b2 Merge "ipq5018: configure RFA to 96MHZ" 2020-08-10 02:36:08 -07:00
Vandhiadevan Karunamoorthy
caf976951e ipq5018: configure RFA to 96MHZ
This is temp changes to enable 96MHZ without booloader support.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib6db0c798906a5a0d7bc17696c42c495c016db8b
2020-08-10 10:31:37 +05:30
Linux Build Service Account
7a58dc5d41 Merge "qca: Made machid and soc_hw_version as default env" 2020-08-07 09:35:40 -07:00
Gokul Sriram Palanisamy
499f538fac qca: Made machid and soc_hw_version as default env
Made machid, soc_hw_version, soc_version_minor
and soc_version_major as default env across all
qca arm platforms.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I0f284dac705d929f7b6588bc8fe4eaf17916b4b6
2020-08-04 01:56:49 -07:00
Gokul Sriram Palanisamy
bae298d521 env: Export soc_hw_version to environment variable
soc_hw_version can used to prevent cross-platform
flashing of single images to prevent board
from getting bricked.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I579489498c8cbbc944b54e3050a319d1e11cb825
2020-08-04 14:21:10 +05:30
Balaji Prakash J
e0fdbf3dfb 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-08-02 23:16:13 -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