Age | Commit message (Collapse) | Author |
|
Fixed coverity and compiler warning in drivers/spi/u8500_spi.c.
Also removed a variable which is no longer needed after the
GPIO-handling was removed from the driver.
ST-Ericsson ID: None
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Iea067014c2c2ea4bd4367eccbe1cde36c69e01da
Signed-off-by: Markus Helgesson <markus.helgesson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13763
Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com>
|
|
Copied the GPIO configurator written for the Linux kernel.
The Nomadik db8500 GPIO driver. Purpose is to be able
to just cut-n-paste the GPIO config from Linux to U-boot.
Also at the same time remove the obsolete and old
gpio_alt_funcenable/disable methods.
Now all is configured using a table in u8500.c.
Now drivers doesn't have to worry about setting up the GPIO pins.
Actually no driver today uses GPIO pins directly, only via
hardware blocks within db8500. Functions are still added
to be able to interact directly with a GPIO pin. This also
cleaned up a lot of driver by not having to bit manipulate GPIO
registers them self.
The new driver is called db8500_gpio and placed in driver/gpio/.
Functions are in include/db8500_gpio.h:
void db8500_gpio_set_pull(unsigned gpio, enum db8500_gpio_pull pull);
void db8500_gpio_make_input(unsigned gpio);
int db8500_gpio_get_input(unsigned gpio);
void db8500_gpio_make_output(unsigned gpio, int val);
void db8500_gpio_set_output(unsigned gpio, int val);
And for the configurator in include/db8500_pincfg.h:
void db8500_gpio_config_pins(pin_cfg_t *cfgs, size_t num);
All in all the final binary size has decreased.
This is only done for db8500 nomadik GPIO. The code for gpio
expanders has not been touched.
All references to Nomadik has been removed in this driver.
Only db8500 is left.
ST-Ericsson ID: None
Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com>
Change-Id: I90aa1d46c813ffb5a777c3492b5751f5054f71cf
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9904
Reviewed-by: QATOOLS
Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
|
|
Moved clock code from board/st/u8500/u8500.c to
cpu/arm_cortexa9/db8500/clock.c.
Remove code to simulate Maja clocks.
ST-Ericsson ID: None
Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com>
Change-Id: Ibbb21d53091ceaddcc01e1a195e129039f986696
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7114
Reviewed-by: QATOOLS
Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
|
|
Added SPI support for U8500
ST-Ericsson ID: 269867
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10121
Change-Id: Ied17dd39aa1ebc0ee95818c59c7f211ce655b8bf
Signed-off-by: Markus Helgesson <markus.helgesson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7569
Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
|