public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/11] dm: imx: Add driver model support for GPIO and serial on cm_fx6
@ 2014-09-17  3:51 Simon Glass
  2014-09-17  3:51 ` [U-Boot] [PATCH v2 01/11] dm: linker_lists: Add a way to declare multiple objects Simon Glass
                   ` (10 more replies)
  0 siblings, 11 replies; 25+ messages in thread
From: Simon Glass @ 2014-09-17  3:51 UTC (permalink / raw)
  To: u-boot

This series adjusts the IMX serial and GPIO drivers to support driver model.
As an example of its use, the recently-added cm_fx6 board is converted over
to driver model.

Some minor driver model core changed are required to make this work and
these are included with this series.

Changes in v2:
- Add patch to display error number when an error occurs in initcall
- Add new patch to add error checking to setup_i2c()
- Check return values of gpio_request()
- Change 'reserved' to 'requested'
- Add an internal function to check if a GPIO is requested
- Tidy up confusing code that creates names for gpio_request()
- Use the correct namespace for the platform data

Simon Glass (11):
  dm: linker_lists: Add a way to declare multiple objects
  dm: core: Allow a list of devices to be declared in one step
  dm: core: Allow device_bind() to used without CONFIG_OF_CONTROL
  initcall: Display error number when an error occurs
  dm: serial: Don't require device tree to configure a console
  dm: serial: Put common code into separate functions
  dm: imx: Add error checking to setup_i2c()
  dm: imx: Use gpio_request() to request GPIOs
  dm: imx: gpio: Support driver model in MXC gpio driver
  dm: imx: serial: Support driver model in the MXC serial driver
  dm: imx: Move cm_fx6 to use driver model for serial and GPIO

 arch/arm/imx-common/i2c-mxv7.c            |  48 ++++-
 arch/arm/include/asm/imx-common/mxc_i2c.h |   4 +-
 board/compulab/cm_fx6/cm_fx6.c            |  60 ++++--
 board/compulab/cm_fx6/common.c            |   7 +
 drivers/core/device.c                     |   7 +-
 drivers/gpio/mxc_gpio.c                   | 302 +++++++++++++++++++++++++++++-
 drivers/serial/serial-uclass.c            |  35 ++--
 drivers/serial/serial_mxc.c               | 170 ++++++++++++++---
 include/configs/cm_fx6.h                  |  11 ++
 include/dm/platdata.h                     |   4 +
 include/linker_lists.h                    |  21 +++
 include/serial_mxc.h                      |  14 ++
 lib/initcall.c                            |   8 +-
 13 files changed, 626 insertions(+), 65 deletions(-)
 create mode 100644 include/serial_mxc.h

-- 
2.1.0.rc2.206.gedb03e5

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-09-18  7:23 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17  3:51 [U-Boot] [PATCH v2 0/11] dm: imx: Add driver model support for GPIO and serial on cm_fx6 Simon Glass
2014-09-17  3:51 ` [U-Boot] [PATCH v2 01/11] dm: linker_lists: Add a way to declare multiple objects Simon Glass
2014-09-17  3:51 ` [U-Boot] [PATCH v2 02/11] dm: core: Allow a list of devices to be declared in one step Simon Glass
2014-09-17  3:51 ` [U-Boot] [PATCH v2 03/11] dm: core: Allow device_bind() to used without CONFIG_OF_CONTROL Simon Glass
2014-09-17  3:51 ` [U-Boot] [PATCH v2 04/11] initcall: Display error number when an error occurs Simon Glass
2014-09-17  7:40   ` Igor Grinberg
2014-09-17  3:51 ` [U-Boot] [PATCH v2 05/11] dm: serial: Don't require device tree to configure a console Simon Glass
2014-09-17  3:51 ` [U-Boot] [PATCH v2 06/11] dm: serial: Put common code into separate functions Simon Glass
2014-09-17  3:51 ` [U-Boot] [PATCH v2 07/11] dm: imx: Add error checking to setup_i2c() Simon Glass
2014-09-17  8:37   ` Igor Grinberg
2014-09-17 13:56     ` Simon Glass
2014-09-17 14:16       ` Igor Grinberg
2014-09-17  3:51 ` [U-Boot] [PATCH v2 08/11] dm: imx: Use gpio_request() to request GPIOs Simon Glass
2014-09-17 12:13   ` Igor Grinberg
2014-09-17 14:00     ` Simon Glass
2014-09-17 14:31       ` Igor Grinberg
2014-09-17 14:34         ` Simon Glass
2014-09-18  7:23           ` Igor Grinberg
2014-09-17  3:51 ` [U-Boot] [PATCH v2 09/11] dm: imx: gpio: Support driver model in MXC gpio driver Simon Glass
2014-09-17 13:00   ` Igor Grinberg
2014-09-17 14:03     ` Simon Glass
2014-09-17 14:34       ` Igor Grinberg
2014-09-17  3:51 ` [U-Boot] [PATCH v2 10/11] dm: imx: serial: Support driver model in the MXC serial driver Simon Glass
2014-09-17  3:51 ` [U-Boot] [PATCH v2 11/11] dm: imx: Move cm_fx6 to use driver model for serial and GPIO Simon Glass
2014-09-17 13:07   ` Igor Grinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox