Commit graph

13889 commits

Author SHA1 Message Date
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
Vandhiadevan Karunamoorthy
c04d3ac26e configs: devsoc: Enable ELF authentication
Change-Id: Ib740007ed7c9410b5c8d119e3bf2805692cbba15
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-07-08 12:16:42 +05:30
Linux Build Service Account
ced5244d01 Merge "board: arm: devsoc: add QCA8033 ethernet PHY support" 2022-07-07 05:50:43 -07:00
Linux Build Service Account
d8518bbf31 Merge "board: devsoc: add GZIP support for crash dump" 2022-07-06 03:49:25 -07:00
Vandhiadevan Karunamoorthy
5a5b819cda board: devsoc: enable USB crashdump
Change-Id: Ibe81e24299a94c9f48e417b47b6f07c6d9888c16
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-07-05 04:17:37 -07:00
Vandhiadevan Karunamoorthy
4ecf1588f1 board: devsoc: add GZIP support for crash dump
These changes only add GZIP support for the
default u-boot; they do not apply to the tiny u-boot.

Change-Id: I1f022b77d6c2a82bdff36073746b409e126b5d35
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-07-05 11:43:35 +05:30
Ram Kumar D
9a6c369849 driver: net: devsoc: add support for S17C switch
Change-Id: If7ccaf9b63b68b0635f955228b161040ab5618cb
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-07-05 09:01:13 +05:30
Ram Kumar D
498754d0eb drivers: net: devsoc: Add support for QCA8084 switch mode
Change-Id: Ibc6517c39f0f9a24e18e62a6810b529b2d60afcf
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-07-05 09:01:13 +05:30
Vandhiadevan Karunamoorthy
143c32d5a6 board: qca: make training offset fixup as generic
This update replaces the board-specific QPIC nand
training offset fixup with a generic framework.

Change-Id: I0fd9203334da3846cfbbba880bc6b4701e9d162b
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-07-04 03:41:26 -07:00
Linux Build Service Account
fe643c818e Merge "config: ipq53xx: Tiny-nor support" 2022-07-01 20:18:45 -07:00
Timple Raj M
42da641fc8 config: ipq53xx: Tiny-nor support
Added tiny-nor support for ipq53xx

Change-Id: I1e86031343a165923982a150405c3c416e635ed6
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-07-01 12:43:15 +05:30
Vandhiadevan Karunamoorthy
b8a0869172 board: devsoc: enable i2c support
Change-Id: I78125db95b433857f3c68bdfc9f3d85e2dc91ed0
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-06-30 23:11:41 -07:00
Linux Build Service Account
d3a69cb4c8 Merge "configs: ipq: Update runtime failsafe bits" 2022-06-28 09:42:03 -07:00
Vandhiadevan Karunamoorthy
0b11d84fed board: arm: devsoc: update TZ end address
Change-Id: Ie5560a498db86079d688005ac171602694941d00
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-06-21 05:14:33 -07:00
Ram Kumar D
a95cba141c drivers: net: devsoc: added eth support for devsoc
Change-Id: I4d646c1a89d90febd573ae92980e0c665b1dc060
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-31 23:52:34 +05:30
Vandhiadevan Karunamoorthy
6761f6cf0d board: devsoc: Enable reset support
Change-Id: I989316b3f6f663f6b446208cf4054a1757c2161a
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-30 23:03:03 -07:00
Vandhiadevan Karunamoorthy
9f914ab484 board: devsoc: Enable crashdump support
These changes add crashdump support in devsoc platform.

Change-Id: Ifdb9e1e65a4e93407506e987201b4ddeac753927
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-30 23:02:44 -07:00
Anusha Rao
2249c9dcbc configs: ipq: Update runtime failsafe bits
Update the feature to use BIT10 and BIT11 for NONHLOS
and HLOS failure detection instead of BIT9 & BIT10.

Change-Id: Idb649770da0cba63554adce861e901f582637c86
Signed-off-by: Anusha Rao <quic_anusha@quicinc.com>
2022-05-25 21:13:43 +05:30
Selvam Sathappan Periakaruppan
7eaa8ee017 configs: ipq9574: Disable unused configs
This patch disables unused configs to reduce
U-Boot image size. This is required since
the image size was very close to the partition
size.

Change-Id: Ibd3131cb0f579deb3d34aff6857c97ca7338af19
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-05-25 04:08:48 -07:00
Selvam Sathappan Periakaruppan
18d2b93ab3 drivers: net: Add support for QCA8084 PHY
This patch adds initial support for qca8084 PHY
which is based on qca8081 PHY.

qca8084 PHY has support for 4x2.5G.

Change-Id: Ic767c19fad050e5ee9a97ad7fa50c1b6b27893dd
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-05-25 04:08:31 -07:00
Vandhiadevan Karunamoorthy
5837a5e6c6 board: arm: devsoc: Add USB support
This changes enable usb support.

Change-Id: Id75f3dbbe538a99bd4290463ed468b5575491edd
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-22 23:18:23 -07:00
Vandhiadevan Karunamoorthy
e2d76a1c7a board: arm: devsoc: Enable PCIE support
The PCIE node is disabled by default in
the emulation platform

Change-Id: I51041186a57d08b58c1f7c85dd1a90fbeb24aac9
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-19 12:32:40 +05:30
Linux Build Service Account
6ac309e7bd Merge "devsoc: Add dummy handler to fixup the USB device mode" 2022-05-17 12:20:07 -07:00
Ram Kumar D
9b49d9c097 fdt_fixup: Add devsoc nand compatible to fdt fixup
Change-Id: I2d3f0ad48528554ed93c5aa89c25dd8e69a073a3
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-17 13:18:41 +05:30