This change will enable page_scope_read & multipage_read support for
QPIC.
QPIC version 2.0 onwards , QPIC support page_scope_read &
multipage_read command to enhance the read performance.
In normal page read command SW is needed to write EXEC_CMD register
for each Code word and collect any Status related to that CW before
issueing EXEC_CMD for next CW.
For page_scope read command SW is required to issue EXEC_CMD
only once for a page. Controller HW takes care of Codeword specific
details and automatically returns status associated with each CW to
BAM pipe, dedicated for status deposition.
enabling all bits in NAND_AUTO_STATUS_EN will require 4 data
descriptors of 24 bytes each. This will publish all NANDc status
registers in system memory.
For multipage_read command SW is required to issue EXEC_CMD only
once for all the pages which configured in QPIC_NAND_MULTI_PAGE_CMD
register.
All interrupts will be operational and valid in these modes.
To check the status for each codeword, it is not possible to access
the status registers while the read command is operational in
page_scope & multi_page read modes. Hence, another feature to publish the
status data (for all NAND status registers) by programming the
NAND_AUTO_STATUS_EN register.
For serial NAND:
Read command for page_scope_read = 0x78800032 (QPIC_NAND_FLASH_CMD)
Read command for multi_page_read = 0x78400032 (QPIC_NAND_FLASH_CMD)
For Parallel NAND:
Read command for page_scope_read = 0x00800032 (QPIC_NAND_FLASH_CMD)
Read command for multi_page_read = 0x00400032 (QPIC_NAND_FLASH_CMD)
Now we fixed maximum data bytes read in one go 128KiB(2KiB page),
256KiB (4KiB page), 512 KiB (8kiB page), because from upper layer
we are getting more than 128KiB data bytes request in one go. if so
just changing the value of "MAX_MULTI_PAGE" macro will increase the
maximum data bytes in one go.
Change-Id: I48eea51ff8f5f79f3490d8a538c295ecc3eeee19
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
This change will redirect the unwanted console prints
Change-Id: I06720e774c280774abbb86b8e8cbcf365bbe8570
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Since, rproc upstream driver is enabled in kernel,
update the fdt fixup to patch the nosecure property
needed by the current rproc driver to skip the secure
rproc up and down. Also, add "qca,wcss-aon-reset-seq"
property needed for ipq6018 specific wcss rproc sequence.
Change-Id: Ifab40febe98e9246f14e683301036172f9c64d80
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Since nand configuration is fixed across all HK boards,
removing the nand gpio_entries from device tree and
adding static board param entries. This helps reduce
image footprint and opens up space for new board support.
Change-Id: I89bc11165a6cdfcdb3b4650a73cbeea17895f991
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
model and compatible will be useful when CONFIG_DISPLAY_BOARDINFO is
enabled. Currently it is not enabled for ipq6018. So removing the
corresponding entries.
Change-Id: Ia05059cab91d25283e291564d606eaf81e94781f
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
Emulation DTS is no more required. So just keep it for reference, don't build
it. This helps to free up some space.
Change-Id: I93a462fd720acbe27792fa995317bbb44ca82f9b
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
Copy rootfs header and then append the rootfs image
to it for authentication.
Change-Id: I3e8184fa324e779eb5aa226f65df8e03401d027a
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
This change adds support in u-boot to handle
dumping of DEBUGFS TLV information and MMU Metadata
file.
Change-Id: Iebf67b932ba90b5081e6903c5fe44ed3105df798
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
In ext4fs_read_file in ext4fs.c, a memset can overwrite the bounds of
the destination memory region. This patch adds a check to disallow
this.
Change-Id: I5138ca873009117194407d82af004a637317c1d0
Signed-off-by: Paul Emge <paulemge@forallsecure.com>
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
In ext4fs_read_file, it is possible for a broken/malicious file
system to cause a memcpy of a negative number of bytes, which
overflows all memory. This patch fixes the issue by checking for
a negative length.
Change-Id: Ia9abdb744dfff20aa1a538d38f335284e30a307b
Signed-off-by: Paul Emge <paulemge@forallsecure.com>
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
part_get_info_extended and print_partition_extended can recurse infinitely
while parsing a self-referential filesystem or one with a silly number of
extended partitions. This patch adds a limit to the number of recursive
partitions.
Change-Id: Ibf1449684580a313869ce9961077c46a12a42d8c
Signed-off-by: Paul Emge <paulemge@forallsecure.com>
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
This change involves:
1. pack the hk10 specific system-partition binaries into single-image
2. flash the MIBIB partition based on the machid
3. update the offsets and sizes in the partiton table based on the
selected system-partiton image.
Note: HK10 changes applicable to nand-2k and norplusnand-2k only.
Change-Id: I513e4ffc379ca9a7862e61dab7901f32d5aa9fe6
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>