Lines Matching +full:ls1x +full:- +full:gpio
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2011-2016 Zhang, Keguang <[email protected]>
7 #include <linux/dma-mapping.h>
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,
147 .end = LS1X_GMAC0_BASE + SZ_64K - 1,
170 .phy_addr = -1,
184 .end = LS1X_GMAC1_BASE + SZ_64K - 1,
205 /* GPIO */
209 .end = LS1X_GPIO0_BASE + SZ_4 - 1,
215 .name = "ls1x-gpio",
224 .end = LS1X_GPIO1_BASE + SZ_4 - 1,
230 .name = "ls1x-gpio",
242 .end = LS1X_EHCI_BASE + SZ_32K - 1,
255 .name = "ehci-platform",
256 .id = -1,
267 .name = "ls1x-rtc",
268 .id = -1,
275 .end = LS1X_WDT_BASE + SZ_16 - 1,
281 .name = "ls1x-wdt",
282 .id = -1,