Commit graph

37477 commits

Author SHA1 Message Date
Hariharan K
39bc05eace ipq9574: Add support for AL02-C20
Changing RDP467 to AL02-C20.
Also updating the return machid type
for AL02-C11 similar to AL02-C12,
since AL02-C11 is converted to RDP455
configuration.

Change-Id: I87e3b954d1ea9f38b24504f5b5754f9fef38df83
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-09-23 18:50:49 +05:30
Linux Build Service Account
743ea442d2 Merge "ipq5332: TINY NOR: remove unused crc libraries" 2023-09-12 13:11:22 -07:00
Linux Build Service Account
51829fc662 Merge "ipq5332: TINY NOR: remove common unused functions" 2023-09-12 13:11:22 -07:00
Linux Build Service Account
b8b61a63bd Merge "ipq5332: TINY NOR: disable unused sf sub-commands" 2023-09-12 13:11:21 -07:00
Ram Kumar D
18f7f37a94 tools: pack: flash bootconfig only for non-apps image
Update pack script to flash bootconfig only for non-apps
image.

Change-Id: I85be15e48b4e4f3ed40826d0c395f2cc8e5d3f88
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-12 15:33:43 +05:30
Gokul Sriram Palanisamy
46e2b15623 ipq5332: TINY NOR: remove unused crc libraries
Remove crc7, crc8 and crc16.
Also remove unused fdt functions.

Change-Id: Ibe04246f2f732438f170712b1fd8ec08113f888f
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-12 10:30:52 +05:30
Gokul Sriram Palanisamy
aca6ac0e00 ipq5332: TINY NOR: remove common unused functions
Change-Id: Idc970e1a87c5aad7af5c8fc6ac8da760f2e8debd
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-12 10:16:18 +05:30
Gokul Sriram Palanisamy
5cdef6d524 ipq5332: TINY NOR: disable unused sf sub-commands
Disable unused sf sub-commands and
related functions for reduced footprint.

sub-commands disabled
---------------------
- sf update, sf protect, sf bulkerase

corresponding new configs added for above commands,
CONFIG_DISABLE_CMD_SF_UPDATE
CONFIG_DISABLE_CMD_SF_PROTECT
CONFIG_DISABLE_CMD_SF_BULKERASE

Functions disabled
------------------
- bytes_per_second, spi_flash_update_block,
  spi_flash_update, show_time, spi_flash_test,
  spi_test_next_stage
- do_spi_flash_berase, do_spi_protect, do_spi_flash_test

Change-Id: If70fc53043ae8f45f76b7aab15a3c89940bf7497
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-12 10:15:45 +05:30
Linux Build Service Account
61997a01de Merge "ipq5332: TINY NOR: disable sha1, sha256 and md5" 2023-09-11 11:11:03 -07:00
Linux Build Service Account
22722a1097 Merge "ipq5332: TINY NOR: disable unused fdt functions" 2023-09-11 11:11:02 -07:00
Linux Build Service Account
726fbc86aa Merge "ipq5332: TINY NOR: remove unused commands and functions" 2023-09-11 11:11:00 -07:00
Ram Kumar D
20278977d9 board: qca: arm: remove MEM_NOC clock access
Since only Q6/TME/TZ should have access to memnoc clock,
so removing the MEMNOC clock enable sequence.

Change-Id: Iee32a59c340cda794b8ee3c314be871ab749ff79
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-08 16:36:42 +05:30
Gokul Sriram Palanisamy
b9778c94fe ipq5332: TINY NOR: disable sha1, sha256 and md5
SHA1, SHA256 and MD5 are enabled by default.
Added below configs to configure them easily.

CONFIG_FIT_DISABLE_MD5
CONFIG_FIT_DISABLE_SHA1
CONFIG_FIT_DISABLE_SHA256

SHA1 hash verification was used for FIT image
verification along with CRC32. Added a check
in FIT image hash verification to skip SHA1,
if TINY profile is enabled.

Change-Id: Ie3dbcde46b30938e693e8060218aa9834513bcff
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-06 09:26:15 +05:30
Gokul Sriram Palanisamy
51a8fd3ae4 ipq5332: TINY NOR: disable unused fdt functions
functions disabled
------------------
- arch_fixup_fdt
- boot_setup_fdt, boot_prep_linux
- fdt_getprop_u32_default, fdt_getprop_u32_default_node
  do_fixup_by_path_u32, do_fixup_by_prop, do_fixup_by_prop_u32,
  do_fixup_by_compat, do_fixup_by_compat_u32
- fdt_pci_dma_ranges, __flash_get_bank_size, flash_get_bank_size
- fdt_fixup_nor_flash_size

above functions are disabled as part of image footprint reduction.

Change-Id: Ie7f51a358dc4d9fc10be3a4642883e16621b0916
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-06 09:26:01 +05:30
Gokul Sriram Palanisamy
cdd2ba4fcb ipq5332: TINY NOR: remove unused commands and functions
Below commands and functions are disabled
for reducing image footprint.

Introduced new config CONFIG_REDUCE_FOOTPRINT
to use for non-standard size reductions.

Commands disabled
-----------------
base, bootp, chpart, fdt

Added new configs to control enablement
of above commands respectively.
CONFIG_CMD_DISABLE_BASE
CONFIG_CMD_DISABLE_BOOTP,
CONFIG_CMD_DISABLE_CHPART

Functions disabled
------------------
- remove complete fdt support
- fit_image_print, fit_image_print_data, fit_image_print_verification_data
- fit_image_check_target_arch
- fit_image_get_os, fit_image_get_arch, fit_image_get_type, fit_image_get_comp,
- fit_image_check_os, fit_image_check_arch, fit_image_check_type,
  fit_image_check_comp,
- get_table_entry_id, genimg_get_os_id, genimg_get_arch_id, genimg_get_type_id,
  genimg_get_comp_id

Change-Id: I10259c0b70f6e84c850fd28f551df752b3cba814
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-06 09:25:49 +05:30
Linux Build Service Account
491f902ebe Merge "bootqca: add support to append bootargs via fit header" 2023-09-04 10:11:36 -07:00
Linux Build Service Account
253e600ee5 Merge "tools: packv1: added support to flash bootcfg based on RDP" 2023-09-04 10:11:35 -07:00
Linux Build Service Account
f101be1eda Merge "tools: packv1: align indentation using reindent" 2023-09-04 02:42:56 -07:00
Linux Build Service Account
e061dfc34e Merge "arm: dts: Add RDP479 & RDP481 dts support" 2023-09-04 02:42:46 -07:00
Ram Kumar D
68ae34c1e1 tools: packv1: added support to flash bootcfg based on RDP
This patch adds support to flash the bootconfig based on the
RDPs.

1. To flash bootconfig based on Multi-RDP
   add entry like below in all flash partition xmls

   for non-mmc flash partition:
   <img_name type="string" bootconfig_type="1">file1_name</img_name>
   <img_name type="string" bootconfig_type="2">file2_name</img_name>
   <img_name type="string" bootconfig_type="2">file3_name</img_name>

   for mmc flash partition:
   bootconfig_type_max="2"
   filename_img1="file1_name"
   filename_img2="file2_name"

   and specify which bootconfig to flash on each RDP by adding
   entry like below, in config xml under each RDP nodes.
   <bootconfig_type>1</bootconfig_type>

2. for single bootconfig case, there is no change.
   just add single entry like below in all flash partition xmls
   <img_name type="string">file_name</img_name>

Change-Id: I2ca4d2125c70a7f5176478b3de03b1f6fc98ce08
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-08-31 17:31:40 +05:30
Ram Kumar D
0b4ee428fb tools: packv1: align indentation using reindent
Change-Id: I5194e20788a94d88121830ec63c4e8350bdb9387
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-08-31 14:38:44 +05:30
Saahil Tomar
4a573f00ff arm: dts: Add RDP479 & RDP481 dts support
RDP479 IPQ5332 + QCN6432 + QCN9224 (2+2+4)
	PCIe0 QCN6432-6G
	PCIe1 QCN9224-5G

RDP481 IPQ5332 + QCN6432 + QCN9224 (2+2+4)
	PCIe0 QCN6432-5G
	PCIe1 QCN9224-6G

Change-Id: I5d2e6c123ff8488c560f471789a13a49adfb4a5d
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-08-31 11:16:54 +05:30
Ram Kumar D
2017b7e18b bootqca: add support to append bootargs via fit header
Change-Id: I0ea34e5c7ab1ba7ab27f0df5cc895bed103a248d
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-08-25 16:10:00 +05:30
Riddhi Aggarwal
69c928c0f9 ipq9574: fix spelling issue in DPR command logs
Change-Id: I8e68a153021db94884e4e305703c4a74ced34bd3
Signed-off-by: Riddhi Aggarwal <quic_riddagga@quicinc.com>
2023-08-24 03:27:46 -07:00
Linux Build Service Account
ca9ece4989 Merge "sysupgrade : corrected typo in rootfs auth message log" 2023-08-22 05:40:09 -07:00
Linux Build Service Account
488975d391 Merge "configs: add new config for tiny nor profile" 2023-08-17 06:45:34 -07:00
Vijay Balaji
f0fa42c10d sysupgrade : corrected typo in rootfs auth message log
We observed a typo in rootfs image authentication
enabled message log and corrected it in this change.

Change-Id: Ie1aa07e0f45fdc3d802d87a03cfe376d7ac43e4e
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2023-08-17 11:29:42 +05:30
Sridharan S N
c7c20989ab armv7: qca: common: smem: skip printing the partition info if it exceeds flash size
skip printing the partition info in smem if it exceeds flash size

Change-Id: Icb13b8d8f0f25f7817dfce2ee42d327081cbbfa6
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-08-16 04:50:56 -07:00
Timple Raj M
b9a04e9345 configs: add new config for tiny nor profile
Change-Id: Ia717f2dc1c52613a2643bea40c4f5d76bfcb4feb
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-08-16 16:43:10 +05:30
Linux Build Service Account
9c9cbfa2eb Merge "arm: dts: ipq5332: Append rdp477 and rdp 478 name in config" 2023-08-14 03:13:56 -07:00
Sridharan S N
9db093d00e common: cmd_mtdparts: skip partitions exceeding flash size
Change-Id: Icc9fcd4bcc8b2d7d5e47598c1acc6058ecf203d9
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-08-11 03:32:48 -07:00
Timple Raj M
316df5f0b6 arm: dts: ipq5332: Append rdp477 and rdp 478 name in config
This patch appends the rdp477 name of ap-mi01.3-c2 and
rdp 478 name of ap-mi04.1-c2 in config

Change-Id: Ie1f864d518b5c97cc35d42cc8f1eba45e05a9280
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-08-09 15:24:54 +05:30
Linux Build Service Account
7c9be6eda9 Merge "aes : Add fix to read correct value from ram address for derive_aes_256_key cmd" 2023-08-08 10:10:54 -07:00
Poovendhan Selvaraj
363824c036 aes : Add fix to read correct value from ram address for derive_aes_256_key cmd
Change-Id: I0e3080b641b3b050655fdbb626273ec14cbc6aa2
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
2023-08-08 10:57:09 +05:30
Linux Build Service Account
dded5e9454 Merge "sysupgrade : add support for non-signed rootfs" 2023-08-02 13:40:14 -07:00
Vijay Balaji
c9320a61f8 sysupgrade : add support for non-signed rootfs
This change adds support to authenticate signed
rootfs images if rootfs_auth is enabled. It will
authenticate kernel image when rootfs image is not
signed.

Change-Id: I5f9da1c033c5530ebce4bff9f0fb4f69aaca9213
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2023-08-02 11:29:29 +05:30
Vandhiadevan Karunamoorthy
dd2a35262d driver: nand: update flush status buffer
Change-Id: I9e08b58e11b70d2f9a6859c0ed836388d8b17084
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-08-01 03:10:33 -07:00
Vandhiadevan Karunamoorthy
4d65cdacde bootqca: add key parsing support in bootargs
Change-Id: Ibdd89e117da0bda61793af79d0eb00bacbe7585b
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-07-31 00:14:12 -07:00
Linux Build Service Account
da8430c5fb Merge "ipq9574: Add support for RDP467" 2023-07-27 13:41:22 -07:00
Ram Kumar D
a884d2f2da arch: arm: dts: updated qca808x PHY mode support in AL06
This patch updates the following ethernet configuration
on ipq9574.
Previously, AL06 has qca8075 PHY attached in the UNIPHY0,
now it has been replaced with qca808x PHY mode.

Change-Id: Ieb5b9ef10bd1ebfd1992cbfa10cb02b2ac4d0534
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-07-26 14:12:01 +05:30
Saahil Tomar
1acea54708 ipq9574: Add support for RDP467
RDP467 is same as AL02-C4 with PCIE0 enabled with
wkk support.

Change-Id: If6ba645b7c62a3320139a7c86e0b89ec525a0fb7
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-07-24 03:06:22 -07:00
Vijay Balaji
91b4536719 sysupgrade : removed unused code
We want to extract rootfs image from ubi without any
changes, as we are traversing through the rootfs image
for 0xdeadc0de in extract_rootfs_binary() to extract
the image till 0xdeadc0de offset.

Change-Id: Iefeec6db72b65310310d74835b68ec3d22144608
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2023-07-21 06:17:36 -07:00
Karthick Shanmugham
ad1d2f1144 board: qca: ipq9574: Add atf crypto fixup support
This changes fixup "qcom,controlled-remotely" property and
"qti,config-pipe-trust-reg" property in the crypto bam node
in ATF boot. This will enable the kernel to do complete bam
pipe initialization.

Change-Id: I454c4e4e68354506dc16b1e72b514264778314e0
Signed-off-by: Karthick Shanmugham <quic_kartshan@quicinc.com>
2023-07-18 20:54:38 -07:00
Vijay Balaji
6814dfbb98 sysupgrade : add support to extract rootfs binary
This change adds support to extract rootfs binary
till correct data-block offset and replaces the
binary for image authentication in both
EMMC and Nand flashtypes.

Change-Id: Ib56228a620ffc5bcfae8b51682377b68e273484f
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2023-07-18 10:15:22 -07:00
Ram Kumar D
93f6d0d8fc arch: arm: dts: add support boot linux 6.1 images
This patch add supports to boot linux 6.1 images on
IPQ5332 & IPQ9574 DB boards.

Change-Id: Ifd9fb1b74c248ffc625c7c49fc96dd7d16a8670f
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-07-13 04:55:02 -07:00
Linux Build Service Account
b64a688822 Merge "board: qca: arm: ipq5332: Add AP-MI01.3-C2 RDP Support" 2023-07-11 08:13:06 -07:00
Timple Raj M
69c7dd479f board: qca: arm: ipq5332: Add AP-MI01.3-C2 RDP Support
Change-Id: Ia9a177009701e83bec37cb539a014cb973d5c47d
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-07-10 16:20:20 +05:30
Ram Kumar D
c8f05e9e69 configs: enable tiny config for ipq5332
Change-Id: I19394ce3852e26cc9cb2f25b220e2dbea044e863
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-07-07 18:29:15 +05:30
Timple Raj M
9907ad8d46 board: qca: arm: ipq5332: fix to improve performance in compliance test
This patch adds the XCFG configuration for improving the
performance in the USB compliance test

Adjust HSTX slew rate from 565 ps to 400 ps
Adjust Manual control ODT value from 45.02 Ohm to 33.97 ohm
Adjust HSTX Current of current-mode driver, 17.1mA * 22.5ohm = 385mV

Change-Id: I21a6fc9ff520c36d5cbc4d727e48309d556c8165
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-07-06 02:57:46 -07:00
Ram Kumar D
972171125f board: qca: ipq9574: fixup config name for 6.1 kernel
The previous fixup patch will not actually fdt fixup all the
mentioned config name, it will pick the first one only. So
that, 6.1 kernel will not boot up.

So, updating the config name fixup logic for the multiple
config names.

Change-Id: I4197c04c1edcd72e0982ccbf6884617c998880de
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-07-04 18:04:39 -07:00