[U-Boot] [PATCH v3 0/4] dm:gpio:mxc add DT support

Peng Fan Peng.Fan at freescale.com
Wed Jan 21 12:09:52 CET 2015


This patch set is to add DT support for mxc_gpio driver.

patch 1/4 and 2/4, a new dev_get_addr interface is abstracted to
		   improve driver who want to get device address.
patch 3/4, add a new bank_index entry in platdata to avoid `plat - mxc_plat`
	   pointer subtract usage.
patch 4/4, add compatible ids and implement bind function. Also commented
	   out U_BOOT_DEVICES and mxc_plat, since they are not needed
	   if using DT.


Changes v3:
 1. split bank_index patch
 2. abstract dev_get_addr for driver

Changes v2:
 1. remove uneccessary #ifdef
 2. add more stuff in commit log
 3. include a new function mxc_get_gpio_addr to get register base.
    This function is different for DT and not DT, by `#ifdef`.
    If using one implementation for DT and not DT, final image will be big.
 4. include a new entry in platdata, named bank_index. it can simplify DT
    support. To no DT, bank_index is static initilized; to DT, bank_index
    is get from device's req_seq.

Peng Fan (4):
  dm: introduce dev_get_addr interface
  dm: add dev_get_addr prototype
  dm:gpio:mxc add a bank_index entry in platdata
  dm:gpio:mxc add DT support

 drivers/core/device.c   | 19 +++++++++++++
 drivers/gpio/mxc_gpio.c | 72 ++++++++++++++++++++++++++++++++++++-------------
 include/dm/device.h     |  9 +++++++
 3 files changed, 82 insertions(+), 18 deletions(-)

-- 
1.8.4




More information about the U-Boot mailing list