A new SCM has been added in TZ to support AES 128 byte context length.
Updated aes driver to add the same. Added new command as mentioned
below for 128 byte context length.
derive_aes_256_max_ctxt_key 0x2 0x20 0x41000000 0x80
Note: This new SCM call has been introduced since initial SCM call does not
derive keys the same way as Linux Fscrypt feature (128 byte context length)
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ie71fc0e9b3c0b0d01995745bb61cd2d82f07eb85
Add support to increase context length if tz supports
128 bytes context length else fall back to old method.
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ieded2c0139152e82011f792e91b875548fd29251
The missing calibrace leads to an in-valid hardware access,
it in-turn causes silent reboot. So, added the calibrace to
define the scope for the loop statement.
Change-Id: I0c719798af35eb21a824ee6f570501dab720e241
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
This patch enables support to do minidump on DDR.
Enable this support by setting respective reserved mem address
in the env "dump_to_mem"
setenv dump_minimal 1
setenv dump_to_mem "<addr> <size>"
addr & size param should matches with respect to the kernel
reserved memory region.
setenv dump_to_mem "0x44000000 0x500000"
Change-Id: I3f98269d42eed1e6301ed76eb9d1bcdd82046d41
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
This change adds MI01.3-C3 (RDP486) which is a derivative of RDP442
Change-Id: Ia19d7bf94962a52b76cc4556969c4ed1cd3706b6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
ipq5332 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: I28b327611b62381542086d6d599c4a0195525aca
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Here we are adding support to fix several warnings and
NPD.FUNC.MUST, ABV.GENERAL, INCORRECT.ALLOC_SIZE KW issues
in sysupgrade source code.
Change-Id: If8053878696494c1425ebd20840d17d9c6a74524
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
In Q6, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init based on CONFIG_IPQ_PCI_INIT_DEFER
config and added it after autoboot is stopped.
Change-Id: I79d0d0aef2eeea9bf49157f405a29f23b3c2239d
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
Updating the config_name parameter to
support openwrt backwards compatibility.
Change-Id: I129aad5df7e14bcf39d9f971a860b5884cde2667
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
During rootfs authentication, this following patch makes
the uboot will load rootfs at the load address mentioned
in the rootfs elf hdr which is present at the end of
kernel image.
Change-Id: Iba9d31c72d01449b858b3866f38f369b67011cae
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
Changing the CONFIG_IPQ_FDT_HIGH address for ipq807x
platform to avoid the DT blob load address from
overlapping with the tzapp_data(0x4A300000) region.
The kernel created a 2MB readonly mapping of the
DT blob. Due to this the mapping will also extend
into the tzapp(0x4A400000) region, which is TZ
protected.
Hence changing the FDT high address to from 0x4a400000
to 0x4a200000 to avoid access violation issues.
Change-Id: I3283c0afdec8ab126ea109c7ca9184a9ea577f16
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
Fix pci_find_ipq_devices(), which is checking all the PCIe hose from
the given ID and if searching device is not present, it moves till
the last PCIe hose and finds the device. This leads to duplicate
entries if unknown devices are also present. Instead it should
check only the selected PCIe hose and return success or failure.
Add QCN6432 in PCI device list so that list_pci command can show it.
Change-Id: I1fd1af9a760354f558680889dd5804abd6145dea
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
If usec >= 224000 usec, then:
usec * GPT_FREQ_KHZ = 224000 * 19200 >= 0x100590000,
which is a 33 bits value
To fix this usec is typecasted to 64 bit
(unsigned long long)usec * GPT_FREQ_KHZ
Change-Id: Ib1642d39b0581d2c04c62e415a1fd2dfed47fff1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
In Kernel, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init and added it after autoboot is stopped.
Change-Id: I9c43b4da07ddd7e44f8c58a51dfd44701590f59b
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
This RDP 483 (MI04.3) is based on RDP478 (MI04.1-C2).
RDP483 has u-boot eth config:4*2.5GE (1+3)
Change-Id: I670e32f3c49a2a71bca8d349b7f4f5334075836c
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>