15 Feb, 2013

1 commit

  • Some mmio devices have a dedicated interface clock that needs
    to be enabled to access their registers. This patch optionally
    enables a clock before accessing registers in the regmap_bus
    callbacks.

    I added (devm_)regmap_init_mmio_clk variants of the init
    functions that have an added clk_id string parameter. This
    is passed to clk_get to request the clock from the clk
    framework.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Mark Brown

    Philipp Zabel
     

19 Jul, 2012

1 commit


14 Jun, 2012

1 commit


03 Jun, 2012

1 commit


10 Apr, 2012

1 commit

  • regmap_config.reg_stride is introduced. All extant register addresses
    are a multiple of this value. Users of serial-oriented regmap busses will
    typically set this to 1. Users of the MMIO regmap bus will typically set
    this based on the value size of their registers, in bytes, so 4 for a
    32-bit register.

    Throughout the regmap code, actual register addresses are used. Wherever
    the register address is used to index some array of values, the address
    is divided by the stride to determine the index, or vice-versa. Error-
    checking is added to all entry-points for register address data to ensure
    that register addresses actually satisfy the specified stride. The MMIO
    bus ensures that the specified stride is large enough for the register
    size.

    Signed-off-by: Stephen Warren
    Signed-off-by: Mark Brown

    Stephen Warren
     

07 Apr, 2012

2 commits


06 Apr, 2012

1 commit

  • This is a basic memory-mapped-IO bus for regmap. It has the following
    features and limitations:

    * Registers themselves may be 8, 16, 32, or 64-bit. 64-bit is only
    supported on 64-bit platforms.
    * Register offsets are limited to precisely 32-bit.
    * IO is performed using readl/writel, with no provision for using the
    __raw_readl or readl_relaxed variants.

    Signed-off-by: Stephen Warren
    Signed-off-by: Mark Brown

    Stephen Warren