MLK-14938-7 imx8: Add iomux driver
authorYe Li <ye.li@nxp.com>
Wed, 17 May 2017 07:08:19 +0000 (02:08 -0500)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:36:49 +0000 (02:36 +0800)
commit28b3af555794826731fe81ba55455a3d1908efca
tree1a00117619351013b309f4dcef5064eb74f8db9e
parent2c8b160f9c5b96434bce87108f82b1bb434abaa5
MLK-14938-7 imx8: Add iomux driver

Wrap the iomux settings through SCU APIs. Provide interfaces to follow
other i.MX platforms.

Users need to define the iomux_cfg_t which combines of three parts:
<PAD id> | <MUX ALT> | <PAD & MUX CONFIG>

<PAD id>   can directly use the values in imx8qm_pins.h
<MUX ALT>  is optional if the select to use default mux. Otherwise using
           MUX_MODE_ALT(x) to set it.
<PAD & MUX CONFIG> is the value for CONFIG, LP_CONFIG, PULL control, Drive Strength in
           Padring control register.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/cpu/armv8/imx8/Makefile
arch/arm/cpu/armv8/imx8/iomux.c [new file with mode: 0644]
arch/arm/include/asm/arch-imx8/iomux.h [new file with mode: 0644]