Commit graph

37165 commits

Author SHA1 Message Date
Linux Build Service Account
3ed51f7586 Merge "drivers: net: ipq: Optimize mdio read/write" 2022-03-30 21:11:28 -07:00
Selvam Sathappan Periakaruppan
8b3a35fe92 Revert "arm: qca: smem: Update platform structure"
This reverts commit a9a4bd68f1.

Change-Id: I88c81b16edc7933e119190c36e845e88176efc84
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-31 09:07:32 +05:30
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
Selvam Sathappan Periakaruppan
03705eecee drivers: net: ipq9574: Remove SC PPE BYPASS EDMA Config
Setting this bit will not allow PPE to take any action on the
packets. Remove this configuration as its not needed in U-Boot
EDMA.

Change-Id: I45cb93a4f5072dd882179eca5a14bc4a25624f26
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 20:41:24 -07:00
Selvam Sathappan Periakaruppan
e9bcf6323b drivers: net: ipq9574: Enable TX/RX port counters
Change-Id: I92717794a5fb81fcbfad64d48b39d0115a953a21
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 20:41:19 -07:00
Linux Build Service Account
769b7dde31 Merge "arm: qca: smem: Update platform structure" 2022-03-17 17:14:33 -07:00
Linux Build Service Account
e30d795b45 Merge "drivers: net: ipq9574: Drop DA MAC rule" 2022-03-17 11:11:45 -07:00
Linux Build Service Account
3aa37aff5f Merge "drivers: net: ipq9574: Add src_mac drop acl" 2022-03-17 11:11:45 -07:00
Linux Build Service Account
05ab01550e Merge "drivers: net: ipq9574: Enable queue ac and counter" 2022-03-17 11:11:45 -07:00
Linux Build Service Account
edc8e9c436 Merge "drivers: net: ipq9574: Update PPE TDM/Sched Config" 2022-03-17 11:11:45 -07:00
Linux Build Service Account
66cd35840c Merge "drivers: net: ipq9574: Fix VSI configuration" 2022-03-17 11:11:44 -07:00
Selvam Sathappan Periakaruppan
a9a4bd68f1 arm: qca: smem: Update platform structure
This patch adds a v4 platform structure adding
oem_id and product_id to the existing fields in
smem.

Change-Id: Ie25068948beda04d44b6296d48805a618638ec71
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 09:39:10 -07:00
Linux Build Service Account
1ac9a63612 Merge "ipq9574: Add support for AP-AL02-C7 and AP-AL02-C8" 2022-03-17 04:41:15 -07:00
Selvam Sathappan Periakaruppan
d909c4b4ad drivers: net: ipq9574: Drop DA MAC rule
This patch adds DA MAC rule. This rule can be used
if we want to drop packets with a particular DA MAC
address.

Change-Id: I32ef53ada1518f6880faa7402ccaaedb5b32a90b
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 16:27:06 +05:30
Timple Raj M
3367faaa3b ipq9574: Add support for AP-AL02-C7 and AP-AL02-C8
AP.AL02-C7 is similar to AP.AL02-C4 with emmc boot
Features: WK 2G + WK5G + WK 6G

AP.AL02-C8 is similar to AP.AL02-C6 with emmc boot
Features: Internal 2G +WK 5G + WK 6G

Change-Id: I31d1f65b071dfddc4eee393d292add58d3ddeadc
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-03-16 18:34:33 +05:30
Selvam Sathappan Periakaruppan
1cbcdb8fcb drivers: net: ipq9574: Add src_mac drop acl
This patch adds ACL to drop the packets with src
mac address.

Change-Id: Ib944154ffb53b9bf67a178a5ab08cd9f12866b4a
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-15 22:37:10 -07:00
Selvam Sathappan Periakaruppan
7b03faafe8 drivers: net: ipq9574: Enable queue ac and counter
Change-Id: I954d5316cf1636afa5b9622ede63554066969d8f
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-15 22:37:06 -07:00
Selvam Sathappan Periakaruppan
be07da4a76 drivers: net: ipq9574: Update PPE TDM/Sched Config
Change-Id: I992de44db5dd5a6d28b3bd54ddcc005d0c46acc9
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-15 22:37:01 -07:00
Selvam Sathappan Periakaruppan
1f1a5ed7b6 drivers: net: ipq9574: Fix VSI configuration
Change-Id: Ia7f9d23ad991738cb9f55a14e7c310791a837ea5
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-15 22:36:54 -07:00
Selvam Sathappan Periakaruppan
a89291cec3 ipq: crashdump: Support for dump_to_flash in nand-4k
Previously the MAX_NAND_PAGE_SIZE was defined as 2K
during when we will face issues when dumping to
flash in nand-4k. This patch updates the max size
to 4K to support the same in nand-4k.

Change-Id: Idcec9998f56df1db21fc03097d0454efd81bbbd3
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-15 03:09:30 -07:00
Karthick Shanmugham
927b0e7881 pack: ipq9574: Add support for QCN9224 changes in single image
This patch packs the Al02-C4 specific system parition bin into single image,
flash mibib based on machid, use the offsets and size from the selected system
partition table

Change-Id: If645357c63c79c99a69f2b30dca31a387467fa5e
Signed-off-by: Karthick Shanmugham <quic_kartshan@quicinc.com>
2022-03-14 22:07:00 -07:00
Linux Build Service Account
a8451b0a27 Merge "bootqca: use get_secure_state scm call instead of atf env" 2022-03-08 10:46:16 -08:00
Linux Build Service Account
1bc74c6b9e Merge "drivers : nand : Update Serial training fixup" 2022-03-08 05:12:40 -08:00
Ram Kumar D
b7ca23da1c bootqca: use get_secure_state scm call instead of atf env
Currently, if atf env is set in the secure board. secure boot
sequence gets bypassed. This is not an expected behaviour. So,
removed support the atf env variable. Instead atf enabled status
can be verified using get_secure_state scm call.

Moreover, as per current design get_secure_state scm call will
not be implemented in ATF in future as well. If its implemented,
Bit 7 should be made to 1.

Change-Id: I0adcfac7bbcb10fe6906fd8a3f10a440ec7080ae
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-08 17:00:07 +05:30
Saahil Tomar
4c8be9b750 drivers : nand : Update Serial training fixup
This change fixup the magic word (0xBAD0FF5E) instead of zero.
So the uboot will skip setting qcom,training_offset
if the serial training partition is not present in flash.

Change-Id: I0ee8c9475e1153fdbc295691ceb2a4b1d6fdd394
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-03-07 14:45:01 +05:30
Linux Build Service Account
252874cd42 Merge "ipq9574: Power collapse UBI32 Cores" 2022-02-21 20:38:41 -08:00
Linux Build Service Account
8df528daa4 Merge "ipq9574: Add support for AP-AL02-C6" 2022-02-18 02:13:20 -08:00