| 8d16e1d5 | 28-Apr-2016 |
Michal Simek <michal.simek@xilinx.com> |
SPL: FIT: Enable SPL_FIT_LOAD in RAM based boot mode
Support loading FIT in SPL for RAM bootmode. CONFIG_SPL_LOAD_FIT_ADRESS points to address where FIT image is stored in memory.
Signed-off-by: Mi
SPL: FIT: Enable SPL_FIT_LOAD in RAM based boot mode
Support loading FIT in SPL for RAM bootmode. CONFIG_SPL_LOAD_FIT_ADRESS points to address where FIT image is stored in memory.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
show more ...
|
| 3a3b9147 | 10-May-2016 |
Michal Simek <michal.simek@xilinx.com> |
spl: Introduce new function spl_board_prepare_for_boot
Call this function before passing control from SPL. For fpga case it is necessary to enable for example level shifters when bitstream is progra
spl: Introduce new function spl_board_prepare_for_boot
Call this function before passing control from SPL. For fpga case it is necessary to enable for example level shifters when bitstream is programmed.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| d550e82e | 23-May-2016 |
Tom Rini <trini@konsulko.com> |
SPL: fat: Fix spl_parse_image_header() return value handling
The spl_parse_image_header() can return 0 and it is not an error. Only treat non-zero return value as an error.
Signed-off-by: Marek Vas
SPL: fat: Fix spl_parse_image_header() return value handling
The spl_parse_image_header() can return 0 and it is not an error. Only treat non-zero return value as an error.
Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Peng Fan <van.freenix@gmail.com> Reviewed-by: Stefano Babic <sbabic@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 5adfa265 | 04-May-2016 |
Michal Simek <michal.simek@xilinx.com> |
spl: fit: Print error message when FDT is not present
When FDT is not present in the image user doesn't get any error what's wrong. Print error message if LIBCOMMON_SUPPORT is enabled.
Signed-off-b
spl: fit: Print error message when FDT is not present
When FDT is not present in the image user doesn't get any error what's wrong. Print error message if LIBCOMMON_SUPPORT is enabled.
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Seris-cc: uboot Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 8df81e17 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
image-fit: Don't display an error in fit_set_timestamp()
This function returns an error code and its caller may be able to fix the error. For example fit_handle_file() expands the device tree to fit
image-fit: Don't display an error in fit_set_timestamp()
This function returns an error code and its caller may be able to fix the error. For example fit_handle_file() expands the device tree to fit if there is a lack of space.
In this case the caller does not want an error displayed. It is confusing, since it suggests that something is wrong, when it fact everything is fine. Drop the error.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 034eda86 | 25-Apr-2016 |
Stephen Warren <swarren@nvidia.com> |
malloc: improve memalign fragmentation fix
Commit 4f144a416469 "malloc: work around some memalign fragmentation issues" enhanced memalign() so that it can succeed in more cases where heap fragmentat
malloc: improve memalign fragmentation fix
Commit 4f144a416469 "malloc: work around some memalign fragmentation issues" enhanced memalign() so that it can succeed in more cases where heap fragmentation is present. However, it did not solve as many cases as it could. This patch enhances the code to cover more cases.
The alignment code works by allocating more space than the user requests, then adjusting the returned pointer to achieve alignment. In general, one must allocate "alignment" bytes more than the user requested in order to guarantee that alignment is possible. This is what the original code does. The previous enhancement attempted a second allocation if the padded allocation failed, and succeeded if that allocation just happened to be aligned; a fluke that happened often in practice. There are still cases where this could fail, yet where it is still possible to honor the user's allocation request. In particular, if the heap contains a free region that is large enough for the user's request, and for leading padding to ensure alignment, but has no or little space for any trailing padding. In this case, we can make a third(!) allocation attempt after calculating exactly the size of the leading padding required to achieve alignment, which is the minimal over-allocation needed for the overall memalign() operation to succeed if the third and second allocations end up at the same location.
This patch isn't checkpatch-clean, since it conforms to the existing coding style in dlmalloc.c, which is different to the rest of U-Boot.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| aa9e6044 | 16-Apr-2016 |
Nikita Kiryanov <nikita@compulab.co.il> |
cmd: eeprom: add support for layout aware commands
Introduce the (optional) eeprom print and eeprom update commands.
These commands are eeprom layout aware: * The eeprom print command prints the co
cmd: eeprom: add support for layout aware commands
Introduce the (optional) eeprom print and eeprom update commands.
These commands are eeprom layout aware: * The eeprom print command prints the contents of the eeprom in a human readable way (eeprom layout fields, and data formatted to be fit for human consumption). * The eeprom update command allows user to update eeprom fields by specifying the field name, and providing the new data in a human readable format (same format as displayed by the eeprom print command). * Both commands can either auto detect the layout, or be told which layout to use.
New CONFIG options: CONFIG_CMD_EEPROM_LAYOUT - enables commands. CONFIG_EEPROM_LAYOUT_HELP_STRING - tells user what layout names are supported
Feature API: __weak int parse_layout_version(char *str) - override to provide your own layout name parsing __weak void __eeprom_layout_assign(struct eeprom_layout *layout, int layout_version); - override to setup the layout metadata based on the version __weak int eeprom_layout_detect(unsigned char *data) - override to provide your own algorithm for detecting layout version eeprom_field.c - contains various printing and updating functions for common types of eeprom fields. Can be used for defining custom layouts.
Cc: Heiko Schocher <hs@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
show more ...
|
| 4b6e1fda | 17-May-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm |
| 69f45cd5 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: mmc: Use the new select_hwpart() API
Avoid calling directly into the MMC code - use the new API call instead.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 9107c973 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: blk: Add a easier way to create a named block device
Add a function that automatically builds the device name given the parent and a supplied string. Most callers will want to do this, so puttin
dm: blk: Add a easier way to create a named block device
Add a function that automatically builds the device name given the parent and a supplied string. Most callers will want to do this, so putting this functionality in one place makes more sense.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| f5a14af9 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: sata: Add support for driver-model block devices
Add driver-model block-device support to the SATA implementation. This is just a dummy implementation for now, since the SATA low-level API uses
dm: sata: Add support for driver-model block devices
Add driver-model block-device support to the SATA implementation. This is just a dummy implementation for now, since the SATA low-level API uses numbered devices and that doesn't fit with driver model.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 535556b2 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: scsi: Add support for driver-model block devices
Add driver-model block-device support to the SCSI implementation.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 145df842 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: ide: Add support for driver-model block devices
Add driver-model block-device support to the IDE implementation.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| edd82ab3 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: scsi: Drop the get_dev() function
This function is implemented by the legacy block functions now. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 74001a25 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: ide: Drop the get_dev() function
This function is implemented by the legacy block functions now. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 57ebf67b | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: usb: Drop the get_dev() function
This function is implemented by the legacy block functions now. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| d97dc8a0 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: sata: Separate the non-command code into its own file
At present the SATA command code includes both the command-processing code and the core SATA functions and data structures.
Separate the la
dm: sata: Separate the non-command code into its own file
At present the SATA command code includes both the command-processing code and the core SATA functions and data structures.
Separate the latter into its own file, adding functions as needed to avoid the command code accessing data structures directly.
With this commit: - All CONFIG option are referenced from the non-command code - The concept of a 'current SATA device' is confined to the command code
This will make it easier to convert this code to driver model.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| e9be1ee7 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: ide: Separate the non-command code into its own file
At present the IDE command code includes both the command-processing code and the core IDE functions and data structures.
Separate the latte
dm: ide: Separate the non-command code into its own file
At present the IDE command code includes both the command-processing code and the core IDE functions and data structures.
Separate the latter into its own file, adding functions as needed to avoid the command code accessing data structures directly.
With this commit: - Most CONFIG option are referenced from the non-command code - The concept of a 'current IDE device' is confined to the command code
This will make it easier to convert this code to driver model.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 11f610ed | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: scsi: Separate the non-command code into its own file
At present the SCSI command code includes both the command-processing code and the core SCSI functions and data structures.
Separate the la
dm: scsi: Separate the non-command code into its own file
At present the SCSI command code includes both the command-processing code and the core SCSI functions and data structures.
Separate the latter into its own file, adding functions as needed to avoid the command code accessing data structures directly. This functions use the new legacy block functions.
With this commit: - There is no CONFIG option referenced from the command code - The concept of a 'current SCSI device' is confined to the command code
This will make it easier to convert this code to driver model.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c0543bf6 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: usb: Add a legacy block interface for USB storage
Add a legacy block interface for USB storage.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| c649e3c9 | 01-May-2016 |
Simon Glass <sjg@chromium.org> |
dm: scsi: Rename CONFIG_CMD_SCSI to CONFIG_SCSI
This option currently enables both the command and the SCSI functionality. Rename the existing option to CONFIG_SCSI since most of the code relates to
dm: scsi: Rename CONFIG_CMD_SCSI to CONFIG_SCSI
This option currently enables both the command and the SCSI functionality. Rename the existing option to CONFIG_SCSI since most of the code relates to the feature.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| e0727515 | 28-Apr-2016 |
Marek Vasut <marex@denx.de> |
SPL: Add CONFIG_SPL_ABORT_ON_RAW_IMAGE
When defined, SPL will proceed to another boot method if the image it has loaded does not have a signature. This is useful if the subsequent boot methods are m
SPL: Add CONFIG_SPL_ABORT_ON_RAW_IMAGE
When defined, SPL will proceed to another boot method if the image it has loaded does not have a signature. This is useful if the subsequent boot methods are much more complex.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Peng Fan <van.freenix@gmail.com> Cc: Fabio Estevam <fabio.estevam@nxp.com>
show more ...
|
| 7e0f2267 | 28-Apr-2016 |
Marek Vasut <marex@denx.de> |
SPL: Let spl_parse_image_header() return value
Allow the spl_parse_image_header() to return value. This is convenient for controlling the SPL boot flow if the loaded image is corrupted.
Signed-off-
SPL: Let spl_parse_image_header() return value
Allow the spl_parse_image_header() to return value. This is convenient for controlling the SPL boot flow if the loaded image is corrupted.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@konsulko.com>
show more ...
|
| d81db48d | 03-May-2016 |
Marek Vasut <marex@denx.de> |
usb: hub: Don't continue on get_port_status failure
The code shouldn't continue probing the port if get_port_status() failed.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@al
usb: hub: Don't continue on get_port_status failure
The code shouldn't continue probing the port if get_port_status() failed.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Stefan Roese <sr@denx.de> Cc: Stephen Warren <swarren@nvidia.com>
show more ...
|
| ef71290b | 27-Apr-2016 |
Marek Vasut <marex@denx.de> |
usb: Assure Get Descriptor request is in separate microframe
The Kingston DT Ultimate USB 3.0 stick is sensitive to this first Get Descriptor request and if the request is not in a separate microfra
usb: Assure Get Descriptor request is in separate microframe
The Kingston DT Ultimate USB 3.0 stick is sensitive to this first Get Descriptor request and if the request is not in a separate microframe, the stick refuses to operate. Add slight delay, which is enough for one microframe to pass on any USB spec revision.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Stefan Roese <sr@denx.de> Cc: Stephen Warren <swarren@nvidia.com>
show more ...
|