Lines Matching +full:resource +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2011-2016 Zhang, Keguang <keguang.zhang@gmail.com>
7 #include <linux/dma-mapping.h>
39 .id = PLAT8250_DEV_PLATFORM,
50 clk = clk_get(&pdev->dev, pdev->name); in ls1x_serial_set_uartclk()
53 pdev->name, PTR_ERR(clk)); in ls1x_serial_set_uartclk()
58 for (p = pdev->dev.platform_data; p->flags != 0; ++p) in ls1x_serial_set_uartclk()
59 p->uartclk = clk_get_rate(clk); in ls1x_serial_set_uartclk()
79 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init()
80 if (plat_dat->bus_id) { in ls1x_eth_mux_init()
83 switch (plat_dat->phy_interface) { in ls1x_eth_mux_init()
92 plat_dat->phy_interface); in ls1x_eth_mux_init()
93 return -ENOTSUPP; in ls1x_eth_mux_init()
97 switch (plat_dat->phy_interface) { in ls1x_eth_mux_init()
106 plat_dat->phy_interface); in ls1x_eth_mux_init()
107 return -ENOTSUPP; in ls1x_eth_mux_init()
113 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init()
116 if (plat_dat->phy_interface == PHY_INTERFACE_MODE_RMII) in ls1x_eth_mux_init()
129 .phy_addr = -1,
144 static struct resource ls1x_eth0_resources[] = {
147 .end = LS1X_GMAC0_BASE + SZ_64K - 1,
159 .id = 0,
161 .resource = ls1x_eth0_resources,
170 .phy_addr = -1,
181 static struct resource ls1x_eth1_resources[] = {
184 .end = LS1X_GMAC1_BASE + SZ_64K - 1,
196 .id = 1,
198 .resource = ls1x_eth1_resources,
206 static struct resource ls1x_gpio0_resources[] = {
209 .end = LS1X_GPIO0_BASE + SZ_4 - 1,
215 .name = "ls1x-gpio",
216 .id = 0,
218 .resource = ls1x_gpio0_resources,
221 static struct resource ls1x_gpio1_resources[] = {
224 .end = LS1X_GPIO1_BASE + SZ_4 - 1,
230 .name = "ls1x-gpio",
231 .id = 1,
233 .resource = ls1x_gpio1_resources,
239 static struct resource ls1x_ehci_resources[] = {
242 .end = LS1X_EHCI_BASE + SZ_32K - 1,
255 .name = "ehci-platform",
256 .id = -1,
258 .resource = ls1x_ehci_resources,
267 .name = "ls1x-rtc",
268 .id = -1,
272 static struct resource ls1x_wdt_resources[] = {
275 .end = LS1X_WDT_BASE + SZ_16 - 1,
281 .name = "ls1x-wdt",
282 .id = -1,
284 .resource = ls1x_wdt_resources,