Skip to content

Commit

Permalink
Add support for ethernet in imxrt1064-evk
Browse files Browse the repository at this point in the history
JIRA: RTOS-507
  • Loading branch information
Julian Uziemblo committed Sep 4, 2024
1 parent 32de174 commit 6e7c4a7
Show file tree
Hide file tree
Showing 13 changed files with 1,982 additions and 982 deletions.
2 changes: 1 addition & 1 deletion _targets/Makefile.armv7a7-imx6ull
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
NET_DRIVERS_SUPPORTED := enet tuntap
NET_DRIVERS ?= $(NET_DRIVERS_SUPPORTED)

DRIVERS_SRCS_enet = imx6-enet.c ephy.c gpio.c imx6ull-gpio.c $(DRIVERS_SRCS_UTIL) hw-debug.c
DRIVERS_SRCS_enet = imx-enet.c ephy.c imx6ull-gpio.c $(DRIVERS_SRCS_UTIL) hw-debug.c
4 changes: 3 additions & 1 deletion _targets/Makefile.armv7m7-imxrt106x
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# Copyright 2021 Phoenix Systems
#

NET_DRIVERS_SUPPORTED := pppou pppos
NET_DRIVERS_SUPPORTED := pppou pppos enet
NET_DRIVERS ?= $(NET_DRIVERS_SUPPORTED)
PPPOS_MODEM := huawei

DRIVERS_SRCS_enet = imx-enet.c ephy.c imxrt106x-gpio.c $(DRIVERS_SRCS_UTIL)
3 changes: 3 additions & 0 deletions drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ endif
ifeq ($(EPHY_KSZ8081),RND)
LOCAL_CFLAGS := -DEPHY_KSZ8081RND
endif
ifeq ($(EPHY_KSZ8081),RNB)
LOCAL_CFLAGS := -DEPHY_KSZ8081RNB
endif

# make possible to specify defalult APN name externally
ifneq ($(PPPOS_DEFAULT_APN),)
Expand Down
6 changes: 3 additions & 3 deletions drivers/bdring.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*
* Buffer descriptor ring handling
*
* Copyright 2018 Phoenix Systems
* Author: Michał Mirosław
* Copyright 2018, 2024 Phoenix Systems
* Author: Michał Mirosław, Julian Uziembło
*
* %LICENSE%
*/
Expand Down Expand Up @@ -46,7 +46,7 @@ struct net_bufdesc_ring_
{
volatile void *ring;
struct pbuf **bufp;
volatile unsigned head, tail;
_Atomic volatile unsigned head, tail;
unsigned last;
addr_t phys;
const net_bufdesc_ops_t *ops;
Expand Down
Loading

0 comments on commit 6e7c4a7

Please sign in to comment.