Commit graph

13865 commits

Author SHA1 Message Date
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
Ram Kumar D
88f81ffced drivers: i2c: qup: add multi I2C support for all IPQ chipsets
This change adds support to enable multiple I2C bus on all IPQ
platforms. Removed the device specific changes and updated in
a generic way to support multiple I2C on all the IPQ platforms.

Change-Id: Ie13dd744c6317fc9245bc88781e79a9fb3621a62
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-16 07:46:51 -07:00
Vandhiadevan Karunamoorthy
270d1e7245 board: arm: devsoc: Add eMMC support
This changes add 4-Bit eMMC flash support

Change-Id: Iad789ba44aaa0e11da5f8c16dd0a07d2e80de682
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-10 17:18:31 +05:30
Vandhiadevan Karunamoorthy
6a97589d96 board: arm: devsoc: Add ubi command support
This changes enable UBI command support in
devsoc platform.

Change-Id: I2dade2f7ab232f6ae3f2a800437e1543e6a85909
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-05 23:30:10 -07:00
Vandhiadevan Karunamoorthy
018618939e board: devsoc: enable dcache
This changes enable dcache enable and disable support
and also enable dcache command.

Change-Id: I7a11a923c1f87168e9cb519c5dedfcfac2dbc610
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-04-26 05:03:41 -07:00
Vandhiadevan Karunamoorthy
9f81944daa board: devsoc: enable QSPI NAND
Change-Id: Ibfaea936f2e611b31f3fa0946b8fc0fac08cb1be
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-04-24 22:10:48 -07:00
Linux Build Service Account
02e2a47f7a Merge "usb: Change power-on / scanning timeout handling" 2022-04-12 08:37:47 -07:00
Stefan Roese
83713024eb usb: Change power-on / scanning timeout handling
This patch changes the USB port scanning procedure and timeout
handling in the following ways:

a)
The power-on delay in usb_hub_power_on() is now reduced to a value of
max(100ms, "hub->desc.bPwrOn2PwrGood * 2"). The code does not wait
using mdelay, instead usb_hub_power_on() will wait before querying
the device in the scanning loop later. The total timeout for this
hub, which is 1 second + "hub->desc.bPwrOn2PwrGood * 2" is calculated
and will be used in the following per-port scanning loop as the timeout
to detect active USB devices on this hub.

b)
Don't delay the minimum delay (for power to stabilize) in
usb_hub_power_on(). Instead skip querying these devices in the scannig
loop until the delay time is reached.

c)
The ports are now scanned in a quasi parallel way. The current code did
wait for each (unconnected) port to reach its timeout and only then
continue with the next port. This patch now changes this to scan all
ports of all USB hubs quasi simultaneously. For this, all ports are added
to a scanning list. This list is scanned until all ports are ready
by either a) reaching the connection timeout (calculated earlier), or
by b) detecting a USB device. This results in a faster USB scan time as
the recursive scanning of USB hubs connected to the hub that's currently
being scanned will start earlier.

One small functional change to the original code is, that ports with
overcurrent detection will now get rescanned multiple times
(PORT_OVERCURRENT_MAX_SCAN_COUNT).

Without this patch:
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 9 USB Device(s) found

time: 20.163 seconds

With this patch:
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 9 USB Device(s) found

time: 1.822 seconds

So ~18.3 seconds of USB scanning time reduction.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit c998da0d67)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: I520082122370dda5b1de63c2ebee0f9a63fdef92
2022-04-08 16:46:26 +05:30
Selvam Sathappan Periakaruppan
e33184de89 aes: Add aes 256 support for ipq9574 platform
ipq9574 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: I583cee87607af2ab6461b429830cb8ff43cc44d4
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-04-06 07:55:50 -07:00
Linux Build Service Account
618a4ff035 Merge "configs: ipq9574: Enable CONFIG_FLASH_PROTECT" 2022-03-31 05:11:01 -07:00
Anusha Rao
9c14def3e8 configs: ipq9574: 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: I1b5b4593d99d0ddab4d37b29c3669a4c805e80ea
Signed-off-by: Anusha Rao <quic_anusha@quicinc.com>
2022-03-30 22:36:58 -07:00
Selvam Sathappan Periakaruppan
258a568873 Revert "configs: ipq9574: Remove CONFIG_TFTP_BLOCKSIZE config"
This reverts commit 2b85a9c89a.

Change-Id: I138b7a0a11528503f4c88a8364a4670b27a1afdb
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-29 19:19:31 +05:30
Ram Kumar D
90bab1a3a9 qca: arm: devsoc: add SPI support on devsoc
Change-Id: Ic71e46d9ee95ddfda1831a9b0a0a54316fbb9d9e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-25 16:24:15 +05:30
Vandhiadevan Karunamoorthy
2e8afabbcb qca: arm: devsoc: add support for devsoc
This changes add support for uboot base files.

Change-Id: I5f4b937dec30a27ec6acce6ceada7fbed5d5a41d
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-03-20 23:02:17 -07:00
Selvam Sathappan Periakaruppan
2b85a9c89a configs: ipq9574: Remove CONFIG_TFTP_BLOCKSIZE config
Removing this config will configure the tftp block
size to default value of 1468 + headers which is the
same as in other platforms.

Change-Id: If0b49217e5d2548be203a1a7da4000cd5f2e5dcb
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 20:41:55 -07:00
Vandhiadevan Karunamoorthy
0d2d8dc299 ipq5018: add CONFIG_QSPI_LAYOUT_SWITCH support
This changes enables the QSPI_LAYOUT_SWITCH config
which is required for QSPI nand 4k support.
Since SBL must be flashed in 2K layout to support
QSPI Nand-4K, this dynamic switch is required.

Change-Id: I95a68ec9238dd83306322bc57cf93b162e3179f5
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-02-15 05:35:19 -08:00
mario.six@gdsys.cc
301ea68621 dm: Add callback to modify the device tree
Certain boards come in different variations by way of utilizing daughter
boards, for example. These boards might contain additional chips, which
are added to the main board's busses, e.g. I2C.

The device tree support for such boards would either, quite naturally,
employ the overlay mechanism to add such chips to the tree, or would use
one large default device tree, and delete the devices that are actually
not present.

Regardless of approach, even on the U-Boot level, a modification of the
device tree is a prerequisite to have such modular families of boards
supported properly.

Therefore, we add an option to make the U-Boot device tree (the actual
copy later used by the driver model) writeable, and add a callback
method that allows boards to modify the device tree at an early stage,
at which, hopefully, also the application of device tree overlays will
be possible.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 2a792753d6)
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>

Change-Id: I9a5fe4c6d681aaa5c68edd8a2a39d36bf2340fdf
2022-01-10 17:48:07 -08:00
anusha
369ce9f09b ipq: Add support for failsafe boot
Add failsafe boot support to recover from system hang.

Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I49e28a4e88aa16e564065d06f8701dc4f6cb3555
2022-01-03 21:05:45 -08:00
Selvam Sathappan Periakaruppan
8bf3539016 Revert "drivers: net: ipq9574: Update network config"
This reverts commit ac52f93c49.

Change-Id: I4177af51cf3a38204181069ff027225f4fdc78bc
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-15 01:10:01 +05:30
Selvam Sathappan Periakaruppan
ac52f93c49 drivers: net: ipq9574: Update network config
This patch updates the following:

1) Remove ACL configurations
2) Reduce packet size to 1024 bytes

Change-Id: I94c0024fc8efeea12fc2742bbf9b4c3d0907d0ed
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-08 01:03:01 -08:00
Linux Build Service Account
bcf5b57166 Merge "ipq: spi: add multiple spi support" 2021-11-22 01:26:28 -08:00
Rajkumar Ayyasamy
cb1e4ebe62 ipq: spi: add multiple spi support
Added read & write bam pipe entires in all the ipq specific dtsi.
Also, updated the spi bam code with generic code changes to enable
the multiple spi support on all ipq chipsets.

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Signed-off-by: Ram Kumar D <ramd@codeaurora.org>
Change-Id: Ibcdb9d2a9ff7a25f3d296ecdb1aca403511e07d7
2021-11-19 12:26:31 +05:30
Linux Build Service Account
2fb57de7a2 Merge "mtd: qpic_nand: add support to switch between 2K & 4K layout" 2021-11-15 21:38:18 -08:00
Kavin A
869166da30 configs: ipq9574: Update TLV buffer offset
In IPQ9574, TZ adds base addr + 300K(TMEL ctxt size) and stores this addr in imem.
Updated TLV_BUF_OFFSET to subtract TMEL offset from base addr.

Change-Id: I54ea5be4133f2c0435ecaabff392b20c67ec5d48
Signed-off-by: Kavin A <kavia@codeaurora.org>
2021-10-28 18:10:22 +05:30
Rajkumar Ayyasamy
0dc8c1c7a6 mtd: qpic_nand: add support to switch between 2K & 4K layout
qpic_nand sbl -> to switch to 2K layout
qpic_nand linux -> to switch back to 4K layout

Currently this switch is enabled for IPQ9574

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
(cherry picked from commit c9a1c10b2e35ba8f14dafc1f4c07aa5a07a01541)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: I3e429b8cd5e600b4214c01d7949c01536f988e47
2021-10-22 19:23:10 +05:30