[U-Boot] [PATCH v3 20/54] dm: Add support for register maps (regmap)

Simon Glass sjg at chromium.org
Sat Jul 18 01:56:52 CEST 2015


On 23 June 2015 at 15:38, Simon Glass <sjg at chromium.org> wrote:
> Add a simple implementaton of register maps, supporting only direct I/O
> for now. This can be enhanced later to support buses which have registers,
> such as I2C, SPI and PCI.
>
> It allows drivers which can operate with multiple buses to avoid dealing
> with the particulars of register access on that bus.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  drivers/core/Makefile |  1 +
>  drivers/core/regmap.c | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/regmap.h      | 72 ++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 159 insertions(+)
>  create mode 100644 drivers/core/regmap.c
>  create mode 100644 include/regmap.h

Applied to u-boot-dm.


More information about the U-Boot mailing list