diff options
| author | Hiago De Franco <[email protected]> | 2026-07-23 11:44:34 -0300 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2026-08-05 10:16:08 -0700 |
| commit | bacb61a06fd36661959ee8109e50f7e6eda76be1 (patch) | |
| tree | 9a223d2a7cd84d08329fb21ba422b127b67c51b8 | |
| parent | d803fb548e5844306830702438381c27373ce6ba (diff) | |
board: sophgo: move ethernet driver to common directory
This will make easier for future boards to reuse the same driver (e.g.
Milk-V Duo 256MB).
Signed-off-by: Hiago De Franco <[email protected]>
Acked-by: Leo Yu-Chi Liang <[email protected]>
| -rw-r--r-- | board/sophgo/common/ethernet.c (renamed from board/sophgo/milkv_duo/ethernet.c) | 0 | ||||
| -rw-r--r-- | board/sophgo/common/ethernet.h (renamed from board/sophgo/milkv_duo/ethernet.h) | 0 | ||||
| -rw-r--r-- | board/sophgo/milkv_duo/MAINTAINERS | 1 | ||||
| -rw-r--r-- | board/sophgo/milkv_duo/Makefile | 2 | ||||
| -rw-r--r-- | board/sophgo/milkv_duo/board.c | 2 |
5 files changed, 3 insertions, 2 deletions
diff --git a/board/sophgo/milkv_duo/ethernet.c b/board/sophgo/common/ethernet.c index e997ce1037f..e997ce1037f 100644 --- a/board/sophgo/milkv_duo/ethernet.c +++ b/board/sophgo/common/ethernet.c diff --git a/board/sophgo/milkv_duo/ethernet.h b/board/sophgo/common/ethernet.h index 7b21f1b0f66..7b21f1b0f66 100644 --- a/board/sophgo/milkv_duo/ethernet.h +++ b/board/sophgo/common/ethernet.h diff --git a/board/sophgo/milkv_duo/MAINTAINERS b/board/sophgo/milkv_duo/MAINTAINERS index 651a0592f7a..6941dc5b376 100644 --- a/board/sophgo/milkv_duo/MAINTAINERS +++ b/board/sophgo/milkv_duo/MAINTAINERS @@ -2,5 +2,6 @@ Milk-V Duo M: Kongyang Liu <[email protected]> S: Maintained F: board/sophgo/milkv_duo/ +F: board/sophgo/common/ F: configs/milkv_duo_defconfig F: doc/board/sophgo/milkv_duo.rst diff --git a/board/sophgo/milkv_duo/Makefile b/board/sophgo/milkv_duo/Makefile index 18ada7d72ff..aa321d15687 100644 --- a/board/sophgo/milkv_duo/Makefile +++ b/board/sophgo/milkv_duo/Makefile @@ -3,4 +3,4 @@ # Copyright (c) 2024, Kongyang Liu <[email protected]> obj-y += board.o -obj-$(CONFIG_NET_LEGACY) += ethernet.o +obj-$(CONFIG_NET_LEGACY) += ../common/ethernet.o diff --git a/board/sophgo/milkv_duo/board.c b/board/sophgo/milkv_duo/board.c index f0944859b58..34339c42925 100644 --- a/board/sophgo/milkv_duo/board.c +++ b/board/sophgo/milkv_duo/board.c @@ -5,7 +5,7 @@ #include <dm/lists.h> -#include "ethernet.h" +#include "../common/ethernet.h" int board_init(void) { |
