Commit graph

36508 commits

Author SHA1 Message Date
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
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
Vandhiadevan Karunamoorthy
089da6a643 dts: ipq5018: update gephy led gpio pin
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic44ca15091cb6ee44bec2e65ac765b475174d6f3
2020-08-13 23:26:43 -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
Pavithra Palanisamy
a9dd4ea204 tools: pack: Added support for atf image generation
atf single image can be generated in existing framework
by using --atf option.
[Change by Gopinath Sekar<gsekar@qti.qualcomm.com>]

Change-Id: I9542a5b0e639f0ba3aa857a0b8e733bfdae0f0ab
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2020-08-14 11:11:11 +05:30
Linux Build Service Account
7b63c856b6 Merge "pack.py: Added soc_hw_version for HK v1.2 SoC" 2020-08-13 20:37:02 -07:00
Gokul Sriram Palanisamy
229ba2629f pack.py: Added soc_hw_version for HK v1.2 SoC
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I2a8878f857d2a7ce1d534e187458712727006ae3
2020-08-13 20:44:16 +05:30
Pavithra Palanisamy
1a58ecf32e ipq5018: Add support for ART partition recovery
This patch adds support for recovering ART calibrated
data from older layout and copy to ART partition as per
newer flash layout[partition offset changed].

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ie460754fc22f522e801336f6005056f31689734c
2020-08-13 17:49:38 +05:30
Linux Build Service Account
32f559df0c Merge "ipq5018: tiny: optimize code size" 2020-08-12 11:36:07 -07:00
Linux Build Service Account
81557f209f Merge "mtd: ipq5018: remove CONFIG_CMD_NAND from tiny nor" 2020-08-12 11:36:06 -07:00
Vandhiadevan Karunamoorthy
044977243b ipq5018: tiny: optimize code size
This changes remove the below given list of features from tiny nor.
CONFIG_CMD_BDI
CONFIG_CMD_CONSOLE
CONFIG_CMD_EDITENV
CONFIG_CMD_FLASH
CONFIG_CMD_MII

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I6fc92ece0f61f1cd26f423009cf698117895febc
2020-08-12 17:42:01 +05:30
Karthick Shanmugham
d8f52ee940 tools: pack: Modified pack to choose memory specific files for packing
Since partition.xml files are platform specific, we can't
give memory specific file names for packing. With this change
we can give image name corresponds to each memory/profile.
When pack script is invoked with memory, this change will
check for the image name corresponds to particular memory and
include it for packing, otherwise it will use the default filename.

For giving mem specific files:
EMMC partition.xml: Add new attribute "filename_memXXX" to partition
Other than EMMC: Add new child element with "memory" attribute

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: If5f0439d124a42c1e7bc3026eae342be2323dede
2020-08-12 03:43:04 -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
Karthick Jeyaraman
38843ae1ff IPQ5018: Enable Thumb2 mode
Change-Id: Ib726426e904a23ccd3262c742dff6ff163facccf
2020-08-11 06:49:52 -07:00
Linux Build Service Account
24d30ab2b2 Merge "saveenv: spi-nor: fix for data abort issue" 2020-08-10 11:06:31 -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
Linux Build Service Account
166a4e57c0 Merge "pack.py: Added soc validation on image flashing" 2020-08-07 09:35:39 -07:00