Enable or disable of cache functions provided by board.
This should override the default functions, hence should not be
__weak function definition in board command files.
Change-Id: I676c1f05975c723a88a0cbd2596e907fcf089eff
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
This kw issue occurred with below message:
"Use of free memory (access) - possible".
In order to fix this issue, we have removed all
dereferenced buffer after freeing the buffer..
Change-Id: I080c45b17397333c3f897b960bdf6fca01b7a53e
Signed-off-by: Avinash Pandey <avinasv@codeaurora.org>
U-Boot now has dcache turned on. This requires cache flushing to
be performed before executing smc instrution. There are calls which
are made to TZ with huge buffer (such as kernel image for authentication).
Flushing and invalidating by address for such huge buffer will have
a performance impact, as the size of buffer is vastly bigger than
the cache size itself. Hence performing a flush of the entire cache
as opposed to performing cache flush with a start and end address.
Change-Id: If90a49d240ecf021ac9714025b6de0cce3fb9fc8
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
Since OCR value is changed,1ms delay is added to
give cards time to respond.
Change-Id: I18bddbc9d01ab2c62529c9f2065331f83b7ecca9
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
Kw issues occurred with below message:
"Array 'buf'of size 256 may use index value(s) -2..0".
In order to fix this issue, error message will be
returned with array index out of index if buffer
size isless than 0 or if it increases buffer size.
Change-Id: I5a7885b0ee2fd6e9c0ac3083b28366f1ae5ceaee
Signed-off-by: Avinash Pandey <avinasv@codeaurora.org>
This change modifies the size of IMEM region during dump
collection in secured and non-secured boots.
Change-Id: If418a353ff8fa37bdad20730f9dfcc46cddd5491
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
As 52Mhz clk does not have 50% dutycycle, setting
48MHz clk for mmc data transfer mode
Change-Id: Id9c0ce07fe652df7d575c5ea11f1d83eab0fb24c
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
In non-secured boards the dump save size is set to
be the size of RAM buffer. Since the name field of
dumpinfo was same for both secured and non-secured
boards,the dump save size for secured board is also
set to RAM buffer size which causes data abort during
secure crashdump collection. This patch retains the
actual save size of secure board.
Change-Id: Ib26fc4730355a7f0cb131dee61983a15c1825f6f
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
fdt_path_offset function will return zero or positive
value for success case.So fixed the return value check
accordingly.
Change-Id: Iafacdaf7c12cecdb882f3795f6145730efe938a6
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Since mmc_deinit is invoked in ft_board_setup, removing the
redundant call.
Change-Id: I9ce0c6cf2f6ae197eaf77718dc6097d5a0070b76
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
Do generic flash structure initialization, for the devices
not listed in the SPI NOR flash lookup table, so that
we can access the flash even before the support is added.
Block size and density are obtained from smem.
Change-Id: I568eb538615bb36124c43a2509bcfce2e4a1188a
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
If readonly bit of gpt attribute is set,
power-on write protection will be enabled.
Change-Id: I7dd9250fd592988626e889f92f07c6839585eb7d
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This patch will improve the spi flash read/write
performance.
Change-Id: I3939d202bf504a3386a4ae44644c715ec17f01ab
Signed-off-by: Antony Arun T <antothom@codeaurora.org>