mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
pinctrl: MediaTek: add pinctrl driver for MT7623 SoC
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Tested-by: Matthias Brugger <matthias.bgg@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
01aa9d1d54
commit
59a8fef342
4 changed files with 1291 additions and 0 deletions
|
@ -4,6 +4,10 @@ config PINCTRL_MTK
|
|||
depends on PINCTRL_GENERIC
|
||||
bool
|
||||
|
||||
config PINCTRL_MT7623
|
||||
bool "MT7623 SoC pinctrl driver"
|
||||
select PINCTRL_MTK
|
||||
|
||||
config PINCTRL_MT7629
|
||||
bool "MT7629 SoC pinctrl driver"
|
||||
select PINCTRL_MTK
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
obj-$(CONFIG_PINCTRL_MTK) += pinctrl-mtk-common.o
|
||||
|
||||
# SoC Drivers
|
||||
obj-$(CONFIG_PINCTRL_MT7623) += pinctrl-mt7623.o
|
||||
obj-$(CONFIG_PINCTRL_MT7629) += pinctrl-mt7629.o
|
||||
|
|
1284
drivers/pinctrl/mediatek/pinctrl-mt7623.c
Normal file
1284
drivers/pinctrl/mediatek/pinctrl-mt7623.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -176,6 +176,8 @@ struct mtk_pinctrl_priv {
|
|||
|
||||
extern const struct pinctrl_ops mtk_pinctrl_ops;
|
||||
|
||||
/* A common read-modify-write helper for MediaTek chips */
|
||||
void mtk_rmw(struct udevice *dev, u32 reg, u32 mask, u32 set);
|
||||
int mtk_pinctrl_common_probe(struct udevice *dev,
|
||||
struct mtk_pinctrl_soc *soc);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue