Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/mediatek/mtk_pinctrl.c
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | mtk_pinctrl_configure(device_t dev, phandle_t cfgxref) | ||||
node = OF_node_from_xref(cfgxref); | node = OF_node_from_xref(cfgxref); | ||||
ret = 0; | ret = 0; | ||||
/* Now, get the system type, so we can get the proper GPIO mode array */ | /* Now, get the system type, so we can get the proper GPIO mode array */ | ||||
socid = mtk_soc_get_socid(); | socid = mtk_soc_get_socid(); | ||||
switch (socid) { | switch (socid) { | ||||
case MTK_SOC_RT2880: | |||||
pintable = rt2880_pintable; | |||||
break; | |||||
case MTK_SOC_RT3050: /* fallthrough */ | case MTK_SOC_RT3050: /* fallthrough */ | ||||
case MTK_SOC_RT3052: | case MTK_SOC_RT3052: | ||||
case MTK_SOC_RT3350: | case MTK_SOC_RT3350: | ||||
pintable = rt3050_pintable; | pintable = rt3050_pintable; | ||||
break; | break; | ||||
case MTK_SOC_RT3352: | case MTK_SOC_RT3352: | ||||
pintable = rt3352_pintable; | pintable = rt3352_pintable; | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |