Commit graph

36989 commits

Author SHA1 Message Date
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
Timple Raj M
682197e0ec ipq9574: Add support for AP-AL02-C10
break statement to be added to take correct config value

Change-Id: Ie02479fd20901a3c7d79c5b86e81cdea1411609a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-04-20 17:19:44 +05:30
Timple Raj M
a49fbe815c ipq9574: Add support for AP-AL02-C10
Same as AL02-C1 RDP with NSS enabled.

Change-Id: I5ffcb93721d16db4d598fb82e17fa18c25a9d861
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-04-18 21:51:56 -07:00
Linux Build Service Account
dc11926d10 Merge "ipq9574: Add support for AP-AL02-C9" 2022-04-18 09:39:26 -07:00
Linux Build Service Account
0eca7d1459 Merge "ipq9574: Add support for AP-AL03-C1" 2022-04-18 06:53:02 -07:00
Linux Build Service Account
edda8cb4fc Merge "usb: hub: Update handling connect status/change in usb_scan_port()" 2022-04-12 08:37:47 -07:00
Linux Build Service Account
02e2a47f7a Merge "usb: Change power-on / scanning timeout handling" 2022-04-12 08:37:47 -07:00
Timple Raj M
8be38d2865 ipq9574: Add support for AP-AL02-C9
AL02-C9 is similar to AL02-C6 without internal radio

Features: Split Phy WKK (2G + 5G), Split Phy WKK (5G + 6G)

Change-Id: I637123bc133243f20dfc0fddb7353caad8650c3a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-04-12 12:32:36 +05:30
Bin Meng
85d1b0dd66 usb: hub: Update handling connect status/change in usb_scan_port()
It was observed that on Intel MinnowMax board, when xHCI is enabled
in the BayTrail SoC, with a USB 3.0 device connected to the bottom
USB 3.0 port (mapped to xHCI root port #7), its PORTSC register is
always 0x201203 (CCS = 1, CSC = 0). The root cause of such behavior
is unknown yet. Connect status change bit is set on the same port
with a USB 2.0 device (mapped to xHCI port #1, which is a different
port on the root hub).

With current logic in usb_scan_port(), the enumeration process will
abort if it does not detect a connect status change on a hub port.
However since a device connection status is correctly reported, the
enumeration process can still continue.

With this change, USB device connected to the bottom blue port on
MinnowMax board can be enumerated under either SS or HS mode.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Dinh Nguyen <dinguyen@kernel.org>
(cherry picked from commit f7a9e5dd03)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: Ib1acbebaabce8287afe83c658dcd472e2cfae1d5
2022-04-08 04:18:31 -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
Linux Build Service Account
e20b1fe3c1 Merge "configs: ipq5018: enable QCA8033 PHY in default config" 2022-04-06 20:07:53 -07:00
Linux Build Service Account
821640bd8a Merge "aes: Add aes 256 support for ipq9574 platform" 2022-04-06 15:37:30 -07:00
Linux Build Service Account
01a22539b5 Merge "bootqca: clear the MBN header information only if authentication is successful" 2022-04-06 12:21:05 -07:00
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
Kathiravan T
d8e6350603 bootqca: clear the MBN header information only if authentication is successful
During secure boot, after the kernel image authentication, before knowing
the authentication status, we are clearing out the MBN information in the DDR.

When we try to boot the unsigned kernel image on secure board, since
there is no MBN header available, we try to access the invalid memory
region (or) size which leads to data abort (or) system reset without any failure message.

So clear the MBN information only if the image authentication is successful.
If the image authentication is failed, corresponding failure message will be
printed and system will go for reset.

Change-Id: I2cf8e098cdb7e0fc11d0b563d4a0d6a5f0d44ee8
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-04-06 17:16:51 +05:30
Vandhiadevan Karunamoorthy
aceafc0449 configs: ipq5018: enable QCA8033 PHY in default config
Change-Id: I94fb60abb0da081fa04256226c8f5d4430ced89b
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-04-04 22:23:39 -07:00
Linux Build Service Account
3c41cd52fb Merge "ipq: Add support to collect CODERAM.BIN during secure crashdump" 2022-04-04 06:38:19 -07:00
Linux Build Service Account
06179e326d Merge "arm: dts: devsoc: updated the emulation mach-id" 2022-04-04 03:45:45 -07:00
Linux Build Service Account
2ce1c60aa4 Merge "ipq: dump_to_usb needs some delay before usb stop" 2022-04-01 09:38:30 -07:00
Ram Kumar D
3d95086191 arm: dts: devsoc: updated the emulation mach-id
use machid 0xF040000 for devsoc emulation support

Change-Id: Id7487880570d8ef8dfa66cb6bda24798fcf339e2
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-04-01 15:09:16 +05:30
Praveenkumar I
74a56e4feb ipq: dump_to_usb needs some delay before usb stop
Some USB devices taking more time to store the binary file if the
device has multiple partitions. Immediate usb stop can discard the
previously transfered binary. This patch adds delay to overcome the
issue

Change-Id: Iccbf272ebdfc3542ac1474129e07e852e8d7bbaa
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-04-01 11:39:26 +05:30
Linux Build Service Account
618a4ff035 Merge "configs: ipq9574: Enable CONFIG_FLASH_PROTECT" 2022-03-31 05:11:01 -07:00
Md Sadre Alam
b89dc5a9b3 ipq9574: Add support for AP-AL03-C1
Change-Id: I3285dfb517f821255a8a6ae46013a66ec46bb0e2
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-03-31 12:49:06 +05:30
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
Linux Build Service Account
0ee27b4026 Merge "drivers: net: ipq9574: Remove desc/ring buffer freeing" 2022-03-30 21:11:28 -07:00
Linux Build Service Account
3ed51f7586 Merge "drivers: net: ipq: Optimize mdio read/write" 2022-03-30 21:11:28 -07:00
Ram Kumar D
1675ef903a ipq: Add support to collect CODERAM.BIN during secure crashdump
Add support to collect CODERAM.BIN during secure crashdump in
ipq6018 & ipq9574

Change-Id: I7be8a714170c0c408e8904b0bc376d9d5e7f42bf
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-30 08:18:49 +05:30
Selvam Sathappan Periakaruppan
80ba1efa0e drivers: net: ipq9574: Remove desc/ring buffer freeing
The ring/desc's used non-cached memory which cannot
be free'd. Remove these free API's.

1 MB of memory is marked as non-cached and that is used
for EDMA rings/desc's and the same needn't be free'd. It
will be re-init each time during edma init.

Change-Id: Iac1e616db7c929d640c559024e4f65c6ad515400
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-29 19:19:56 +05:30
Selvam Sathappan Periakaruppan
c3b7374d76 drivers: net: ipq9574: Fix qca8075 phy inits
This patch moves the qca8075 phy inits inside the
config. Without this patch, when we disable the
QCA8075 config, then there will be compilation
errors.

Change-Id: Ibed0517c52f896f2af54773aa31260068e116479
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-29 19:19:44 +05:30
Selvam Sathappan Periakaruppan
088df08ece drivers: net: ipq: Optimize mdio read/write
This patch removes the redundant udelay's and
ipq_mdio_wait_busy calls which in turn reduces
the overall AQ FW Load time.

Change-Id: I31f3a940d743528ed212e8cccab522ac249a5a5a
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-29 19:19:39 +05:30
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
Linux Build Service Account
879bea3b41 Merge "fs/fat/fat_write: Fix return value on flush_fat_buffer() failure" 2022-03-29 05:39:46 -07:00
Praveenkumar I
b4c7b606e9 fs/fat/fat_write: Fix return value on flush_fat_buffer() failure
Change-Id: I6e0440e8878b33c20e757df095ab0784a01a444c
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-03-28 16:05:02 +05:30
Linux Build Service Account
575350adb7 Merge "qca: arm: devsoc: add SPI support on devsoc" 2022-03-26 21:36:34 -07:00
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
805db1253b drivers: net: ipq9574: add init non-cache buf support
This changes initialize non-cache buffer every time
before edma configuration.

Change-Id: If7692f9671f6b63f19ae38326bd76320c54766cc
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-03-24 03:44:30 -07:00
Linux Build Service Account
ec98947562 Merge "qca: arm: devsoc: add support for devsoc" 2022-03-22 22:07:41 -07:00
Linux Build Service Account
6f46dfc18d Merge "ipq9574: Update AP-AL02-C8 RDP" 2022-03-22 13:07:45 -07:00
Linux Build Service Account
0090f4831b Merge "ipq9574: Skip aq phy init if already done" 2022-03-22 10:08:13 -07:00
Selvam Sathappan Periakaruppan
96e5b7ce49 ipq9574: Skip aq phy init if already done
Change-Id: If370e9bac97bf59f45f53253bce8f11681e1a873
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-22 03:08:44 -07:00
Selvam Sathappan Periakaruppan
a03d622d6c drivers: net: ipq9574: Remove unused code
Change-Id: Id5e1c33c2438c982dc218561798c588db80c2cab
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-22 03:08:40 -07:00
Linux Build Service Account
061829d7b8 Merge "bootqca: fix for ATF state issue" 2022-03-22 01:17:30 -07:00
Linux Build Service Account
172784c6ec Merge "pack: ipq9574: Add support for QCN9224 changes in single image" 2022-03-21 21:39:24 -07:00
Ram Kumar D
c25f7d9fb9 bootqca: fix for ATF state issue
ATF will not have get_secure_state scm call, use it to check the ATF
status. If get_secure_state scm call is not available means,
is_atf_enabled() call will return 1. This represents that ATF is
enabled.

Change-Id: Id7d96f4e377b2ec596d6bc60c37239118817de1e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-21 14:14:43 +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
Praveenkumar I
be92c58da6 ipq9574: Update AP-AL02-C8 RDP
AL02-C8 is based on AL02-C4. Instead of QCA8075, QCA8084 is used
for Ethernet.

Change-Id: I70e3560461c1a547c40f5b9b839cc94ef2a39520
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-03-21 11:12:02 +05:30
Selvam Sathappan Periakaruppan
b30791ddf4 drivers: net: ipq9574: Disable FDB Learning
This patch is a temporary WAR to fix timeout issues
observed in particular setups during dump collection.
This patch disables FDB Learning for ports 1-6.

Change-Id: I7987bb0286df129c56a07f1708600f78ebf42039
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 20:42:11 -07:00
Selvam Sathappan Periakaruppan
ae49e8da88 drivers: net: ipq9574: Clean up PPE Driver
Change-Id: I1bd4af5c322b0de29ae07bbaa317773c9539e418
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 20:42:06 -07:00
Selvam Sathappan Periakaruppan
eb21dc09bc drivers: net: ipq9574: Clean up EDMA driver
Change-Id: Ibd2afc13a0b2129d8e11767c3956078d5a4737f5
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 20:42:01 -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