Zephyr API Documentation
4.2.0-rc3
A Scalable Open Source RTOS
4.2.0-rc3
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Zephyr API Documentation
Introduction
Deprecated List
Topics
Data Structures
Files
File List
doc
kernel
lib
modules
subsys
zephyr
acpi
app_memory
arch
audio
bluetooth
canbus
console
crypto
data
debug
devicetree
dfu
display
drivers
dsp
dt-bindings
acpi
adc
battery
clock
comparator
dac
dai
display
dma
espi
ethernet
nxp_enet.h
xlnx_gem.h
flash_controller
gnss
gpio
i2c
input
inputmux
interrupt-controller
ipc_service
led
lora
lvgl
memory-attr
memory-controller
mfd
mipi_dbi
mipi_dsi
misc
pcie
pinctrl
power
pwm
qspi
rdc
regulator
reserved-memory
reset
sensor
sent
spi
timer
usb
usb-c
video
dt-util.h
fs
input
internal
ipc
kernel
linker
llext
logging
lorawan
math
mem_mgmt
mgmt
misc
modbus
modem
multi_heap
net
platform
pm
pmci
portability
posix
psa
random
retention
rtio
sd
sensing
settings
shell
sip_svc
stats
storage
sys
task_wdt
timing
toolchain
tracing
usb
usb_c
xen
zbus
zvfs
bindesc.h
cache.h
device.h
devicetree.h
fatal.h
fatal_types.h
init.h
irq.h
irq_multilevel.h
irq_nextlevel.h
irq_offload.h
kernel.h
kernel_includes.h
kernel_structs.h
kernel_version.h
net_buf.h
shared_irq.h
smf.h
spinlock.h
sw_isr_table.h
sys_clock.h
syscall.h
toolchain.h
types.h
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
xlnx_gem.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021-2022, Weidmueller Interface GmbH & Co. KG
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ETHERNET_XLNX_GEM_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_ETHERNET_XLNX_GEM_H_
8
9
/* PHY auto-detection alias */
10
#define XLNX_GEM_PHY_AUTO_DETECT 0
11
12
/*
13
* MDC divider values
14
*
15
* According to the ZynqMP's gem.network_config register documentation (UG1087),
16
* divider /32 is the reset value. The network_config[mdc_clock_division]
17
* documentation in UG1087 is likely wrong (copied directly from the Zynq-7000),
18
* as it claims that the MDC clock division is applied to the cpu_1x clock
19
* which the UltraScale doesn't have. Contradicting information is provided in
20
* the UltraScale TRM (UG1085), which mentions in chapter 34, section "Configure
21
* the PHY", p. 1074, that the MDC clock division is applied to the IOU_SWITCH_CLK.
22
* Xilinx's emacps driver doesn't (or no longer does) limit the range of dividers
23
* on the UltraScale compared to the Zynq-7000.
24
* -> Contrary to earlier revisions of this driver, all dividers are available
25
* to both the UltraScale and the Zynq-7000.
26
*/
27
28
#define XLNX_GEM_MDC_DIVIDER_8 0
/* cpu_1x or IOU_SWITCH_CLK < 20 MHz */
29
#define XLNX_GEM_MDC_DIVIDER_16 1
/* cpu_1x or IOU_SWITCH_CLK 20 - 40 MHz */
30
#define XLNX_GEM_MDC_DIVIDER_32 2
/* cpu_1x or IOU_SWITCH_CLK 40 - 80 MHz */
31
#define XLNX_GEM_MDC_DIVIDER_48 3
/* cpu_1x or IOU_SWITCH_CLK 80 - 120 MHz */
32
#define XLNX_GEM_MDC_DIVIDER_64 4
/* cpu_1x or IOU_SWITCH_CLK 120 - 160 MHz */
33
#define XLNX_GEM_MDC_DIVIDER_96 5
/* cpu_1x or IOU_SWITCH_CLK 160 - 240 MHz */
34
#define XLNX_GEM_MDC_DIVIDER_128 6
/* cpu_1x or IOU_SWITCH_CLK 240 - 320 MHz */
35
#define XLNX_GEM_MDC_DIVIDER_224 7
/* cpu_1x or IOU_SWITCH_CLK 320 - 540 MHz */
36
37
/* Link speed values */
38
#define XLNX_GEM_LINK_SPEED_10MBIT 1
39
#define XLNX_GEM_LINK_SPEED_100MBIT 2
40
#define XLNX_GEM_LINK_SPEED_1GBIT 3
41
42
/* AMBA AHB data bus width */
43
#define XLNX_GEM_AMBA_AHB_DBUS_WIDTH_32BIT 0
44
#define XLNX_GEM_AMBA_AHB_DBUS_WIDTH_64BIT 1
45
#define XLNX_GEM_AMBA_AHB_DBUS_WIDTH_128BIT 2
46
47
/* AMBA AHB burst length */
48
#define XLNX_GEM_AMBA_AHB_BURST_SINGLE 1
49
#define XLNX_GEM_AMBA_AHB_BURST_INCR4 4
50
#define XLNX_GEM_AMBA_AHB_BURST_INCR8 8
51
#define XLNX_GEM_AMBA_AHB_BURST_INCR16 16
52
53
/* Hardware RX buffer size */
54
#define XLNX_GEM_HW_RX_BUFFER_SIZE_1KB 0
55
#define XLNX_GEM_HW_RX_BUFFER_SIZE_2KB 1
56
#define XLNX_GEM_HW_RX_BUFFER_SIZE_4KB 2
57
#define XLNX_GEM_HW_RX_BUFFER_SIZE_8KB 3
58
59
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_ETHERNET_XLNX_GEM_H_ */
zephyr
dt-bindings
ethernet
xlnx_gem.h
Generated on
for Zephyr API Documentation by
1.14.0