- Apr 18, 2015
-
-
Joe Hershberger authored
Some drivers need a chance to manage their receive buffers after the packet has been handled by the network stack. Add an operation that will allow the driver to be called in that case. Reported-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Acked-by:
Simon Glass <sjg@chromium.org> Tested-by:
Simon Glass <sjg@chromium.org> Tested-on: pcduino3
-
Haikun.Wang@freescale.com authored
Move the Freescale QSPI driver over to driver model. Signed-off-by:
Haikun Wang <Haikun.Wang@freescale.com> Signed-off-by:
Peng Fan <Peng.Fan@freescale.com> Tested-by:
Peng Fan <Peng.Fan@freescale.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Haikun.Wang@freescale.com authored
Move the Freescale DSPI driver over to driver model. Signed-off-by:
Haikun Wang <Haikun.Wang@freescale.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Haikun.Wang@freescale.com authored
Add QSPI controller dts node in ls1021a.dtsi. Add QSPI slave device dts node in ls1021a-twr.dts and ls1021a-qds.dts. Signed-off-by:
Haikun Wang <Haikun.Wang@freescale.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Haikun.Wang@freescale.com authored
Update DSPI controller node in ls1021a.dtsi. Update flash device node in ls1021a-qds.dts. Ls1021a-twr board doesn't support DSPI, so remove DSPI node in ls1021a-twr.dts. Signed-off-by:
Haikun Wang <Haikun.Wang@freescale.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
haikun authored
Change address_cells and size_cells of root node and 'soc' node from 2 to 1. We backport ls1021a device tree source files from kernel to u-boot. Kernel files set address_cells and size_cells to 2 in order to access more than 4GB space. But we don't have this requirement now and u-boot fdtdec_get_xxx interfaces can't support property whose size is 'u64' completely. So make this change. Signed-off-by:
Haikun Wang <Haikun.Wang@freescale.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
haikun authored
Bring in required device tree files for ls1021a from Linux. These are initially unchanged and have a number of pieces not needed by U-Boot. Signed-off-by:
Haikun Wang <Haikun.Wang@freescale.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Haikun.Wang@freescale.com authored
Backport of kernel commits: 7c14f6c719de092d69c81877786e83ce7ae1a860 35faad2a1563b3d4dc983a82ac41033fe053870c Signed-off-by:
Haikun Wang <Haikun.Wang@freescale.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Przemyslaw Marczak authored
This commit adds driver model support to software emulated i2c bus driver. This driver supports kernel-style device tree bindings. Fdt properties in use: - compatible - "i2c-gpio" - gpios - data and clock GPIO pin phandles - delay-us - micro seconds delay between GPIOs toggle operations, which is 1/4 of I2C speed clock period. Added: - Config: CONFIG_DM_I2C_GPIO - File: drivers/i2c/i2c-gpio.c - File: doc/device-tree-bindings/i2c/i2c-gpio.txt Driver base code is taken from: drivers/i2c/soft-i2c.c, changes: - use "i2c-gpio" naming - update comments style - move preprocesor macros into functions - add device tree support - add driver model i2c support - code cleanup, - add Kconfig entry Signed-off-by:
Przemyslaw Marczak <p.marczak@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org> Added braces in i2c_gpio_xfer() to fix style nit: Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Przemyslaw Marczak authored
Signed-off-by:
Przemyslaw Marczak <p.marczak@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Przemyslaw Marczak authored
The function gpio_request_list_by_name_nodev() returned -ENOSPC error, when the loop count was greater than requested count. This was wrong, because function should return the requested gpio count, when meets the call request without errors. Now, the loop ends on requested max_count. Signed-off-by:
Przemyslaw Marczak <p.marczak@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This code appears to be missing a piece that is needed on some keyboards to enable the keyboard. Add this in. This makes the keyboard work correctly on chromebook_link. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Move CONFIG_CROS_EC_SANDBOX to Kconfig. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The U-Boot device trees are slightly different in a few places. Adjust them to remove most of the differences. Note that U-Boot does not support the concept of interrupts as distinct from GPIOs, so this difference remains. For sandbox, use the same keyboard file as for ARM boards and drop the host emulation bus which seems redundant. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This is not needed now that we have moved chromebook_link and cros_ec to driver model. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This is not needed now that we have moved to driver model. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Now that driver model handles cros_ec init, we can drop this special code. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Since driver model will probe the EC when it is first used, we do not need to init it explicitly. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Since driver model will probe the EC when it is first used, we do not need to init it explicitly. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Since driver model will probe the EC when it is first used, we do not need to init it explicitly. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Since all supported boards enable this option now, we can remove it along with the old code. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This command is supposed to reinit the device. At present with driver model is does nothing. Implement this feature. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This is the last driver to be converted. It requires an LPC bus and a special check_version() method. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The PCH (Platform Controller Hub) is on the PCI bus, so show it as such. The LPC (Low Pin Count) and SPI bus are inside the PCH, so put these in the right place also. Rename the compatible strings to be more descriptive since this board is the only user. Once we are using driver model fully on x86, these will be dropped. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
On x86 systems this device is commonly used to provide legacy port access. It is sort-of a replacement for the old ISA bus. Add a uclass for this, and allow it to have child devices. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a simple uclass for this chip which is often found in x86 systems where the CPU is a separate device. The device can have children, so make it scan the device tree for these. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Convert this driver over to use driver model. Since all x86 platforms use it, move x86 to use driver model for SPI and SPI flash. Adjust all dependent code and remove the old x86 spi_init() function. Note that this does not make full use of the new PCI uclass as yet. We still scan the bus looking for the device. It should move to finding its details in the device tree. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Permit use of a udevice to talk to SPI flash. Ultimately we would like to retire the use of 'struct spi_flash' for this purpose, so create the new API for those who want to move to it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
Take a pass at plumbing errors through to the users of the network stack Currently only the start() function errors will be returned from NetLoop(). recv() tends not to have errors, so that is likely not worth adding. send() certainly can return errors, but this patch does not attempt to plumb them yet. halt() is not expected to error. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
The 'lo' interface on Linux doesn't support thinks like ARP or link-layer access like we use to talk to a normal network interface. A higher-level network API must be used to access localhost. As written, this interface is limited to not supporting ICMP since the API doesn't allow the socket to be opened for all IP traffic and be able to receive at the same time. UDP is far more useful to test with, so it was selected over ICMP. Ping won't work, but things like TFTP should work. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
This is now testable via the eth-raw interface Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
Implement a bridge between U-Boot's network stack and Linux's raw packet API allowing the sandbox to send and receive packets using the host machine's network interface. This raw Ethernet API requires elevated privileges. You can either run as root, or you can add the capability needed like so: sudo /sbin/setcap "CAP_NET_RAW+ep" /path/to/u-boot Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
The effect of the "netretry" env var was recently changed. This test checks that behavior. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
This is needed to test the netretry functionality (make the command fail on a sandbox eth device). Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
Make sure that the ethrotate behavior occurs as expected. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
The ethprime env var is used to indicate the starting device if none is specified in ethact. Also support aliases specified in the ethprime var. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
Allow network devices to be referred to as "eth0" instead of "eth@12345678" when specified in ethact. Add tests to verify this behavior. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
Add a test for the eth uclass using the sandbox eth driver. Verify basic functionality of the network stack / eth uclass by exercising the ping function. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
The sandbox driver will now generate response traffic to exercise the ping command even when no network exists. This allows the basic data pathways of the DM to be tested. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Joe Hershberger authored
Add basic network support to sandbox which includes a network driver. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-