Skip to content
Commit 5df30010 authored by Phil Elwell's avatar Phil Elwell Committed by Dom Cobley
Browse files

i2c: mux: Add support for generic base-nr property



i2c_mux_add_adapter takes a force_nr parameter that allows an explicit
bus number to be associated with a channel. However, only i2c-mux-reg
and i2c-mux-gpio make use of it.

To help with situations where it is desirable to have a fixed, known
base address for the channels of a mux, create a "base-nr" property.
When force_nr is 0 and base-nr is set and non-zero, form a force_nr
value from the sum of base-nr and the channel ID.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.com>
parent 4017c613
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment