- 02 12月, 2016 3 次提交
-
-
由 Michal Simek 提交于
Prepare LUN(Logical unit number) directly in block description structure and reuse it. Signed-off-by: NMichal Simek <michal.simek@xilinx.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Michal Simek 提交于
The patch enables running detection algorithm on block device description structure. Signed-off-by: NMichal Simek <michal.simek@xilinx.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Michal Simek 提交于
Extract block device initialization to specific function. Signed-off-by: NMichal Simek <michal.simek@xilinx.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 07 6月, 2016 1 次提交
-
-
由 Ed Swarthout 提交于
Fixes: => ext2ls scsi 0:1 ** Bad device scsi 0:1 ** for boards which use the scsi legacy driver (such as ls1043ardb). Signed-off-by: NEd Swarthout <Ed.Swarthout@nxp.com> Tested-by: NGeorge McCollister <george.mccollister@gmail.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 17 5月, 2016 5 次提交
-
-
由 Simon Glass 提交于
Add driver-model block-device support to the SCSI implementation. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Update the code style of this file so that it passes checkpatch.pl. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Reorder the code to avoid needing forward declarations. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 17 3月, 2016 1 次提交
-
-
由 Tom Rini 提交于
When we switch to including all linker lists in SPL it is important to not include commands as that may lead to link errors due to other things we have already discarded. In this case, the SCSI code needs a lot of attention so for now just guard the command portions. Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 15 3月, 2016 3 次提交
-
-
由 Simon Glass 提交于
This is a device number, and we want to use 'dev' to mean a driver model device. Rename the member. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Tested-by: NStephen Warren <swarren@nvidia.com>
-
由 Simon Glass 提交于
Rename three partition functions so that they start with part_. This makes it clear what they relate to. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NStephen Warren <swarren@nvidia.com>
-
由 Simon Glass 提交于
Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long and causes 80-column violations, rename it to struct blk_desc. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Tested-by: NStephen Warren <swarren@nvidia.com>
-
- 25 1月, 2016 2 次提交
-
-
由 Simon Glass 提交于
Now that they are in their own directory, we can remove this prefix. This makes it easier to find a file since the prefix does not get in the way. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Reviewed-by: NHeiko Schocher <hs@denx.de> Acked-by: NStefan Roese <sr@denx.de> Acked-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
-
由 Simon Glass 提交于
There are a lot of unrelated files in common, including all of the commands. Moving them into their own directory makes them easier to find and is more logical. Some commands include non-command code, such as cmd_scsi.c. This should be sorted out at some point so that the function can be enabled with or without the associated command. Unfortunately, with m68k I get this error: m68k: + M5329AFEE +arch/m68k/cpu/mcf532x/start.o: In function `_start': +arch/m68k/cpu/mcf532x/start.S:159:(.text+0x452): relocation truncated to fit: R_68K_PC16 against symbol `board_init_f' defined in .text.board_init_f section in common/built-in.o I hope someone can shed some light on what this means. I hope it isn't depending on the position of code in the image. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Reviewed-by: NHeiko Schocher <hs@denx.de> Acked-by: NStefan Roese <sr@denx.de> Acked-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
-
- 14 1月, 2016 1 次提交
-
-
由 Stephen Warren 提交于
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: NStephen Warren <swarren@nvidia.com> Reviewed-by: NTom Rini <trini@konsulko.com>
-
- 13 1月, 2016 1 次提交
-
-
由 Simon Glass 提交于
Adjust the SCSI command to use driver model for its PCI interface. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Tested-by: NBin Meng <bmeng.cn@gmail.com>
-
- 11 7月, 2015 1 次提交
-
-
由 Andre Przywara 提交于
Commit 2b42c931 ("ahci: support LBA48 data reads for 2+TB drives") introduced conditional code which triggers a warning when compiled with DEBUG enabled: In file included from common/cmd_scsi.c:12:0: common/cmd_scsi.c: In function 'scsi_read': include/common.h:109:4: warning: 'smallblks' may be used uninitialized in this function [-Wmaybe-uninitialized] ... Since this is for debug only, take the easy way and initialize the variable explicitly on declaration to avoid the warning. (Fix a nearby whitespace error on the way.) Tested-by: NBin Meng <bmeng.cn@gmail.com> Signed-off-by: NAndre Przywara <osp@andrep.de>
-
- 13 6月, 2015 2 次提交
-
-
由 Mark Langsdorf 提交于
Enable full 48-bit LBA48 data reads by passing the upper word of the LBA block pointer in bytes 9 and 10 of the FIS. This allows uboot to load data from any arbitrary sector on a drive with 2 or more TB of available data connected to an AHCI controller. Signed-off-by: NMark Langsdorf <mark.langsdorf@gmail.com> Signed-off-by: NAndre Przywara <osp@andrep.de> [trini: Make use of CONFIG_SYS_64BIT_LBA in a few places to drop warnings on platforms that don't enable that feature ] Signed-off-by: NTom Rini <trini@konsulko.com>
-
由 Mark Langsdorf 提交于
Signed-off-by: NMark Langsdorf <mark.langsdorf@gmail.com> Signed-off-by: NAndre Przywara <osp@andrep.de>
-
- 23 4月, 2015 1 次提交
-
-
由 tang yuantian 提交于
Current driver assumes the AHCI is connected to PCI, this is not true on some SoCs, e.g. LS1021A, which has PCI but the AHCI is in SoC. This patch will enable embedded AHCI devices on platforms with PCI. PCI AHCI devices still can be used by commenting CONFIG_SCSI_AHCI_PLAT option in head file. Signed-off-by: NShaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: NTang Yuantian <Yuantian.Tang@freescale.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Reviewed-by: NTom Rini <trini@konsulko.com>
-
- 07 2月, 2015 1 次提交
-
-
由 Simon Glass 提交于
On some hardware this time can be significant. Add bootstage support for measuring this. The result can be obtained using 'bootstage report' or passed on to the Linux via the device tree. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
- 27 10月, 2014 1 次提交
-
-
由 Simon Glass 提交于
Use the inttypes header file to provide this. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 19 2月, 2014 1 次提交
-
-
由 Dan Murphy 提交于
Add spl_sata to read a fat partition from a bootable SATA drive. Signed-off-by: NDan Murphy <dmurphy@ti.com> Reviewed-by: NRoger Quadros <rogerq@ti.com>
-
- 24 7月, 2013 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: NTom Rini <trini@ti.com>
-
- 16 7月, 2013 1 次提交
-
-
由 Simon Glass 提交于
The block device expects to see lbaint_t for the blknr parameter. Change the SCSI read/write functions to suit. This fixes the following build warnings for coreboot: cmd_scsi.c: In function ‘scsi_scan’: cmd_scsi.c:119:30: error: assignment from incompatible pointer type [-Werror] cmd_scsi.c:120:32: error: assignment from incompatible pointer type [-Werror] Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 02 5月, 2013 1 次提交
-
-
由 Egbert Eich 提交于
log2 of the device block size serves as the shift value used to calculate the block number to read in file systems when implementing avaiable block sizes. It is needed quite often in file systems thus it is pre-calculated and stored in the block device descriptor. Signed-off-by: NEgbert Eich <eich@suse.com>
-
- 02 4月, 2013 1 次提交
-
-
由 York Sun 提交于
'bool' is defined in random places. This patch consolidates them into a single header file include/linux/types.h, using stdbool.h introduced in C99. All other #define, typedef and enum are removed. They are all consistent with true = 1, false = 0. Replace FALSE, False with false. Replace TRUE, True with true. Skip *.py, *.php, lib/* files. Signed-off-by: NYork Sun <yorksun@freescale.com>
-
- 03 11月, 2012 4 次提交
-
-
由 Gabe Black 提交于
Capacity needs to allow for a 64-bit value. Signed-off-by: NGabe Black <gabeblack@google.com> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Stefan Reinauer 提交于
Add a new function to find out the number of available SCSI disks. Also set the 'scsidevs' environment variable after each scan. Signed-off-by: NStefan Reinauer <reinauer@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Hung-Te Lin 提交于
Implement write functionality in the scsi layer. A ''scsi write' command is also added to console for testing. Signed-off-by: NHung-Te Lin <hungte@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Vadim Bendebury 提交于
Many AHCI controllers are identical, the main (and often the only) difference being the PCI Vendor ID/Device ID combination reported by the device. This change allows the config file to define a list of PCI vendor ID/device ID pairs. The driver would scan the list and initialize the first device it finds. No actual multiple device list is introduced yet, this change just add the framework. Signed-off-by: NVadim Bendebury <vbendeb@chromium.org> Signed-off-by: NTaylor Hutt <thutt@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 26 9月, 2012 1 次提交
-
-
由 Rob Herring 提交于
All the raw block load commands duplicate the same code. Starting with the ide version as it has progress updates convert ide, usb, and scsi boot commands to all use a common version. Signed-off-by: NRob Herring <rob.herring@calxeda.com>
-
- 07 3月, 2012 1 次提交
-
-
由 Simon Glass 提交于
Change all files in common/ to use CMD_RET_USAGE instead of calling cmd_usage() directly. I'm not completely sure about this patch since the code since impact is small (100 byte or so on ARM) and it might need splitting into smaller patches. But for now here it is. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 26 7月, 2011 3 次提交
-
-
由 Matthew McClintock 提交于
If we don't want to build support for any partition types we can now add #undef CONFIG_PARTITIONS in a board config file to keep this from being compiled in. Otherwise boards assume this is compiled in by default Signed-off-by: NMatthew McClintock <msm@freescale.com>
-
由 Rob Herring 提交于
Add support for AHCI controllers that are not PCI based. Signed-off-by: NRob Herring <rob.herring@calxeda.com> Cc: Wolfgang Denk <wd@denx.de>
-
由 Mike Frysinger 提交于
Rather than having a bunch of random commands handle autostart behavior, unify the logic in a single place. This also fixes building of these different commands when bootm is disabled. Acked-by: NMatthew McClintock <msm@freescale.com> Acked-by: NScott Wood <scottwood@freescale.com> Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 12 1月, 2011 1 次提交
-
-
由 Wolfgang Denk 提交于
This reverts commit 5a442c0a. This commit changed the behaviour of getenv_yesno() (both the default behaviour and the documented behaviour for abbreviated arguments) which resulted in problems in several areas. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 29 11月, 2010 2 次提交
-
-
由 Mike Frysinger 提交于
Use the new helper func to clean up duplicate logic handling of the autostart env var. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Mike Frysinger 提交于
The duplication of the do_bootm prototype has gotten out of hand, and they're pretty much all outdated (wrt constness). Unify them all in command.h. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-