Commit graph

297 commits

Author SHA1 Message Date
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
Vandhiadevan Karunamoorthy
d40d98ed31 board: qca: common: Add cmd_dpr support
This change adds cmd_dpr as a common file,
so it will be reused in the future SoC.

dpr support added in Devsoc SoC.

Change-Id: I246a8f51c07c2f6952173bbd72e327ab1119af6e
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-09-27 20:27:06 -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
Linux Build Service Account
14adae7618 Merge "board: qca: devsoc: add reset sequence for AQ & QCA808X" 2022-08-26 00:15:50 -07:00
Timple Raj M
a662e31aee driver: nand: qpic: Add clock setting for qpic-serial nand
This change will add the clock setting for qpic-serial nand

Change-Id: Iae53933423572e35126ceeb359b82d1078d09bf2
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-08-24 12:12:32 +05:30
Ram Kumar D
e4eb0bb018 board: qca: devsoc: add reset sequence for AQ & QCA808X
Change-Id: I57133628314a7291de9e8b4bdb2ba08c31424571
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-08-21 22:46:12 -07:00
Manikanta Mylavarapu
adcfd1d173 board: arm: devsoc: Enable flash based on boot type
This patch eliminates to maintain seperate dts file
for mmc flash. It enables flash node based
on machine id.

Change-Id: I67d95db162630a3bc84429e8a9338097e1e24619
Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
2022-08-16 02:46:13 -07:00
Linux Build Service Account
5c2b183d10 Merge "board: qca: make training offset fixup as generic" 2022-07-04 11:18:41 -07:00
Vandhiadevan Karunamoorthy
121a50914d board: qca: make usb mode fixup generic framework
The configuration from SoC (ipq6018, ipq5018, & ipq9574)
specific files is moved to fdt_fixup.c as a result of
this change.

Change-Id: I4f20e1a58ce88aea415debe305e69fb21cb6e162
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-07-04 03:41:45 -07:00
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
ae383ebf24 Merge "Revert "ipq9574: Power collapse UBI32 Cores"" 2022-05-25 17:38:21 -07:00
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
4ffb97c394 fdt_fixup: Add support to patch up cpu_type and soc version
Change-Id: Iaf24075cf532997993c0bf6a8d6add90b812db77
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-17 13:19:16 +05:30
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
107bdb49b0 board: arm: ipq5018: Add atf crypto fixup support
This changes fixup to '0' in "qcom,controlled-remotely"
property and '2' in "qti,config-pipe-trust-reg" property
in the crypto bam node if ATF is enabled. This will enable
the kernel to do complete bam pipe initialization.

And also this change update the ATF fixup api to
generic name so which will be common for all other
fixup releated to ATF.

Change-Id: I10b2e712883f419433220547a0d7bc6bdf4e125d
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-08 04:13:59 -07:00
Linux Build Service Account
0cdbe1f6d1 Merge "ipq: ported uart_wait_tx_empty function to wait until TX FIFO is emptied" 2022-04-26 01:20:23 -07:00
devi priya
ea029c9d1c ipq: ported uart_wait_tx_empty function to wait until TX FIFO is emptied
Ported uart_wait_tx_empty function from ipq806x to wait until the TX FIFO is emptied
to avoid FIFO corruption during serial init after relocation

Change-Id: Id95627c791c1159fdd3392e6aa35738e7561d489
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
2022-04-25 19:37:07 +05:30
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
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
Gaurao Chaudhari
02dafe6a94 Revert "ipq9574: Power collapse UBI32 Cores"
This reverts commit 5dfb1b4291.

Change-Id: I61579a05e35a29e3104179b5e917344f4ee375bb
Signed-off-by: Gaurao Chaudhari <quic_gaurchau@quicinc.com>
2022-04-01 11:13:11 -07:00
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
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
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
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
Praveenkumar I
5dfb1b4291 ipq9574: Power collapse UBI32 Cores
UBI32 cores are not used in IPQ9574. So, this patch power
collapses all 4 UBI32 cores.

Change-Id: I50e3d963543303440c6af288af1c874717316b35
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-02-16 19:17:25 -08:00
Linux Build Service Account
67c9fbe0a9 Merge "bootqca: add support to boot signed elf image on non-secure board" 2022-01-19 13:06:45 -08:00
Linux Build Service Account
98a992b3f9 Merge "ipq: do uboot fdt fix before driver model gets initialized" 2022-01-19 09:09:01 -08:00
Ram Kumar D
a3b9cad175 bootqca: add support to boot signed elf image on non-secure board
Currently, all mbn header based signed images can be booted on
non-secure board, whereas the signed elf images cannot.

So, added support to boot the signed elf image on non-secure board
by skipping the elf header offset.

Change-Id: Ib5eb5370bea626106028866b33b4dc658744f081
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-01-18 18:15:22 +05:30
Kavin A
e3d7e02357 fdt_fixup: Update path for the node "qti,scm_restart_reason"
This change will fetch "qti,scm_restart_reason" node
from soc node, if it is not available under root node.

Change-Id: I2328dee16d0133be54abd9f565a1a34afb8241b6
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2022-01-12 02:14:00 -08:00
Ram Kumar D
67221191fb ipq: do uboot fdt fix before driver model gets initialized
Currently, FDT fixup is happening after the initialization of the
driver model. But, it has to be done before that, otherwise, FDT
offsets configured in the drivers gets changed,

So, do ipq_uboot_fdt_fixup before driver model gets initialized by
calling it from board_fix_fdt. While at it, enabled the
CONFIG_OF_BOARD_FIXUP config in the required ipq specific defconfigs.

Change-Id: Ib05b9ab33b11716d5ca8db4afd6810e37982a443
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-01-10 17:50:15 -08:00
Linux Build Service Account
01543aee25 Merge "ipq: Clear kernel & rootfs headers after authentication" 2022-01-10 00:39:45 -08:00
Anusha Rao
92575b1451 ipq: Clear kernel & rootfs headers after authentication
After secure sysupgrade, uboot/TZ successfully authenticates
rootfs even if the signature & certificates are not appended
to kernel image. This is because the header and certificates
copied to DDR memory before sysupgrade is retained. Updated
the code to clear this DDR memory after authentication.

Change-Id: Ic2331326baefc945c217a507d4379951dba821ab
Signed-off-by: Anusha Rao <quic_anusha@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-01-07 13:19:46 +05:30
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
anusha
763f64bccc ipq: Pass HLOS partition info to TZ in secure_authenticate cmd
Change-Id: I82f10440c8d81c4ae591bdc5f8f5fdcf91f28719
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-10-27 06:32:20 -07:00
Vandhiadevan Karunamoorthy
f1fc6e4c71 ipq9574: Pass HLOS partition info to TZ
Include SCM call to inform TZ whether HLOS boots from
primary or secondary partition

Change-Id: Ib1fa2b3c12762d1deed5b99f025c83870c142fa6
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-09-20 18:14:23 +05:30
Linux Build Service Account
a6c288098a Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: I20c0dcf584bce3ac488c28fd3dc107c7f5766867
2021-09-06 10:44:52 +05:30
Prasanna Kumar Thoorvas Samyrao Muralidharan
a4d1532bfb ipq807x: Patch x65 GPIO details based on env
Change-Id: I15464aea8696880086b1cb2bfa52e65964ecd297
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2021-08-31 20:29:48 +05:30
Selvam Sathappan Periakaruppan
de094207d3 drivers: net: ipq9574: Move net functions inside EDMA config
Change-Id: I24e60a3726d01abcd27136f4c126652771a198ca
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-18 10:14:18 -07:00
Linux Build Service Account
929ee5398b Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: I02e357adcfe906716a752ecd99b3cf0fecb7e62f
2021-08-17 12:44:22 +05:30
Karthick Shanmugham
590a4b2d9a ipq806x: Disabling usb_init in recovery path for AK alone
This patch skips the usb_init during recovery path for AK platform alone.
No checks for usb_init for all other platforms

Change-Id: I3720f7e159d95bb6656df06ec9aeccfd02f3db01
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2021-08-11 16:04:35 +05:30
Selvam Sathappan Periakaruppan
e488fe5224 ipq9574: Inialialize ethernet ports during boot up
This patch sets the function select as mdc_mdio and also
adds AQUANTIA, QCA80xx PHY ASSERT and DE-ASSERT support.

Change-Id: Ib606b51342df4e80d705271cc661f6fbe1664ed0
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org
2021-07-15 17:26:20 +05:30
anusha
eed8fc7b0d Merge remote-tracking branch 'origin/win.coretech.1.0' into HEAD
Change-Id: I2893089a3b0ca91ea22d49417934f126398a6a58
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-06-30 13:11:44 +05:30
Sivaprakash Murugesan
68a2362a87 fdt_fixup: Add ipq9574 nand compatible to fdt fixup
Change-Id: I38786e8b8c92b14a46faef09c032d627e672e97f
Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
2021-04-15 11:55:06 +05:30
Vandhiadevan Karunamoorthy
15aa7bfe5a bootqca: correct misprint log
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I87b4f3b2aa4af9af41486e8056bd759a1722ba7c
2021-03-22 12:53:49 +05:30
Amandeep Singh
695eea1bf0 ipq5018: Add BT state information in dts
Add BT state information to patch dts when the BT is started at bootloader.

Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
Change-Id: Ib88150bb6c8469ec6d63578ce5c4ab21511aff60
2021-02-03 22:27:08 -08:00
Selvam Sathappan Periakaruppan
ac3c252cf1 qca: Move the function set_platform_specific_default_env
This patch moves the set_platform_specific_default_env
function outside of CONFIG_QCA_MMC as this function is
not dependent on that config.

This will cause unexpected behaviour if suppose MMC
config is disabled.

Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Change-Id: I9bfc35afb054103bfb60b837cff04eed1d94decd
2020-12-30 20:47:57 -08:00
Linux Build Service Account
0536539bd9 Merge "arch: arm: ipq9048: Add support for spi-nor" 2020-12-30 16:07:21 -08:00
Selvam Sathappan Periakaruppan
7bff1c67f4 qca: Move the function set_platform_specific_default_env
This patch moves the set_platform_specific_default_env
function outside of CONFIG_QCA_MMC as this function is
not dependent on that config.

This will cause unexpected behaviour if suppose MMC
config is disabled.

Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Change-Id: I9bfc35afb054103bfb60b837cff04eed1d94decd
2020-12-30 16:13:45 +05:30
Md Sadre Alam
5c027bbc3d arch: arm: ipq9048: Add support for spi-nor
Added support for spi-nor in bam mode.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I3b38396c3fd92705cfce446d512f555258e863bb
2020-12-30 14:53:54 +05:30