| 63c09417 | 26-Nov-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY
Commit e2f88dfd2d96 ("libfdt: Introduce new ARCH_FIXUP_FDT option") allows us to skip memory setup of DTB, but a problem for ARM is that spi
libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY
Commit e2f88dfd2d96 ("libfdt: Introduce new ARCH_FIXUP_FDT option") allows us to skip memory setup of DTB, but a problem for ARM is that spin_table_update_dt() and psci_update_dt() are skipped as well if CONFIG_ARCH_FIXUP_FDT is disabled.
This commit allows us to skip only fdt_fixup_memory_banks() instead of the whole of arch_fixup_fdt(). It will be useful when we want to use a memory node from a kernel DTB as is, but need some fixups for Spin-Table/PSCI.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Alexey Brodkin <abrodkin@synopsys.com> Acked-by: Simon Glass <sjg@chromium.org> Fixed build error for x86: Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 2f11cd91 | 13-Nov-2016 |
Simon Glass <sjg@chromium.org> |
dm: core: Handle global_data moving in SPL
When CONFIG_SPL_STACK_R is enabled, and spl_init() is called before board_init_r(), spl_relocate_stack_gd() will move global_data to a new place in memory.
dm: core: Handle global_data moving in SPL
When CONFIG_SPL_STACK_R is enabled, and spl_init() is called before board_init_r(), spl_relocate_stack_gd() will move global_data to a new place in memory. This affects driver model since it uses a list for the uclasses. Unless this is updated the list will become invalid. When looking for a non-existent uclass, such as when adding a new one, the loop in uclass_find() may continue forever, thus causing a hang.
Add a function to correct this rather obscure bug.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| e2099d78 | 27-Nov-2016 |
Vladimir Zapolskiy <vz@mleia.com> |
common: sh: add necessary define bits to board_f
Since a platform conversion to generic board support has not been accomplished some architecture specific bits are missing from board_f init sequence
common: sh: add necessary define bits to board_f
Since a platform conversion to generic board support has not been accomplished some architecture specific bits are missing from board_f init sequence, the change adds a number of basic expected callbacks into early init sequence.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 0b3a58ee | 30-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Separate SCSI private block description initialization
When blk_create_device() is called some parameters in blk_desc are automatically filled. Separate SCSI private initialization and SCSI fu
scsi: Separate SCSI private block description initialization
When blk_create_device() is called some parameters in blk_desc are automatically filled. Separate SCSI private initialization and SCSI full block device initialization not to rewrite already prepared data.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c002e39a | 30-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Change scsi_scan() to be able to return value
With DM_SCSI this function will return more than one return value to cover errors.
Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mi
scsi: Change scsi_scan() to be able to return value
With DM_SCSI this function will return more than one return value to cover errors.
Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 545a2847 | 30-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Make private functions static
Several functions should be static because they are not exported to any other file. Warnings were reported by sparse C=1.
Signed-off-by: Michal Simek <michal.sim
scsi: Make private functions static
Several functions should be static because they are not exported to any other file. Warnings were reported by sparse C=1.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 182ec153 | 30-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Remove completely unused functions
These functions are not called for any location. This patch removes them scsi_trim_trail(), scsi_get_disk_count() and scsi_setup_read6().
Signed-off-by: Mic
scsi: Remove completely unused functions
These functions are not called for any location. This patch removes them scsi_trim_trail(), scsi_get_disk_count() and scsi_setup_read6().
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| cdb93b27 | 18-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Simplify scsi_read/scsi_write()
There is no reason to directly point to static allocated array when we have proper block_dev pointer available via parameter in !CONFIG_BLK. For CONFIG_BLK this
scsi: Simplify scsi_read/scsi_write()
There is no reason to directly point to static allocated array when we have proper block_dev pointer available via parameter in !CONFIG_BLK. For CONFIG_BLK this is read directly from uclass platdata.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| bccfd9e9 | 18-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Move pccb buffer initalization directly to scsi_detect_dev
pccb is pointer to temporary buffer which is used only for sending command. Make it local as is done in scsi_read/scsi_write.
Signed
scsi: Move pccb buffer initalization directly to scsi_detect_dev
pccb is pointer to temporary buffer which is used only for sending command. Make it local as is done in scsi_read/scsi_write.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 4dbee176 | 18-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Take lun from device block description
Prepare LUN(Logical unit number) directly in block description structure and reuse it.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by
scsi: Take lun from device block description
Prepare LUN(Logical unit number) directly in block description structure and reuse it.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 570712f4 | 18-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Extract device detection algorithm
The patch enables running detection algorithm on block device description structure.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simo
scsi: Extract device detection algorithm
The patch enables running detection algorithm on block device description structure.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 92ca476c | 18-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
scsi: Extract block device initialization
Extract block device initialization to specific function.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
| 15a2acdf | 16-Nov-2016 |
Michal Simek <michal.simek@xilinx.com> |
common: miiphyutil: Work and report phy address in hex in mdio cmd
It is confusing that mdio commands work and report phy id as decimal value when mii is working with hex values.
For example: ZynqM
common: miiphyutil: Work and report phy address in hex in mdio cmd
It is confusing that mdio commands work and report phy id as decimal value when mii is working with hex values.
For example: ZynqMP> mdio list gem: 21 - TI DP83867 <--> ethernet@ff0e0000 ZynqMP> mdio read ethernet@ff0e0000 0 Reading from bus gem PHY at address 21: 0 - 0x1140 ZynqMP> mii dump 21 0 Incorrect PHY address. Range should be 0-31 ... ZynqMP> mii dump 15 0. (1140) -- PHY control register -- (8000:0000) 0.15 = 0 reset
U-Boot normally takes hex values that's why this patch is changing mdio command to handle hex instead of changing mii command to handle decimal values.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 09410c65 | 01-Dec-2016 |
Marek Vasut <marex@denx.de> |
SPL: mmc: Make spl_mmc_load_image available
Make the spl_mmc_load_image() available globally, so it can be invoked directly by SPL on extremely space-constrained systems.
Signed-off-by: Marek Vasut
SPL: mmc: Make spl_mmc_load_image available
Make the spl_mmc_load_image() available globally, so it can be invoked directly by SPL on extremely space-constrained systems.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Jaehoon Chung <jh80.chung@samsung.com>
show more ...
|
| b5b838f1 | 01-Dec-2016 |
Marek Vasut <marex@denx.de> |
mmc: Tinification of the mmc code
Add new configuration option CONFIG_MMC_TINY which strips away all memory allocation within the MMC code and code for handling multiple cards. This allows extremely
mmc: Tinification of the mmc code
Add new configuration option CONFIG_MMC_TINY which strips away all memory allocation within the MMC code and code for handling multiple cards. This allows extremely space-constrained SPL code use the MMC framework.
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Jaehoon Chung <jh80.chung@samsung.com>
show more ...
|
| a2cb3108 | 30-Nov-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-mips |
| 4c2cb115 | 09-Jan-2016 |
Daniel Schwierzeck <daniel.schwierzeck@gmail.com> |
common/board_f: enable initr_trap for MIPS
Enable initr_trap hook also for MIPS to install and enable U-Boot's specific MIPS exception handlers.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzec
common/board_f: enable initr_trap for MIPS
Enable initr_trap hook also for MIPS to install and enable U-Boot's specific MIPS exception handlers.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 4d6647ab | 30-Nov-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://www.denx.de/git/u-boot-imx |
| 6b29a395 | 30-Nov-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-mpc85xx |
| c8d7647f | 01-Nov-2016 |
Max Krummenacher <max.oss.09@gmail.com> |
spl: mmc: fix switch statement
If CONFIG_SPL_LIBCOMMON_SUPPORT is not defined there is a lone case statement at the end of the switch leading to a compile error. Remove the offending case statement.
spl: mmc: fix switch statement
If CONFIG_SPL_LIBCOMMON_SUPPORT is not defined there is a lone case statement at the end of the switch leading to a compile error. Remove the offending case statement.
| common/spl/spl_mmc.c:339:7: error: label at end of compound statement
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Marek Vasut <marex@denx.de>
show more ...
|
| e94793c8 | 21-Nov-2016 |
Stefan Agner <stefan.agner@toradex.com> |
spl: add USB Gadget config option
Introduce USB Gadget config option. This allows to combine Makefile entries for SPL_USBETH_SUPPORT and SPL_DFU_SUPPORT.
Signed-off-by: Stefan Agner <stefan.agner@t
spl: add USB Gadget config option
Introduce USB Gadget config option. This allows to combine Makefile entries for SPL_USBETH_SUPPORT and SPL_DFU_SUPPORT.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Tested-by: Ravi Babu <ravibabu@ti.com>
show more ...
|
| 5991703e | 21-Nov-2016 |
Stefan Agner <stefan.agner@toradex.com> |
spl: dfu: move DFU Kconfig to SPL Kconfig
The DFU Kconfig menu entries should be part of the SPL Kconfig file. Also avoid using the top level Makefile by moving the config dependent build artifacts
spl: dfu: move DFU Kconfig to SPL Kconfig
The DFU Kconfig menu entries should be part of the SPL Kconfig file. Also avoid using the top level Makefile by moving the config dependent build artifacts to the driver/ and driver/usb/gadget/ Makfiles.
With that, DFU can be built again in SPL if CONFIG_SPL_DFU_SUPPORT is enabled.
Fixes: 6ad6102246d8 ("usb:gadget: Disallow DFU in SPL for now")
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Lukasz Majewski <l.majewski@samsung.com>
show more ...
|
| 34ee947a | 21-Nov-2016 |
Stefan Agner <stefan.agner@toradex.com> |
spl: add RAM boot device only if it is actually defined
Some devices (e.g. dra7xx) support loading to RAM using DFU without having direct boot from RAM support. Make sure the linker list does not co
spl: add RAM boot device only if it is actually defined
Some devices (e.g. dra7xx) support loading to RAM using DFU without having direct boot from RAM support. Make sure the linker list does not contain BOOT_DEVICE_RAM if CONFIG_SPL_RAM_DEVICE is not enabled.
Fixes: 98136b2f26fa ("spl: Convert spl_ram_load_image() to use linker list")
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com>
show more ...
|
| 2c77c0d6 | 21-Nov-2016 |
tomas.melin@vaisala.com <tomas.melin@vaisala.com> |
xyz-modem: Change getc timeout loop waiting
This fixes the loop delay when using a hw watchdog.
In case a watchdog is used that accesses CPU registers, the defined delay of 20us in a tight loop wil
xyz-modem: Change getc timeout loop waiting
This fixes the loop delay when using a hw watchdog.
In case a watchdog is used that accesses CPU registers, the defined delay of 20us in a tight loop will cause a huge delay in the actual timeout seen. This is caused by the fact that udelay will inheritantly call WATCHDOG_RESET. Together with the omap wdt implementation, the seen timeout increases up to around 30s. This makes the loop very slow and causes long delays when using the modem.
Instead, implement the 2 sec loop by using the timer interface to know when to break out of the timeout loop. Watchdog kicking is taken care of by getc().
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
show more ...
|
| aa6ab905 | 21-Nov-2016 |
Tang Yuantian <Yuantian.Tang@nxp.com> |
sata: fix sata command can not being executed bug
Commit d97dc8a0 separated the non-command code into its own file which caused variable sata_curr_device can not be set to a correct value.
Before c
sata: fix sata command can not being executed bug
Commit d97dc8a0 separated the non-command code into its own file which caused variable sata_curr_device can not be set to a correct value.
Before commit d97dc8a0, variable sata_curr_device can be set correctly in sata_initialize(). After commit d97dc8a0, sata_initialize() is moved out to its own file. Accordingly, variable sata_curr_device is removed from sata_initialize() too. This caused sata_curr_device never gets a chance to be set properly which prevent other commands from being executed.
This patch sets variable sata_curr_device properly.
Fixes: d97dc8a0 (dm: sata: Separate the non-command code into its own file)
Signed-off-by: Tang Yuantian <yuantian.tang@nxp.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|