/openbmc/u-boot/drivers/net/ |
H A D | macb.c | 15 * The MACB receives packets into 128-byte receive buffers, so the 27 * "padding"). MACB shouldn't need that, but we'll refrain from any 44 #include "macb.h" 144 static int macb_is_gem(struct macb_device *macb) in macb_is_gem() argument 146 return MACB_BFEXT(IDNUM, macb_readl(macb, MID)) >= 0x2; in macb_is_gem() 157 static int gem_is_gigabit_capable(struct macb_device *macb) in gem_is_gigabit_capable() argument 163 return macb_is_gem(macb) && !cpu_is_sama5d2() && !cpu_is_sama5d4(); in gem_is_gigabit_capable() 166 static void macb_mdio_write(struct macb_device *macb, u8 reg, u16 value) in macb_mdio_write() argument 172 netctl = macb_readl(macb, NCR); in macb_mdio_write() 174 macb_writel(macb, NCR, netctl); in macb_mdio_write() [all …]
|
H A D | Kconfig | 253 config MACB config 254 bool "Cadence MACB/GEM Ethernet Interface" 258 The Cadence MACB ethernet interface is found on many Atmel 261 Say Y to include support for the MACB/GEM chip. 264 bool "Cadence MACB/GEM Ethernet Interface for Xilinx Zynq" 265 depends on MACB 267 The Cadence MACB ethernet interface was used on Zynq platform. 268 Say Y to enable support for the MACB/GEM in Zynq chip.
|
H A D | Makefile | 38 obj-$(CONFIG_MACB) += macb.o
|
/openbmc/linux/drivers/net/ethernet/cadence/ |
H A D | Kconfig | 22 config MACB config 23 tristate "Cadence MACB/GEM support" 29 The Cadence MACB ethernet interface is found on many Atmel AT32 and 32 support for the MACB/GEM chip. 35 will be macb. 39 depends on MACB 43 Enable IEEE 1588 Precision Time Protocol (PTP) support for MACB. 46 tristate "Cadence PCI MACB/GEM support" 47 depends on MACB && PCI 49 This is PCI wrapper for MACB driver.
|
H A D | macb_ptp.c | 24 #include "macb.h" 28 static struct macb_dma_desc_ptp *macb_ptp_desc(struct macb *bp, in macb_ptp_desc() 44 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_get_time() 80 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_set_time() 102 static int gem_tsu_incr_set(struct macb *bp, struct tsu_incr *incr_spec) in gem_tsu_incr_set() 124 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjfine() 159 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjtime() 205 static void gem_ptp_init_timer(struct macb *bp) in gem_ptp_init_timer() 220 static void gem_ptp_init_tsu(struct macb *bp) in gem_ptp_init_tsu() 236 static void gem_ptp_clear_timer(struct macb *bp) in gem_ptp_clear_timer() [all …]
|
H A D | macb_main.c | 3 * Cadence MACB/GEM Ethernet Controller driver 41 #include "macb.h" 43 /* This structure is only used for MACB on SiFive FU540 devices */ 128 static unsigned int macb_dma_desc_get_size(struct macb *bp) in macb_dma_desc_get_size() 155 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx() 174 static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc) in macb_64b_desc() 182 static unsigned int macb_tx_ring_wrap(struct macb *bp, unsigned int index) in macb_tx_ring_wrap() 211 static unsigned int macb_rx_ring_wrap(struct macb *bp, unsigned int index) in macb_rx_ring_wrap() 230 static u32 hw_readl_native(struct macb *bp, int offset) in hw_readl_native() 235 static void hw_writel_native(struct macb *bp, int offset, u32 value) in hw_writel_native() [all …]
|
H A D | Makefile | 5 macb-y := macb_main.o 8 macb-y += macb_ptp.o 11 obj-$(CONFIG_MACB) += macb.o
|
H A D | macb.h | 3 * Atmel MACB Ethernet Controller driver 25 /* MACB register offsets */ 786 /* Conditional GEM/MACB macros. These perform the operation to the correct 787 * register dependent on whether the device is a GEM or a MACB. For registers 1148 struct macb; 1152 int (*mog_alloc_rx_buffers)(struct macb *bp); 1153 void (*mog_free_rx_buffers)(struct macb *bp); 1154 void (*mog_init_rings)(struct macb *bp); 1159 /* MACB-PTP interface: adapt to platform needs. */ 1164 unsigned int (*get_tsu_rate)(struct macb *bp); [all …]
|
H A D | macb_pci.c | 17 #include "macb.h" 20 #define PLAT_DRIVER_NAME "macb" 58 /* set up macb platform data */ in macb_probe()
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | cdns,macb.yaml | 4 $id: http://devicetree.org/schemas/net/cdns,macb.yaml# 7 title: Cadence MACB/GEM Ethernet controller 37 - cdns,at91sam9260-macb # Atmel at91sam9 SoCs 38 - cdns,sam9x60-macb # Microchip sam9x60 SoC 39 - microchip,mpfs-macb # Microchip PolarFire SoC 40 - const: cdns,macb # Generic 44 - atmel,sama5d3-macb # 10/100Mbit IP on Atmel sama5d3 SoCs 46 - cdns,at91sam9260-macb # Atmel at91sam9 SoCs. 47 - const: cdns,macb # Generic 54 - cdns,np4-macb # NP4 SoC devices [all …]
|
/openbmc/linux/arch/arm/boot/dts/microchip/ |
H A D | sama5d3_emac.dtsi | 37 compatible = "atmel,sama5d3-macb", "cdns,at91sam9260-macb", "cdns,macb";
|
H A D | at91sam9x5_macb1.dtsi | 34 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
H A D | at91sam9x5_macb0.dtsi | 46 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
H A D | at91sam9260.dtsi | 308 macb { 630 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
H A D | at91sam9263.dtsi | 257 macb { 629 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
H A D | sam9x60.dtsi | 999 compatible = "cdns,sam9x60-macb", "cdns,macb"; 1008 compatible = "cdns,sam9x60-macb", "cdns,macb";
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | at91sam9x5_macb1.dtsi | 44 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
H A D | sama5d3_emac.dtsi | 44 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
H A D | at91sam9x5_macb0.dtsi | 56 compatible = "cdns,at91sam9260-macb", "cdns,macb";
|
/openbmc/u-boot/board/sifive/fu540/ |
H A D | Kconfig | 35 imply MACB
|
/openbmc/linux/drivers/clk/socfpga/ |
H A D | clk-gate-s10.c | 75 if (parent == 1) /* only applicable if parent is macb */ in socfpga_gate_get_parent() 105 if (parent == 1) /* only applicable if parent is macb */ in socfpga_agilex_gate_get_parent()
|
/openbmc/linux/arch/riscv/boot/dts/microchip/ |
H A D | mpfs.dtsi | 419 compatible = "microchip,mpfs-macb", "cdns,macb"; 433 compatible = "microchip,mpfs-macb", "cdns,macb";
|
/openbmc/u-boot/drivers/net/ti/ |
H A D | keystone_net.c | 498 u32 macb = 0; in ks2_eth_read_rom_hwaddr() local 503 macb = __raw_readl(MAC_ID_BASE_ADDR + 4); in ks2_eth_read_rom_hwaddr() 506 pdata->enetaddr[0] = (macb >> 8) & 0xff; in ks2_eth_read_rom_hwaddr() 507 pdata->enetaddr[1] = (macb >> 0) & 0xff; in ks2_eth_read_rom_hwaddr()
|
/openbmc/u-boot/doc/ |
H A D | README.sifive-fu540 | 13 3. Cadence MACB ethernet driver for networking support. 260 [ 3.832623] macb: GEM doesn't support hardware ptp. 263 [ 4.055779] macb 10090000.ethernet eth0: Cadence GEM rev 0x10070109 at 0x10090000 irq 12 (70:b3:… 291 [ 7.927510] macb 10090000.ethernet eth0: link up (1000/Full)
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | atmel-usb.txt | 63 - interrupts: Should contain macb interrupt
|