Commit graph

13923 commits

Author SHA1 Message Date
Vandhiadevan Karunamoorthy
7c76321c8a configs: ipq5332: add tiny version 2 defconfig
This change is a duplicate version of a tiny profile
with an updated load address and smem layout

Change-Id: I16ceb46547382961e9e91a26af3862057093d3b2
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2024-05-31 11:23:41 +05:30
Timple Raj M
6e270602f8 board: qca: arm : ipq5332: Add config_name for AP-MI04.1-C2 RDP
This patch adds config_name for AP-MI04.1-C2 RDP to support
the OpenWrt version 23.05

Change-Id: I7198ad3a73fd8a58022a133cba9494d8af458566
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-04-30 14:24:44 +05:30
Ram Kumar D
c2c5de2497 drivers: net: ipq6018: enable qca8x8x switch support
This patch enables qca8x8x switch support on ipq6018.

Change-Id: I5e037071dad112558682255f99bac2adb2b411b5
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-04-22 12:26:10 +05:30
Sridharan S N
6f024ac352 configs: ipq9574: enable compressed dump support
This patch enables CMD_ZIP and GZIP_COMPRESSED

Change-Id: Ice534ca96b284528494b651b58ac3dbba509a0a7
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2024-03-27 22:51:49 -07:00
Timple Raj M
2bb41b0559 board: qca: arm: common: cmd_bootqca: Update config_selection sequence
Instead of updating the config_names in fdt_blob,
the config_names are maintained locally this avoids
the fdt_blob resizing

Change-Id: Ib1d6fecd973394363012564a8fc9e84d36fc7462
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-03-07 12:32:38 +05:30
Linux Build Service Account
3055b258f6 Merge "aes: Add aes 256 support for ipq5332 platform" 2024-01-16 01:10:58 -08:00
Poovendhan Selvaraj
e15df34ac8 aes: Add aes 256 support for ipq5332 platform
ipq5332 is a TME-L based platform in which before
encrypt/decrypt, we are required to derive a key
handle.

This patch adds support for the same.

Change-Id: I28b327611b62381542086d6d599c4a0195525aca
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
2024-01-16 09:26:15 +05:30
Timple Raj M
443a52e2cb ipq5332: Skip PCIe enumeration during the board_init
In Q6, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init based on CONFIG_IPQ_PCI_INIT_DEFER
config and added it after autoboot is stopped.

Change-Id: I79d0d0aef2eeea9bf49157f405a29f23b3c2239d
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-01-10 03:20:49 -08:00
Ram Kumar D
26c428c064 include: configs: remove unused config
Change-Id: Ic0c412e6424b1da9b62ef8b31aed35307d011fd1
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-12-20 16:34:14 +05:30
Hariharan K
20640c2ea2 configs: ipq807x: Change CONFIG_IPQ_FDT_HIGH address
Changing the CONFIG_IPQ_FDT_HIGH address for ipq807x
platform to avoid the DT blob load address from
overlapping with the tzapp_data(0x4A300000) region.
The kernel created a 2MB readonly mapping of the
DT blob. Due to this the mapping will also extend
into the tzapp(0x4A400000) region, which is TZ
protected.

Hence changing the FDT high address to from 0x4a400000
to 0x4a200000 to avoid access violation issues.

Change-Id: I3283c0afdec8ab126ea109c7ca9184a9ea577f16
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-12-12 01:55:33 -08:00
Timple Raj M
24cab69acd configs: ipq5332: Add fdtfixup support for tiny-nor
Change-Id: Ic75d3ec52f1982fc4e1d6a06cf3227ff2edd7cc2
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-11-09 14:49:15 +05:30
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