- Jan 30, 2015
-
-
Simon Glass authored
Rather than assuming that the chip offset length is 1, allow it to be provided. This allows chips that don't use the default offset length to be used (at present they are only supported by the command line 'i2c' command which sets the offset length explicitly). Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Heiko Schocher <hs@denx.de>
-
Simon Glass authored
For boards which use multiple I2C devices, or for SOCs which support multiple boards, we might want to convert these to driver model at different times. At present this is difficult because we need to either use CONFIG_DM_I2C for a board or not. Add a compatibility layer which implements the old API, thus allowing a board to move to driver model for I2C without requiring that everything it uses is moved in the same commit. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a dm_ prefix to driver model I2C functions so that we can keep the old ones around. This is a little unfortunate, but on reflection it is too difficult to change the API. We can undo this rename when most boards and drivers are converted to use driver model for I2C. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These functions are going away, so use the new uclass support instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These functions are going away, so use the new uclass support instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These functions are going away, so use the new uclass support instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These functions are going away, so use the new uclass support instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These functions are going away, so use the new uclass support instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This deals with the polarity bit. It also changes the GPIO devices so that the correct device tree node is linked to each one. This allows us to use the new uclass phandle functionality to implement a proper GPIO binding. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This deals with the polarity bit and selecting the correct bank device given a GPIO number. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These functions are going away, so use the new uclass support instead. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a new 'demo light' command which uses GPIOs to control imaginary lights. Each light is assigned a bit number in the overall value. This provides an example driver for using the new GPIO API. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present U-Boot sort-of supports the standard way of reading GPIOs from device tree nodes, but the support is incomplete, a bit clunky and only works for GPIO bindings where #gpio-cells is 2. Add new functions to request GPIOs, taking full account of the device tree binding. These permit requesting a GPIO with a simple call like: gpio_request_by_name(dev, "cd-gpios", 0, &desc, GPIOD_IS_IN); This will request the GPIO, looking at the device's node which might be this, for example: cd-gpios = <&gpio TEGRA_GPIO(B, 3) GPIO_ACTIVE_LOW>; The GPIO will be set to input mode in this case and polarity will be honoured by the GPIO calls. It is also possible to request and free a list of GPIOs. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Only the GPIO driver knows about the full GPIO device tree binding used by a device. Add a method to allow the driver to provide this information to the uclass, including the GPIO offset within the device and flags such as the polarity. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
So far driver model's GPIO uclass just implements the existing GPIO API. This has some limitations: - it requires manual device tree munging to support GPIOs in device tree (fdtdec_get_gpio() and friends) - it does not understand polarity - it is somewhat slower since we must scan for the GPIO device each time - Global GPIO numbering can change if other GPIO drivers are probed - it requires extra steps to set the GPIO direction and value The new functions have a dm_ prefix where necessary to avoid name conflicts but we can remove that when it is no-longer needed. The new struct gpio_desc holds all required information about the GPIO. For now this is intended to be stored by the client requesting the GPIO, but in future it might be brought into the uclass in some way. With these changes the old GPIO API still works, and uses the driver model API underneath. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
This commit adds on-chip I2C driver used on newer SoCs of Panasonic UniPhier platform. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Heiko Schocher <hs@denx.de>
-
Masahiro Yamada authored
This commit adds on-chip I2C driver used on some old Panasonic UniPhier SoCs. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Heiko Schocher <hs@denx.de>
-
Masahiro Yamada authored
Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Heiko Schocher <hs@denx.de>
-
- Jan 26, 2015
-
-
Michal Simek authored
This information help with debugging issues with uart. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
This change enables to change baudrate on command line. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Jan 25, 2015
-
-
Luka Perkov authored
Each board with defines it's own set of values. If we do not define CONFIG_MVGBE_PORTS we will hit following error: mvgbe.c: In function 'mvgbe_initialize': mvgbe.c:700:34: error: 'CONFIG_MVGBE_PORTS' undeclared (first use in this function) u8 used_ports[MAX_MVGBE_DEVS] = CONFIG_MVGBE_PORTS; This patch fixes above described problem. Signed-off-by:
Luka Perkov <luka@openwrt.org> Acked-by:
Prafulla Wadaskar <prafulla@marvell.com>
-
- Jan 24, 2015
-
-
Simon Glass authored
As a temporary measure before the ICH driver moves over to driver model, add device tree support to the driver. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
On x86 we use CMOS RAM to read and write some settings. Add basic support for this, including access to registers 128-255. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Ruchika Gupta authored
Era property is added in the crypto node in device tree. Move the code to do so from arch/powerpc/mpc8xxx/fdt.c to drivers/sec/sec.c so that it can be used across arm and powerpc platforms having crypto node. Signed-off-by:
Ruchika Gupta <ruchika.gupta@freescale.com> [York Sun: Fix commit message indentation] Reviewed-by:
York Sun <yorksun@freescale.com>
-
York Sun authored
Internal memory controller counters can reach a bad state after training in DDR4 mode if accumulated ECC or DBI mode is eanbled. Signed-off-by:
York Sun <yorksun@freescale.com>
-
Sjoerd Simons authored
commit a62e84d7 incorrectly changed the tegra pci code to the new fdtdec pci helpers. To get the device index of the root port, the "reg" property should be parsed from the dtb (as was previously the case). With this patch i can successfully network boot my jetson tk1 Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Tested-by:
Thierry Reding <treding@nvidia.com> Acked-by:
Thierry Reding <treding@nvidia.com>
-
Simon Glass authored
Some machines are very slow to scroll their displays. To cope with this, support the CONFIG_CONSOLE_SCROLL_LINES option. Setting this to 5 allows the display to operate at an acceptable speed by scrolling 5 lines at a time. This same option is available for LCDs so when these systems are unified this code can be unified also. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-
Simon Glass authored
Add code to the generic pci_rom file to access the VGA ROM in PCI space when needed. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Bin Meng authored
Each time U-Boot boots on Intel Crown Bay board, the displayed hard drive information is wrong. It could be either wrong capacity or just a 'Capacity: not available' message. After enabling the debug switch, we can see the scsi inquiry command did not execute successfully. However, doing a 'scsi scan' in the U-Boot shell does not expose this issue. SCSI: Target spinup took 0 ms. SATA link 1 timeout. AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode flags: ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... ahci_device_data_io: 0 byte transferred. <--- scsi inquiry fails ahci_device_data_io: 512 byte transferred. ahci_device_data_io: 512 byte transferred. ahci_device_data_io: 512 byte transferred. Device 0: (0:0) Vendor: ATA Prod.: Rev: ?8 Type: Hard Disk Capacity: 912968.3 MB = 891.5 GB (1869759264 x 512) Found 1 device(s). So uninitialized contents on the stack were passed to dev_print() to display those wrong information. The symptom were observed on two hard drives (one is Seagate, the other one is Western Digital). The fix is to make sure the AHCI interface is not busy by checking the error and status information from task file register after enabling the port in ahci_port_start() before proceeding other operations like scsi_scan(). Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Now that we have a full VESA driver we may as well use that. We need to support the VESA layer being set up by early start-up code or by running a VGA ROM. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a driver intended to cope with any VESA-compatible x86 graphics adapter. It will not support ROMs which use OpenFirmware (Forth) since there is no support for that in U-Boot. This means that MAC OS cards will not work. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These are quite common and we may as well press on and not be so picky. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
Allow the supported modes to be listed when in debug mode. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
As it turns out this is a normal condition, so suppress the error. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We shouldn't assume that the VGA ROM can always be loaded at c0000. This is only true on x86 machines. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
This code is too x86-dependent at present. Correct it so that it can run on big-endian machines. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
This stops the debug mode from working properly. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
- Jan 23, 2015
-
-
Masahiro Yamada authored
This board is still a non-generic board. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
Masahiro Yamada authored
These boards are still non-generic boards. It is a good thing that we can drop board-specific hack code from drivers/mtd/nand/nand_base.c Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Stefan Roese <sr@denx.de> Cc: Andrea "llandre" Marson <andrea.marson@dave-tech.it>
-
Hans de Goede authored
It turns out that there are some panels where the pwm input is not active low, so make it configurable. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-