- May 17, 2016
-
-
Simon Glass authored
This function is implemented by the legacy block functions now. Drop it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function is implemented by the legacy block functions now. Drop it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Instead of calling xx_get_dev() functions for each interface type, use the new legacy block driver which can provide the device through its interface. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
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>
-
Simon Glass authored
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>
-
Simon Glass authored
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>
-
Simon Glass authored
Now that the MMC code accesses devices by number, we can implement this same interface for driver model, allowing MMC to support using driver model for block devices. Add the required functions to the uclass. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a legacy block interface for MMC. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a legacy block interface for USB storage. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a legacy block interface for sandbox host. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a legacy block interface for systemace. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
There is quite a bit of duplicated common code related to block devices in the IDE and SCSI implementations. Create some helper functions that can be used to reduce the duplication. These rely on a linker list of interface-type drivers Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
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>
-
Simon Glass authored
This file has a few coding style problems. Fix these to make future updates easier. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Reorder the code to avoid needing forward declarations. Fix up code style as needed. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Adjust common/ide.c so that it passes most checkpatch.pl checks. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Update the code style of this file so that it passes checkpatch.pl. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Reorder the code to avoid needing forward declarations. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add some functions needed by the SATA code. This allows it to be compiled for sandbox, thus increasing build coverage. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add some functions needed by the SCSI code. This allows it to be compiled for sandbox, thus increasing build coverage. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add outsw() and insw() functions for sandbox, as these are needed by the IDE code. The functions will not do anything useful if called, but allow the code to be compiled. Also add out16() and in16(), required by systemace. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
If an address is used with readb() and writeb() which is smaller than the expected size (e.g. 32-bit value on a machine with 64-bit addresses), a warning results. Fix this by adding a cast. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This started as 'ahci' and was renamed to 'disk' during code review. But it seems that this is too generic. Now that we have a 'blk' uclass, we can use that as the generic piece, and revert to ahci for this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This option is not used by any board. Drop it. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
While the driver-model block device support is in progress, it is useful to build sandbox both with and without CONFIG_BLK. Add a separate board for the latter. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Bring this support back so that sandbox can be compiled with CONFIG_BLK. This allows sandbox to have greater build coverage during the block-device transition. This can be removed again later. This reverts commit 33cf727b. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Eric Nelson authored
With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, the Exynos/S5P gpio driver doesn't need a custom xlate routine. Signed-off-by:
Eric Nelson <eric@nelint.com> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Minkyu Kang <mk7.kang@samsung.com>
-
Eric Nelson authored
With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, the Rockchip gpio driver doesn't need a custom xlate routine. Signed-off-by:
Eric Nelson <eric@nelint.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Eric Nelson authored
With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, the pic32 gpio driver doesn't need a custom xlate routine. Signed-off-by:
Eric Nelson <eric@nelint.com> Acked-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Purna Chandra Mandal <purna.mandal@microchip.com>
-
Eric Nelson authored
With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, the omap gpio driver doesn't need a custom xlate routine. Signed-off-by:
Eric Nelson <eric@nelint.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Eric Nelson authored
With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, the intel_broadwell driver doesn't need a custom xlate routine. Signed-off-by:
Eric Nelson <eric@nelint.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Eric Nelson authored
Many drivers use a common form of offset + flags for device tree nodes. e.g.: <&gpio1 2 GPIO_ACTIVE_LOW> This patch adds a common implementation of this type of parsing and calls it when a gpio driver doesn't supply its' own xlate routine. This will allow removal of the driver-specific versions in a handful of drivers and simplify the addition of new drivers. Signed-off-by:
Eric Nelson <eric@nelint.com> Reviewed-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Mugunthan V N authored
Add common usb code which usb drivers makes use of it. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Peng Fan authored
Introduce driver to support "fairchild,74hc595" devices. 1. Take linux drivers/drivers/gpio/gpio-74x164.c as reference. 2. Following the naming used in Linux driver with gen_7x164 as the prefix. 3. Enable CONFIG_DM_74X164 to use this driver. 4. Follow Documentation/devicetree/bindings/gpio/gpio-74x164.txt to add device nodes 5. Tested on i.MX6 UltraLite with 74LV595 using gpio command and oscillograph. Signed-off-by:
Peng Fan <van.freenix@gmail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Chin Liang See <clsee@altera.com> Cc: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Peng Fan authored
Introduce dm_spi_claim_bus, dm_spi_release_bus and dm_spi_xfer Convert spi_claim_bus, spi_release_bus and spi_xfer to use the new API. Signed-off-by:
Peng Fan <van.freenix@gmail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Jagan Teki <jteki@openedev.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Peng Fan authored
1. Support compatible string "spi-gpio" which is used by Linux Linux use different bindings, so use UBOOT_COMPAT and LINUX_COMPAT to differentiate them. 2. Introduce SPI_MASTER_NO_RX and SPI_MASTER_NO_TX to handle no rx or no tx case. 3. Tested on i.MX6 UltraLite board with 74LV595 spi-gpio chip. Signed-off-by:
Peng Fan <van.freenix@gmail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Przemyslaw Marczak <p.marczak@samsung.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Peng Fan authored
When doing xfer, should use device->parent, but not device When doing bit xfer, should use "!!(tmpdout & 0x80)", but not "(tmpdout & 0x80)" Signed-off-by:
Peng Fan <van.freenix@gmail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Jagan Teki <jteki@openedev.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Stephen Warren authored
Use the device's own DT offset, not the device's parent's. Fixes: 43c4d44e ("fdt: implement dev_get_addr_name()") Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Stephen Warren authored
This prevents the following boot-time message on any board where only the first DC is in use, yet the DC's DT node is enabled: stdio_add_devices: Video device failed (ret=-22) (This happens on at least Harmony, Ventana, and likely any other Tegra20 board with display enabled other than Seaboard). The Tegra DC's DT node represents a display controller. It may itself drive an integrated RGB display output, or be used by some other display controller such as HDMI. For this reason the DC node itself is not enabled/disabled in DT; the DC itself is considered a shared resource, not the final (board-specific) display output. The node should instantiate a display output driver only if the rgb subnode is enabled. Other output drivers are free to use the DC if they are enabled and their DT node references the DC's DT node. Adapt the Tegra display drivers' bind() routine to only bind to the DC's DT node if the RGB subnode is enabled. Now that the display driver does the right thing, remove the workaround for this issue from Seaboard's DT file. Cc: Thierry Reding <treding@nvidia.com> Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Thierry Reding <treding@nvidia.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Stephen Warren authored
In some cases, drivers may not want to bind to a device. Allow bind() to return -ENODEV in this case, and don't treat this as an error. This can be useful in situations where some information source other than the DT node's main status property indicates whether the device should be enabled, for example other DT properties might indicate this, or the driver might query non-DT sources such as system fuses or a version number register. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-