• Simon Glass's avatar
    pinctrl: Add the concept of peripheral IDs · c5acf4a2
    Simon Glass authored
    My original pinctrl patch operating using a peripheral ID enum. This was
    shared between pinmux and clock and provides an easy way to specify a device
    that needs to be controlled, even it is does not (yet) have a driver within
    driver model.
    
    Masahiro's new simple pinctrl gets around this by providing a
    set_state_simple() pinctrl method. By passing a device to that call the
    peripheral ID becomes unnecessary. If the driver needs it, it can calculate
    it itself and use it internally.
    
    However this does not solve the problem for peripheral clocks. The 'pure'
    solution would be to pass a driver to the clock uclass also. But this
    requires that all devices should have a driver, and a struct udevide. Also
    a key optimisation of the clock uclass is allowing a peripheral clock to
    be set even when there is no device for that clock.
    
    There may be a better way to achive the same goal, but for now it seems
    expedient to add in peripheral ID to the pinctrl uclass. Two methods are
    added - one to get the peripheral ID and one to select it. The existing
    set_state_simple() is effectively the union of these.
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    c5acf4a2
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
snapshot.commit Loading commit data...