• C
    mfd: axp20x: Add address extension registers for AXP806 regmap · 34d9030b
    Chen-Yu Tsai 提交于
    The AXP806 supports either master/standalone or slave mode.
    Slave mode allows sharing the serial bus, even with multiple
    AXP806 which all have the same hardware address.
    
    This is done with extra "serial interface address extension",
    or AXP806_BUS_ADDR_EXT, and "register address extension", or
    AXP806_REG_ADDR_EXT, registers. The former is read-only, with
    1 bit customizable at the factory, and 1 bit depending on the
    state of an external pin. The latter is writable. Only when
    the these device addressing bits (in the upper 4 bits of the
    registers) match, will the device respond to operations on
    its other registers.
    
    Add these 2 registers to the regmap so we can access them.
    Signed-off-by: NChen-Yu Tsai <wens@csie.org>
    Signed-off-by: NLee Jones <lee.jones@linaro.org>
    34d9030b
axp20x.c 26.4 KB