| /openbmc/u-boot/drivers/core/ |
| H A D | syscon-uclass.c | 8 #include <syscon.h> 19 * This API requires the given device has alerady been bound to syscon driver. 21 * compatible = "syscon", "simple-mfd"; 23 * compatible = "simple-mfd", "syscon"; 63 struct udevice *syscon; in syscon_regmap_lookup_by_phandle() local 68 name, &syscon); in syscon_regmap_lookup_by_phandle() 70 dev_dbg(dev, "unable to find syscon device\n"); in syscon_regmap_lookup_by_phandle() 74 r = syscon_get_regmap(syscon); in syscon_regmap_lookup_by_phandle() 127 UCLASS_DRIVER(syscon) = { 129 .name = "syscon", [all …]
|
| /openbmc/u-boot/drivers/net/ti/ |
| H A D | cpsw-common.c | 27 int syscon; in davinci_emac_3517_get_macid() local 30 syscon = fdtdec_lookup_phandle(fdt, node, "syscon"); in davinci_emac_3517_get_macid() 31 if (syscon < 0) { in davinci_emac_3517_get_macid() 32 pr_err("Syscon offset not found\n"); in davinci_emac_3517_get_macid() 36 addr = (u32)map_physmem(fdt_translate_address(fdt, syscon, &gmii), in davinci_emac_3517_get_macid() 39 pr_err("Not able to get syscon address to get mac efuse address\n"); in davinci_emac_3517_get_macid() 67 int syscon; in cpsw_am33xx_cm_get_macid() local 70 syscon = fdtdec_lookup_phandle(fdt, node, "syscon"); in cpsw_am33xx_cm_get_macid() 71 if (syscon < 0) { in cpsw_am33xx_cm_get_macid() 72 pr_err("Syscon offset not found\n"); in cpsw_am33xx_cm_get_macid() [all …]
|
| /openbmc/u-boot/arch/arm/cpu/arm920t/ep93xx/ |
| H A D | cpu.c | 18 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in reset_cpu() local 22 writel(0xAA, &syscon->sysswlock); in reset_cpu() 23 value = readl(&syscon->devicecfg); in reset_cpu() 25 writel(value, &syscon->devicecfg); in reset_cpu() 28 writel(0xAA, &syscon->sysswlock); in reset_cpu() 29 value = readl(&syscon->devicecfg); in reset_cpu() 31 writel(value, &syscon->devicecfg); in reset_cpu()
|
| H A D | speed.c | 44 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in get_FCLK() local 46 const uint32_t clkset1 = readl(&syscon->clkset1); in get_FCLK() 49 const ulong fclk_rate = get_PLLCLK(&syscon->clkset1) / fclk_div; in get_FCLK() 58 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in get_HCLK() local 60 const uint32_t clkset1 = readl(&syscon->clkset1); in get_HCLK() 63 const ulong hclk_rate = get_PLLCLK(&syscon->clkset1) / hclk_div; in get_HCLK() 72 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in get_PCLK() local 74 const uint32_t clkset1 = readl(&syscon->clkset1); in get_PCLK() 85 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in get_UCLK() local 88 const uint32_t value = readl(&syscon->pwrcnt); in get_UCLK()
|
| /openbmc/u-boot/drivers/usb/host/ |
| H A D | ohci-ep93xx.c | 16 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in usb_cpu_init() local 17 unsigned long pwr = readl(&syscon->pwrcnt); in usb_cpu_init() 18 writel(pwr | SYSCON_PWRCNT_USH_EN, &syscon->pwrcnt); in usb_cpu_init() 25 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in usb_cpu_stop() local 26 unsigned long pwr = readl(&syscon->pwrcnt); in usb_cpu_stop() 27 writel(pwr & ~SYSCON_PWRCNT_USH_EN, &syscon->pwrcnt); in usb_cpu_stop()
|
| H A D | dwc3-sti-glue.c | 18 #include <syscon.h> 107 struct udevice *syscon; in sti_dwc3_glue_ofdata_to_platdata() local 122 /* get corresponding syscon phandle */ in sti_dwc3_glue_ofdata_to_platdata() 124 &syscon); in sti_dwc3_glue_ofdata_to_platdata() 126 pr_err("unable to find syscon device (%d)\n", ret); in sti_dwc3_glue_ofdata_to_platdata() 131 regmap = syscon_get_regmap(syscon); in sti_dwc3_glue_ofdata_to_platdata()
|
| /openbmc/u-boot/arch/arm/dts/ |
| H A D | keystone-k2hk.dtsi | 50 gpio,syscon-dev = <&devctrl 0x240>; 57 gpio,syscon-dev = <&devctrl 0x244>; 64 gpio,syscon-dev = <&devctrl 0x248>; 71 gpio,syscon-dev = <&devctrl 0x24c>; 78 gpio,syscon-dev = <&devctrl 0x250>; 85 gpio,syscon-dev = <&devctrl 0x254>; 92 gpio,syscon-dev = <&devctrl 0x258>; 99 gpio,syscon-dev = <&devctrl 0x25c>;
|
| H A D | mt7629.dtsi | 67 infracfg: syscon@10000000 { 68 compatible = "mediatek,mt7629-infracfg", "syscon"; 74 pericfg: syscon@10002000 { 75 compatible = "mediatek,mt7629-pericfg", "syscon"; 102 mcucfg: syscon@10200000 { 103 compatible = "mediatek,mt7629-mcucfg", "syscon"; 228 ethsys: syscon@1b000000 { 229 compatible = "mediatek,mt7629-ethsys", "syscon"; 236 compatible = "mediatek,mt7629-eth", "syscon"; 276 sgmiisys0: syscon@1b128000 { [all …]
|
| H A D | keystone-k2l.dtsi | 58 gpio,syscon-dev = <&devctrl 0x240>; 65 gpio,syscon-dev = <&devctrl 0x244>; 72 gpio,syscon-dev = <&devctrl 0x248>; 79 gpio,syscon-dev = <&devctrl 0x24c>;
|
| H A D | mt7623.dtsi | 106 infracfg: syscon@10001000 { 107 compatible = "mediatek,mt7623-infracfg", "syscon"; 113 pericfg: syscon@10003000 { 114 compatible = "mediatek,mt7623-pericfg", "syscon"; 251 ethsys: syscon@1b000000 { 252 compatible = "mediatek,mt7623-ethsys", "syscon"; 259 compatible = "mediatek,mt7623-eth", "syscon";
|
| /openbmc/u-boot/drivers/sysreset/ |
| H A D | sysreset_sti.c | 10 #include <syscon.h> 32 struct udevice *syscon; in sti_sysreset_probe() local 37 /* get corresponding syscon phandle */ in sti_sysreset_probe() 48 &syscon); in sti_sysreset_probe() 55 regmap = syscon_get_regmap(syscon); in sti_sysreset_probe() 57 pr_err("unable to get regmap for %s\n", syscon->name); in sti_sysreset_probe()
|
| H A D | Kconfig | 49 bool "Enable support for mfd syscon reboot driver" 51 select SYSCON 53 Reboot support for generic SYSCON mapped register reset.
|
| H A D | sysreset_syscon.c | 5 * Derived from linux/drivers/power/reset/syscon-reboot.c: 15 #include <syscon.h> 64 { .compatible = "syscon-reboot" },
|
| /openbmc/u-boot/drivers/clk/ |
| H A D | clk_boston.c | 11 #include <syscon.h> 63 struct udevice *syscon; in clk_boston_ofdata_to_platdata() local 67 "regmap", &syscon); in clk_boston_ofdata_to_platdata() 69 pr_err("unable to find syscon device\n"); in clk_boston_ofdata_to_platdata() 73 state->regmap = syscon_get_regmap(syscon); in clk_boston_ofdata_to_platdata()
|
| /openbmc/u-boot/doc/device-tree-bindings/pinctrl/ |
| H A D | bcm6838-pinctrl.txt | 5 - regmap: specify the gpio test port syscon 14 gpio_test_port: syscon@14e00294 { 15 compatible = "syscon";
|
| /openbmc/u-boot/drivers/clk/at91/ |
| H A D | clk-utmi.c | 10 #include <syscon.h> 113 struct udevice *syscon; in utmi_clk_ofdata_to_platdata() local 116 "regmap-sfr", &syscon); in utmi_clk_ofdata_to_platdata() 118 if (syscon) in utmi_clk_ofdata_to_platdata() 119 plat->regmap_sfr = syscon_get_regmap(syscon); in utmi_clk_ofdata_to_platdata()
|
| /openbmc/u-boot/drivers/phy/ |
| H A D | sti_usb_phy.c | 17 #include <syscon.h> 106 struct udevice *syscon; in sti_usb_phy_probe() local 111 /* get corresponding syscon phandle */ in sti_usb_phy_probe() 121 &syscon); in sti_usb_phy_probe() 123 pr_err("unable to find syscon device (%d)\n", ret); in sti_usb_phy_probe() 127 priv->regmap = syscon_get_regmap(syscon); in sti_usb_phy_probe()
|
| /openbmc/u-boot/drivers/net/ |
| H A D | dwmac_socfpga.c | 15 #include <syscon.h> 34 ret = dev_read_phandle_with_args(dev, "altr,sysmgr-syscon", NULL, in dwmac_socfpga_ofdata_to_platdata() 37 dev_err(dev, "Failed to get syscon: %d\n", ret); in dwmac_socfpga_ofdata_to_platdata() 42 dev_err(dev, "Invalid number of syscon args\n"); in dwmac_socfpga_ofdata_to_platdata()
|
| /openbmc/u-boot/include/ |
| H A D | syscon.h | 14 * struct syscon_uc_info - Information stored by the syscon UCLASS_UCLASS 90 * syscon_get_first_range() - get the first memory range from a syscon regmap 99 * syscon_node_to_regmap - get regmap from syscon 101 * @node: Device node of syscon
|
| /openbmc/u-boot/doc/device-tree-bindings/net/ |
| H A D | mediatek,mt7628-eth.txt | 7 - syscon: phandle to the system controller 16 syscon = <&sysc>;
|
| /openbmc/u-boot/test/dm/ |
| H A D | syscon.c | 8 #include <syscon.h> 57 ut_assertok_ptr(syscon_regmap_lookup_by_phandle(dev, "first-syscon")); in dm_test_syscon_by_phandle() 58 map = syscon_regmap_lookup_by_phandle(dev, "first-syscon"); in dm_test_syscon_by_phandle()
|
| H A D | regmap.c | 10 #include <syscon.h> 44 /* Check that we can't pretend a different device is a syscon */ in dm_test_regmap_base() 49 /* A different device can be a syscon by using Linux-compat API */ in dm_test_regmap_base() 50 node = ofnode_path("/syscon@2"); in dm_test_regmap_base() 69 /* Test we can access a regmap through syscon */
|
| /openbmc/u-boot/arch/riscv/lib/ |
| H A D | sifive_clint.c | 5 * U-Boot syscon driver for SiFive's Core Local Interruptor (CLINT). 13 #include <syscon.h> 15 #include <asm/syscon.h>
|
| /openbmc/u-boot/arch/mips/dts/ |
| H A D | brcm,bcm6338.dtsi | 69 pll_cntl: syscon@fffe0008 { 70 compatible = "syscon"; 74 syscon-reboot { 75 compatible = "syscon-reboot";
|
| /openbmc/u-boot/board/cirrus/edb93xx/ |
| H A D | edb93xx.c | 69 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in board_init() local 70 writel(CLKSET2_VAL, &syscon->clkset2); in board_init() 114 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in board_early_init_f() local 115 writel(SYSCON_PWRCNT_UART_BAUD, &syscon->pwrcnt); in board_early_init_f() 229 struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE; in dram_init() local 231 unsigned chip_id = readl(&syscon->chipid); in dram_init()
|