Commit graph

36526 commits

Author SHA1 Message Date
Pavithra Palanisamy
b4d08cf1e8 pack: ipq5018: Add SOC HW version ID of 1.1 chip
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I44cc627fb5b6869a01d5ac369dd98b13f78090ca
2020-10-26 14:14:58 +05:30
Linux Build Service Account
b7e5f67e98 Merge "dts: ipq50xx: Update spi-nor gpio DRV_STRENGTH." 2020-10-24 01:06:06 -07:00
Vandhiadevan Karunamoorthy
3fc5e5d54d dts: ipq50xx: Update spi-nor gpio DRV_STRENGTH.
This changes reduce spi-nor drv_strength from 8mA to 2mA.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib21e8229fff3ce81f5da29edfb978cbe1fdc833b
2020-10-23 13:56:09 +05:30
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
Linux Build Service Account
e83a9121f5 Merge "qpic-nand: Serial training: Fix for Access violation" 2020-10-16 04:07:12 -07:00
Vandhiadevan Karunamoorthy
413d029cab qpic-nand: Serial training: Fix for Access violation
This change fix Access violation created by APPS
master by accessing QPIC_XPU issue due to accessing
QPIC_QSPI_MSTR_CONFIG & QPIC_NAND_FLASH_SPI_CFG registers

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ibb840db12359eea01823dd7732fcb1ac1e7b8967
2020-10-14 18:19:07 +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
aa06238303 Merge "dts: ipq5018: modify MP03.6 to MP03.6-C1" 2020-10-06 10:06:49 -07:00
Linux Build Service Account
61db3ec2dd Merge "boot: skip secure boot if atf is present." 2020-10-06 04:30:33 -07:00
Vandhiadevan Karunamoorthy
1affd87bb6 dts: ipq5018: modify MP03.6 to MP03.6-C1
This changes update mp03.6 config name.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I16b68bae3939848102c52152604e2a25807683cf
2020-10-06 15:40:24 +05:30
Vandhiadevan Karunamoorthy
2f134cac29 dts: ipq5018: Add MP03.6 RDP
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Id0e7cffd0d996cf9629f2aa3e10ec7ed579cb62e
2020-10-01 13:45:54 +05:30
Linux Build Service Account
a916a1687a Merge "driver: nand: qpic_nand: Fix Erase address configuration." 2020-09-30 13:37:23 -07:00
Kathiravan T
a02eee0405 configs: ipq807x: enable the LZMA decompressor
Linux-5.4 images are compressed with LZMA. So enable the decompressor
support for the same.

Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
Change-Id: I537c238fbab182e78e307ecb95bd47c0c9f9e8f5
2020-09-30 15:33:36 +05:30
Md Sadre Alam
43b1d16567 driver: nand: qpic_nand: Fix Erase address configuration.
This change will fix erase address configuration for QSPI
nand devices whose density is beyond 128MiB.

To erase a block as per datasheet of serial nand device
page row address <5:0> and the Block row address <16:6>.

In code we are forming directly pages address starting
from <16:0> i.e 17-bit address. Currently we are configuring
address_0 and address_1 register as follws.

addr0 = (page << 16) and addr1 = 0x0;

This logic will work if device size upto 128MiB, but if device
size beyond 128MiB then this logic will fail becasue upper most bit
will go out of add0 register.

Fixing this by changing address configuration logic for erase block.

addr0 = (page << 16) addr1 = (page >> 16) & 0xffff;

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I4950bb611780257629491ffbb42c91fcfedebc58
2020-09-30 14:17:08 +05:30
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
Karthick Shanmugham
7635ecacd3 ipq50xx: Added support for compressed dtb in u-boot
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: If56b282b02cf621fa220d7f8cc6f2ddfe85bb212
2020-09-16 00:01:29 -07:00
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
397b6fab69 Merge "config: ipq5018: Add tiny_debug config" 2020-09-14 09:06:03 -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
Vandhiadevan Karunamoorthy
74c48099b3 config: ipq5018: Add tiny_debug config
This change add tiny_debug config for ipq5018, this config
duplicates the tiny config with additional nand support.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I1acaa0159563144e6410f3ed6f0fc2a490b4e26c
2020-09-13 20:00:31 +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
Vandhiadevan Karunamoorthy
1189dd5c9d ipq5018: Add argument for size in fuseipq
This changes add additional argument for binary size
information in fuseipq.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I9ea5e3104a750377b7999a5e0475739b107b0204
2020-09-11 16:42:52 +05:30
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
Linux Build Service Account
c1ece2b859 Merge "ipq5018: Add SDI disable support." 2020-09-09 11:06:43 -07:00
Linux Build Service Account
e2e36f3427 Merge "IPQ5018: Enable Thumb2 mode" 2020-09-07 05:10:11 -07:00
Linux Build Service Account
3f62b16b49 Merge "IPQ5018: Redcued U-boot reserved memory to 2MB" 2020-09-07 05:10:11 -07:00
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
Pavithra Palanisamy
6a381cf782 pack: Update bootldr1 filename based on Memory profile
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ib40313860dda57f4e500ba465f9a89e64594e06d
2020-09-02 22:31:07 -07:00
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
Pavithra Palanisamy
cb505365ef Revert "ipq5018: Add support for ART partition recovery"
This reverts commit 1a58ecf32e.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I2838f264785ae1de2d4cd6c25e7b34724d1b4cb5
2020-09-01 12:45:35 +05:30
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
Karthick Jeyaraman
d3da2a207c IPQ5018: Redcued U-boot reserved memory to 2MB
- u-boot text region + pgtable requires
	  800KB. Hence adjusted text base address
          to 0x4A92000, so that the text region + pgtable
	  fits at the last 800KB of 2MB memory space, leaving
	  200KB above them for other regions
	- Size of Heap region is reduced to 1MB from 1.5MB
	- Maple uses gmac controller for Ethernet DMA process,
	  which does not require non-cached memory,  hence we
	  can avoid reserving 1MB for noncached memory and the
	  same can used for other components.
	- Right now, 256KB of memory was used from stack
	  for env reloc/save functionalities which makes the
	  SP extend beyond 2MB. Hence, modified them to
	  allocate memory from Heap.
	- With this patchset, the u-boot fits into 2MB space
	  and the rest 2MB can be used for other components

Change-Id: I962d86d81b1c52cbef575f974924d16ec6e3db89
Signed-off-by: Karthick Jeyaraman <kjeyaram@codeaurora.org>
2020-08-27 02:19:12 -07:00
Pavithra Palanisamy
9c56b17cf3 pack: ipq5018: Support multiple WIFIFW images
This update is to support packing multiple wifi firmware images
and flash respective fw image based on boards' machid which has
matching wififw type configured.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ic932e59ceae58dc432bed20aaeb51272216f06eb
2020-08-20 06:03:54 -07:00
Linux Build Service Account
53e132419a Merge "tools: pack: Added Filename null check during memory specific image" 2020-08-19 22:36:41 -07:00
Linux Build Service Account
558a97b041 Merge "Revert "ipq5018: Disable secure pil for ATF"" 2020-08-19 16:37:10 -07:00
Karthick Shanmugham
924c4932a5 tools: pack: Added Filename null check during memory specific image
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Ic61372ac9c69c6e951f86a70aaaa58b23010ccc2
2020-08-18 02:32:11 -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
10994a1641 Merge "tools: pack: Added support for atf image generation" 2020-08-14 19:43:27 -07:00
Linux Build Service Account
198a0c0c1d Merge "ipq5018: update RFA clock to 96MHz" 2020-08-14 09:05:58 -07:00