Commit graph

13912 commits

Author SHA1 Message Date
Rajkumar Ayyasamy
62f3d28fe6 ipq5332: enable JFFS2_CLEANMARKER for all the tiny profiles
This patch also skips adding clean marker if rootfs_data
size is less than 1MB

Change-Id: I3687a1d9954dfc319f6b3880556169269a72c4ea
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2023-10-17 13:07:21 +05:30
Gokul Sriram Palanisamy
70c83e3f70 configs: ipq5332: TINY NOR: disable dtb compression
Disable configs ZLIB, GZIP, CMD_ZIP, COMPRESSED_DTB.

Change-Id: Ie13d82d390f4c60dd20099c6c5a03216940e11a9
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2023-10-11 17:18:48 +05:30
Rajkumar Ayyasamy
2fd3774e61 flash: NOR: add jffs2 clean marker support
during NOR rootfs image flashing , each block in the
remaning space (rootfs_data) will be updated with jffs2 clean marker

Change-Id: I324ee3d61b427533473ebed6653ae8716b31600b
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2023-10-05 09:55:08 -07:00
Linux Build Service Account
8d8a419f70 Merge "ipq5332: TINY NOR: disable fdt fixup support" 2023-09-15 13:21:04 -07:00
Linux Build Service Account
e63885e667 Merge "ipq5332: TINY NOR: disable RAMDISK support" 2023-09-15 08:44:23 -07:00
Linux Build Service Account
ad7e881239 Merge "ipq5332: TINY NOR: remove SPI chip support" 2023-09-15 08:44:22 -07:00
Linux Build Service Account
a82d819aaa Merge "ipq5332: TINY NOR: disable exectzt, jump_kernel_64" 2023-09-15 08:44:22 -07:00
Linux Build Service Account
c31b5a5c7c Merge "ipq5332: TINY NOR: disable uart command" 2023-09-15 08:44:21 -07:00
Linux Build Service Account
825762364c Merge "configs: ipq5332: update system load address" 2023-09-14 07:39:59 -07:00
Gokul Sriram Palanisamy
3d9a6738dd ipq5332: TINY NOR: disable fdt fixup support
Change-Id: I84571b92a1ad47b4858befcbec99ef74de55f36c
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-14 14:38:30 +05:30
Gokul Sriram Palanisamy
20dd081414 ipq5332: TINY NOR: disable RAMDISK support
Change-Id: Ib600026b1b5e05e1b3a8c1879e61ea24c5557db2
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-13 20:48:12 -07:00
Gokul Sriram Palanisamy
4af5d37d7b ipq5332: TINY NOR: remove SPI chip support
Remove support for all SPI flash part
except for GD25LB128D (GIGADEVICE).

Also remove driver support (if any) for
part manufacturer other than GIGADEVICE.

Change-Id: Iaa16f4b20df069aef46def441fe770ef20fc50c4
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-13 20:47:42 -07:00
Gokul Sriram Palanisamy
dc54ad636c ipq5332: TINY NOR: disable exectzt, jump_kernel_64
Disable tzapp and 64-bit kernel support.

Change-Id: I13046276f266a24f4a05c6f39bccc7c2e5a898e2
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-13 20:47:11 -07:00
Gokul Sriram Palanisamy
3af1bc31ae ipq5332: TINY NOR: disable uart command
Disable uart command used for secondary
uart bringup.

Change-Id: I12aa9af75d32754590ed9dcebb439138a59c88de
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2023-09-13 20:46:32 -07:00
Gokul Sriram Palanisamy
f33264587a ipq5332: TINY NOR: disable signed boot support
Disable signed image authentication and secure dump support.

Change-Id: I3f32cf252dc857f9b03af3474018218fe6601b37
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-12 17:56:47 +05:30
Gurumoorthy Santhakumar
82862268a0 configs: ipq5332: update system load address
updated load addr from 0x44000000 to 0x50000000
Note: In tiny build load add remains same as 0x44000000

Change-Id: Ic0665b59f00878c73b160cfe2b3b9d37adeb586d
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-09-12 12:09:30 +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
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
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
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
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
Md Sadre Alam
569b2d0aaa board: qca: Add env support for rootfs auth
This change will add env variable "rootfs_auth" for rootfs
authentication.

Change-Id: Ifc52b63b0eca3e9306b82c9c471508dcf0d699fb
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-04-18 10:49:04 +05:30
Vandhiadevan Karunamoorthy
7f962d9e36 drivers: net: ipq5332: update qca8084 & qca8337
This changes update qca8084 & qca8337 init sequence
to support dual mode

Change-Id: I2cb9430fc97145c459ed4e6b58394a22565a9860
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-08 15:03:30 +05:30
Vandhiadevan Karunamoorthy
72b0604461 drivers: net: ipq9574: update QCA8084 config
This changes enable both PHY and switch configure
simultaneously and also switch can be configure
to any port.

And also these changes enable dual MDIO bus support.

Change-Id: Ib86c8a15abb9a7a35aa86d87cef78ad917dd1a00
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-06 10:09:20 +05:30
Vandhiadevan Karunamoorthy
b0e133d937 drivers: mdio: add bitbangmii support
Change-Id: Ieb6e05a462451e1d2c28b43cc7a761344742df15
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-01 21:16:50 -08:00
Vandhiadevan Karunamoorthy
1a4b370d2e drivers: net: add MDIO clause 45 support
Change-Id: Iba47a99967bed745083097a11a767062b26d21e3
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-01 20:59:50 -08:00
Priyanka MA
95375f5fe9 arm: qca: Add support to set CRASHDUMP RESET bit
The CRASHDUMP RESET bit of TCSR_BOOT_MISC_DETECT Register
has to be set in the crashdump collection path before reset
from u-boot for the  TZ to differentiate between the
normal reset and crashdump reset from u-boot and
to retain the crash reason.

Change-Id: Ic74cec02bf749925e599ee12205257480a234064
Signed-off-by: Priyanka MA <quic_priyma@quicnic.com>
2023-02-09 21:30:25 -08:00
Vandhiadevan Karunamoorthy
7c9ba11aa9 net: ipq5332: update CONFIG_IPQ_NO_MACS to 2
Change-Id: Ibc4cd52a7c0d4aa0209f96b2500f66204395c743
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-09 16:54:32 +05:30
Timple Raj M
1eb894a506 configs: ipq5332: Enable CONFIG_FLASH_PROTECT
This config is needed to enable mmc protection
based on gpt readonly attribute.

Usecase:
1. In emmc partition xml, set readonly attribute
   of a partition to true.
2. Generate partition bin, flash and reboot.
3. From uboot, read & write the partition.
4. Write should not go through. Crc32 checksum of
   the content before & after write should match.

Change-Id: I161f594f13c88b6d22c4b4932399d18eeb951372
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-05 21:39:41 -08:00
Vandhiadevan Karunamoorthy
db766b276c configs: ipq5332: enable compressed dtb support
Change-Id: I19d975f1b1266d9484603ec91ff99a671a155a81
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-12-04 21:30:00 -08:00
Vandhiadevan Karunamoorthy
7d48be48a1 board: ipq5332: Update AQ ethernet config
This changes include, update reset sequence
increase heap region, add mdio RW version
for 3.15M Clk

Change-Id: I85ec0632ced1543aa1cca880fd00e47800ddecfd
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-30 05:56:10 -08:00
Tom Rini
af3ad1d289 Merge branch '2021-02-15-fix-CVE-2021-27097-CVE-2021-27138'
Fix CVE-2021-27097 and CVE-2021-27138.  For more details see
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27097 and
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27138

Change-Id: I8f1f03a7e4b1d0bc9d8db51b6a08219f0c47fc2d
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:50 -08:00
Simon Glass
aea4f25d69 image: Use constants for 'required' and 'key-name-hint'
These are used in multiple places so update them to use a shared #define.

Change-Id: I3cc304f04c56c9d1a22df46e68f601b5acd2b34e
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:41 -08:00
Rajkumar Ayyasamy
425d52cd85 ipq5332: avoid multiple machid for nand/mmc boot
added boot type based nand or emmc flash selection.
So machid based flash selection becomes obsolete.

Change-Id: I96fa43d31d23397fa249e02f62b905d6e4e67770
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-22 22:01:56 -08:00
Vandhiadevan Karunamoorthy
a0b5416f43 net: ipq5332: update clk & TDM configuration
This changes update TDM and uniphy clk config

Change-Id: I7235713e130d07bb46e5c325bdfa3dd47da1e55c
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-17 20:12:44 -08:00
Gokul Sriram Palanisamy
60b84b15e8 ipq: Remove runtime failsafe feature
Runtime failsafe feature is obsolete.
So reverting the same.

Change-Id: I2d3585bf756e3c717461ea5411b4d3fbb8659916
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-11-15 22:20:47 -08:00
Gurumoorthy Santhakumar
0d9961e519 arm: qca: Add support to set CRASHDUMP RESET bit
The CRASHDUMP RESET bit of TCSR_BOOT_MISC_DETECT Register
has to be set before reset from u-boot in the
crashdump collection path for TZ to differentiate between the
normal reset and crashdump reset from u-boot and
to retain the crash reason.

Change-Id: Ib623bfeab15d1bc230f4a8824218f1a3c4368fbb
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-04 10:38:00 +05:30
Gokul Sriram Palanisamy
32248d4fab arm: qca: scm: Cleanup TCSR_BOOT_MISC_REG usage
TCSR_BOOT_MISC_REG bits are not properly managed
for DLOAD implementation. Modify only necessary
bits to enable availability for new feature
implementations using TCSR_BOOT_MISC_REG.

Change-Id: I888a1bf6ce3654b0453c9ec2f87b4d5ff2a20de0
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-10-20 11:03:39 +05:30
Timple Raj M
95e16ef259 ipq5332: replace soc name from devsoc to ipq5332 in all file contents
Change-Id: Id5dd98e749bfd229e2c6e9d1944db397d2380cb1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-12 22:31:53 -07:00
Timple Raj M
b12ecdc358 ipq5332: rename files from devsoc to ipq5332
Change-Id: I2a45b4017f98e725b6432e954040c154a39db663
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-12 22:31:40 -07:00
Linux Build Service Account
ab1f3974f2 Merge "pci: ipq: Add sec.dat fusing support for qcn9224" 2022-09-27 04:55:52 -07:00
Praveenkumar I
32ad9dcb99 pci: ipq: Add sec.dat fusing support for qcn9224
This change adds a new command to support the qcn9224 fusing.
Fuser blower binary should be transfered via tftp to Host and
using fuse_qcn9224 command, binary can be transfered to qcn9224.
qcn9224 will take care of the fusing.

sample command:
tftpboot fuse_blower.bin
fuse_qcn9224 0

Change-Id: Ie8cd73a2d49799100bd1f717cdc4b8dad070f9bd
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-09-27 12:01:38 +05:30
Linux Build Service Account
7a5d903329 Merge "flash: add new command xtract_n_flash" 2022-09-21 11:15:18 -07:00
Rajkumar Ayyasamy
4d60476def flash: add new command xtract_n_flash
xtract_n_flash $imgaddr $filename $part_name
can be used instead of the below set of cmds

imxtract $imgaddr $filename
flash $part_name

This patch also takes page_size, block_size
and chip_size as arguments of mibib_load cmd

Change-Id: Iaf1ed33a2281029ad151f00ce5416648e513de56
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-09-21 04:50:08 -07:00
Kathiravan T
1296b4cfbc configs: devsoc: update the SMEM base address
SMEM base address is moved to 0x4A800000, update it.

Change-Id: Ic88268ac4db80efe4d50cadbee191f85f91ee06d
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-20 02:19:51 -07:00
Gurumoorthy Santhakumar
4d0a4d1677 devsoc: Enable multicore support
Change-Id: I7fb4098eeb30f48aae41017aef4c1ad6c52d067b
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-09-16 04:11:46 -07:00
Timple Raj M
40c1f3f4b3 ipq: support for mibib reload
Adding a new command mibib_reload to
populate the partition table info from
mibib binary

Change-Id: I3f08fc07ea55f1bbd90dc28d8f459d108f86bc0e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-09-12 18:12:02 +05:30
Timple Raj M
1b9a7dbe6e devsoc: removing redundant initialization in dts
removing the redundant initialization to reduce the size of uboot

Change-Id: I4a129bfc1bad4e402a66a1b1051d1f432a581a6e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-08-12 16:56:16 +05:30
Vandhiadevan Karunamoorthy
aa301f7f49 configs: devsoc: Enable version rollback features
These modifications enable TZ+TME to obtain information
about the boot image partition for validation.

Change-Id: If4e6f27eb2c0e38fa8ec0ad552838f1d7a8c34c1
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-08-03 20:52:37 -07:00
Praveenkumar I
a7e822260c configs: ipq9574: Update default load address
This patch updates the default load address CONFIG_SYS_LOAD_ADDR
to 0x50000000. Earlier address could not accommodate the larger
single image file, hence this update.

Change-Id: I94b0324a7a65e53af1a2d839b8b7eafeb69c0eef
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-08-01 13:13:36 +05:30