[U-Boot] [PATCH v4 3/3] pinctrl: sandbox: add sandbox pinctrl driver

Simon Glass sjg at chromium.org
Wed Aug 26 05:06:12 CEST 2015


On 24 August 2015 at 22:52, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> This driver actually does nothing but test pinctrl uclass, and
> demonstrate how things work.
>
> To try this driver, uncomment /* #define DEBUG */ in the
> drivers/pinctrl/pinctrl-sandbox.c, and debug messages will be
> displayed.
>
>   DRAM:  128 MiB
>   sandbox pinmux: group = 1 (serial_a), function = 1 (serial)
>   Using default environment
>
>   In:    cros-ec-keyb
>   Out:   lcd
>   Err:   lcd
>   Net:   Net Initialization Skipped
>   eth0: eth at 10002000, eth1: eth at 80000000, eth5: eth at 90000000
>   => i2c dev 0
>   Setting bus to 0
>   sandbox pinmux: group = 0 (i2c), function = 0 (i2c)
>   sandbox pinconf: group = 0 (i2c), param = 3, arg = 1
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v4:
>   - Add copy right to pinctrl-sandbox
>   - Remove probe() and remove()
>   - Add help in Kconfig
>
>  arch/sandbox/dts/sandbox.dts      |  19 +++++
>  configs/sandbox_defconfig         |   3 +
>  drivers/pinctrl/Kconfig           |   8 +++
>  drivers/pinctrl/Makefile          |   2 +
>  drivers/pinctrl/pinctrl-sandbox.c | 147 ++++++++++++++++++++++++++++++++++++++
>  5 files changed, 179 insertions(+)
>  create mode 100644 drivers/pinctrl/pinctrl-sandbox.c

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list