- Jan 14, 2016
-
-
Stephen Warren authored
This will allow the implementation to make use of data in the block_dev structure beyond the base device number. This will be useful so that eMMC block devices can encompass the HW partition ID rather than treating this out-of-band. Equally, the existence of the priv field is crying out for this patch to exist. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Albert ARIBAUD authored
As of gcc 5.2.1 for Thumb-1, it is not possible any more to assign gd from C code, as gd is mapped to r9, and r9 may now be saved in the prolog sequence, and restored in the epilog sequence, of any C functions. Therefore arch_setup_gd(), which is supposed to set r9, may actually have no effect, causing U-Boot to use a bad address to access GD. Fix this by never calling arch_setup_gd() for ARM, and instead setting r9 in arch/arm/lib/crt0.S, to the value returned by board_init_f_alloc_reserve(). Signed-off-by:
Albert ARIBAUD <albert.u.boot@aribaud.net> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Albert ARIBAUD authored
board_init_f_mem() alters the C runtime environment's stack it is actually already using. This is not a valid behaviour within a C runtime environment. Split board_init_f_mem into C functions which do not alter their own stack and always behave properly with respect to their C runtime environment. Signed-off-by:
Albert ARIBAUD <albert.u.boot@aribaud.net> Acked-by:
Thomas Chou <thomas@wytron.com.tw>
-
git://git.denx.de/u-boot-netTom Rini authored
-
Tom Rini authored
The function hash_show is now only called by hash_command, so mark it as static (and drop from hash.h). We only call hash_command when any of CONFIG_CMD_CRC32, CONFIG_CMD_SHA1SUM or CONFIG_CMD_HASH are set. Since hash.c is linked in unconditionally we must take extra care with functions that bring in read-only strings as these will not be discarded. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jan 13, 2016
-
-
Stefan Monnier authored
In order to support large IDE disks we need to make certain types be lbaint_t now. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Stefan Monnier <monnier@iro.umontreal.ca>
-
Masahiro Yamada authored
To boot Linux, we should prevent Initramdisk and FDT from going too high. Currently, boot_relocate_fdt() checks "fdt_high" environment first, and then falls back to getenv_bootm_mapsize() + getenv_bootm_low() if "fdt_high" is missing. On the other hand, boot_ramdisk_high() only checks "initrd_high" to get the address limit for the Initramdisk. We also want to let this case fall back to getenv_bootm_mapsize() + getenv_bootm_low(). Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
Mugunthan V N authored
Add new api to get device address based on index. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Acked-by:
Jagan Teki <jteki@openedev.com> [Rebased on master] Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
include/power/pmic.h never used any generic spi code from include/spi.h, but this has been added in below commit. "dm: pmic: add implementation of driver model pmic uclass" (sha1: 4d9057e8) Adding functionalities in include/spi.h will trigger a build issue as this been added used in include/power/pmic.h Build issue on trats2 with adding BIT macro on spi.h: ---------------------------------------------------- CC lib/asm-offsets.s In file included from include/power/pmic.h:15:0, from include/power/max77686_pmic.h:11, from include/configs/trats2.h:212, from include/config.h:5, from include/common.h:18, from lib/asm-offsets.c:15: include/spi.h: In function 'spi_w8r8': include/spi.h:327:2: warning: implicit declaration of function 'BIT' [-Wimplicit-function-declaration] Cc: Simon Glass <sjg@chromium.org> Cc: Przemyslaw Marczak <p.marczak@samsung.com> Reported-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Jagan Teki <jteki@openedev.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Mugunthan V N authored
enable spi driver model for am437x_sk_evm as ti_qspi supports driver model Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
Add qspi memory map address to device tree. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
enable spi driver model for dra74_evm as ti_qspi supports driver model Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
enable mmc driver model for dra72_evm as ti_qspi supports driver model Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
Add qspi memory map and control module register maps to device tree. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
adopt ti_qspi driver to device driver model Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
add spi alias for qspi so that spi probes the device and driver successfully. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
spi bus can support dual and quad wire data transfers for tx and rx. So defining dual and quad modes for both tx and rx. Also add support to parse bus width used for spi tx and rx transfers. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Jagan Teki <jteki@openedev.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
Prepare driver for DM conversion. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
Changing the ti_qspi_priv structure and its instance names from to priv for driver mode conversion. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Mugunthan V N authored
To enable memory map in dra7xx, specific chip select must be written to control module register. But this hard coded to chip select 1, fixing it by writing the specific chip select value to control module register. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
Added SPI_TX_DUAL mode flag. Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Jagan Teki <jteki@openedev.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
SLOW, FAST, DUAL, DUAL_IO, QUAD, QUAD_IO changed order to SLOW, FAST, DUAL, QUAD, DUAL_IO, QUAD_IO Cc: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Jagan Teki <jteki@openedev.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
- Add comments on mode_rx - Tab space's Cc: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Jagan Teki <jteki@openedev.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
Used BIT macro like 1 << nr as BIT(nr) where nr is 0...n Cc: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Jagan Teki <jteki@openedev.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
Fixed bit assignment with flags members on spi_slave{} Cc: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Jagan Teki <jteki@openedev.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
This patch moves flags macro's to respective member position on spi_slave{}, for better readabilty and finding the respective member macro's easily. Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Jagan Teki <jteki@openedev.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
Since spi rx mode macro's are renamed to simple and meaninfull, this patch will rename the respective structure members. Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Jagan Teki <jteki@openedev.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
SPI_OPM_RX_AS - SPI_RX_SLOW SPI_OPM_RX_AF - SPI_RX_FAST SPI_OPM_RX_DOUT - SPI_RX_DUAL SPI_OPM_RX_QOF - SPI_RX_QUAD Cc: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Jagan Teki <jteki@openedev.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
SPI_OPM_RX_DIO and SPI_OPM_RX_QIOF are rx IO commands/opmodes for dual and quad. Usually IO operation's are referred to flash protocol rather with spi controller protocol, these are still present in flash side for the usage of spi-nor controllers. Cc: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Jagan Teki <jteki@openedev.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
SPI_OPM_RX_EXTN is a combination of all rx opmode's and spi driver shall use any one of the rx mode at a time not the combination and it is true in case of flash where spi_flash_table mention combination of supported read opmodes so-that the required one will pick based on the rx mode from spi driver. Cc: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Jagan Teki <jteki@openedev.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
While setting quad bit on spansion, macronix code is writing only particular quad bit this may give wrong functionality with other register bits, So this patch fix the issue where it with write previous read reg status along particular quad bit. Cc: Vignesh R <vigneshr@ti.com> Cc: Mugunthan V N <mugunthanvnm@ti.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
One macronix quad bit set using SR, it's good to read back and check the written bit and also if it's already been set check for the bit and return. Cc: Vignesh R <vigneshr@ti.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
One spansion quad bit set using CR, it's good to read back and check the written bit and also if it's already been set check for the bit and return. Cc: Vignesh R <vigneshr@ti.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by:
Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-
Jagan Teki authored
Setting up quad bit for micron devices need to do the same way as other flash devices like spansion, winbond etc does using enhanced volatile config register so this patch adds this support instead of printing "QEB is volatile" Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Peter Pan <peterpandong@micron.com> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by:
Jagan Teki <jteki@openedev.com>
-