Currently NAND_CTRL register write generates error.
Register writes to operational registers should always be done
through command descriptors if BAM_MODE is already enabled.
For NAND boot, bootloader already enables BAM_MODE so read the
NAND_CTRL register value and write only if BAM_MODE is not set.
Change-Id: Iabc3e06dc7d8d8b36cdf35907217e1c4d7cc960a
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Registering SPI nor flash as mtd device was based
on 'spi_gpio' entry in dts, whereas it will be done
based on 'spi_nor_available' in this patch as spi_gpio
entry is not required in some of the SPI nor
supported boards.
This patch also enables the spi nand support
in DK04-c5 board.
Change-Id: I2d70a6c108321d0f504daab7bc4e74739499582a
This command helps to debug the phy issues.
Change-Id: If8354d6826795d9ef9d44112582d3b911963bda5
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
The AQ-FW support is used only in ipq807x. Add the __weak for
ipq806x and ipq40xx boards.
Change-Id: If5b13b1a9c98d7b74decd15450377f8e866d33e2
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
If crashdump magic is found, should not allow user
to access u-boot prompt as tz will be in unsecure state.
Change-Id: Icdc94c33fb87664857bafa981950f9768794cf11
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This patch will change the default "super-speed" mode to "high-speed"
If 'usb_mode' is setting to "peripheral" in u-boot it will set with
"high-speed" as 'maximum-speed'. Changes are only for USB port 0.
Affected features : diag, USB console.
Change-Id: I60708cfb4706eea77f00cb5c2bedc7e7b77989f5
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
This patch fixes the issues in below i2c commands.
i2c probe , i2c md and i2c mw commands.
Change-Id: I3dd99e8846452b20a71b0664d325b309f3564579
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
This patch enables SPI-NAND support for DK and making
chip select gpio configurable from DTS.
Change-Id: I2ca7d3021fa27da1d83e2a787a1dc626919124f8
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
ipq806x has different alignment of smem_ram_ptable structure when
compared to ipq40xx / ipq807x, which leads to fetching of wrong
information.
This patch addresses the issue by moving the above structure to
board specific.
Change-Id: If7bf2fc54243fc38d1b0a5c9e6f6ba6f9641c700
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
Adding support for DK04-C2,C3,C4,C5 and
DK07-C1,C2,C3 boards.
Change-Id: I2727645086328331deffd63849bedbf119d163c8
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
Enabling spi dma driver for ipq40xx. This patch
also enables rx and tx pipe configurable from dts.
Change-Id: Id6009f6e9863ab2cdf8b105461d62aa68e3d004b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
If autoboot command fails, it returns to prompt
without ethernet initialized. Hence, moved it to
the end of autoboot to make sure ethrernet is
initialized before entering the prompt.
Change-Id: I79ea6f51842c544e9eb3b97bf7658c45feb34f0b
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
In eMMC flash, whenever we save the env variables, it is updated in
the wrong offset instead of using the APPSBLENV partition, which leads
to the system hang in the next reboot. This patch addresses the same.
Also, moved the function board_mmc_env_init to common/env.c, since
the same functionality is used across ipq806x/ipq40xx/ipq807x.
Change-Id: I7e85cbb004ab1ca4d7c926359a8d9a1912922971
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
Enable the PPE tx_mac only if the phy link is up else disble
the PPE tx_mac.
Change-Id: I7226a104fa287f8378b98923a00d0caa3f91079d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This patch involves changes which makes
sure that spi related functionalities are
used only when the config corresponding
to it is defined.
This change will allow us to disable or
enable spi as per our need.
Change-Id: I6c3865a6028b9f2a50fe0bface35b1695b17b515
Signed-off-by: speriaka <speriaka@codeaurora.org>
kernel fw_env config has statically defined env size
to 256KB on NAND and eMMC which requires u-boot also
to be configured the same way.
Change-Id: If463896ff861036bc856ef7bd342f6233cd82d7a
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
Added length check in tftp to make sure the image file address
cannot start in u-boot reserved memory (RAM start + ~32MB) and
the image size cannot exceed (RAM end - ~4MB), so that it cannot
lead to Uboot stack corruption.
Change-Id: Ia045cc57d22c2e6eb7999b2e461a0e652ce2e3ae
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>