Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147026507
D12648.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12648.id.diff
View Options
Index: head/sys/mips/mediatek/mtk_pinctrl.h
===================================================================
--- head/sys/mips/mediatek/mtk_pinctrl.h
+++ head/sys/mips/mediatek/mtk_pinctrl.h
@@ -118,6 +118,14 @@
FUNC("ge1", 0), FUNC("ge2", 0), FUNC("gpio", 1)
};
+DECL_FUNC(rt2880_uartf_func) = {
+ FUNC("uartf", 0), FUNC("gpio", 1)
+};
+
+DECL_FUNC(rt2880_pci_func) = {
+ FUNC("pci", 0), FUNC("gpio", 1)
+};
+
DECL_FUNC(rt3883_pci_func) = {
FUNC("pci-dev", 0), FUNC("pci-host2", 1), FUNC("pci-host1", 2),
FUNC("pci-fnc", 3), FUNC("gpio", 7)
@@ -295,6 +303,18 @@
GROUP("nd_sd", SYSCTL_GPIOMODE, 18, 3, nd_sd_func),
GROUP("pa", SYSCTL_GPIOMODE, 20, 1, pa_func),
GROUP("wdt", SYSCTL_GPIOMODE, 21, 3, wdt_func),
+ GROUP_END
+};
+
+DECL_TABLE(rt2880_pintable) = {
+ GROUP("i2c", SYSCTL_GPIOMODE, 0, 1, i2c_func),
+ GROUP("uartf", SYSCTL_GPIOMODE, 1, 1, rt2880_uartf_func),
+ GROUP("spi", SYSCTL_GPIOMODE, 2, 1, spi_func),
+ GROUP("uartlite", SYSCTL_GPIOMODE, 3, 1, uartlite_func),
+ GROUP("jtag", SYSCTL_GPIOMODE, 4, 1, jtag_func),
+ GROUP("mdio", SYSCTL_GPIOMODE, 5, 1, mdio_func),
+ GROUP("sdram", SYSCTL_GPIOMODE, 6, 1, sdram_func),
+ GROUP("pci", SYSCTL_GPIOMODE, 7, 1, rt2880_pci_func),
GROUP_END
};
Index: head/sys/mips/mediatek/mtk_pinctrl.c
===================================================================
--- head/sys/mips/mediatek/mtk_pinctrl.c
+++ head/sys/mips/mediatek/mtk_pinctrl.c
@@ -169,6 +169,9 @@
socid = mtk_soc_get_socid();
switch (socid) {
+ case MTK_SOC_RT2880:
+ pintable = rt2880_pintable;
+ break;
case MTK_SOC_RT3050: /* fallthrough */
case MTK_SOC_RT3052:
case MTK_SOC_RT3350:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 8, 5:36 PM (9 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29411633
Default Alt Text
D12648.id.diff (1 KB)
Attached To
Mode
D12648: RT2880 pin control fix
Attached
Detach File
Event Timeline
Log In to Comment