realtek: convert mach includes to rtl-otto
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run

Right now the global includes are all named rtl838x. This suggests
that they are only for one of the four SoC types (RTL838x aka Maple)
required. As we are talking about the Otto platform rename that
accordingly. All the drivers have already adapted that some time
ago.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22005
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Markus Stockhausen 2026-02-13 09:26:20 +01:00 committed by Robert Marko
parent b325e6e5ee
commit 2b4cdb6941
18 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
#
# Realtek RTL838x SoCs
#
cflags-$(CONFIG_MACH_REALTEK_RTL) += -I$(srctree)/arch/mips/include/asm/mach-rtl838x/
cflags-$(CONFIG_MACH_REALTEK_RTL) += -I$(srctree)/arch/mips/include/asm/mach-rtl-otto/
load-$(CONFIG_MACH_REALTEK_RTL) += 0xffffffff80100000

View file

@ -15,7 +15,7 @@
#include <asm/smp-ops.h>
#include <linux/smp.h>
#include <mach-rtl83xx.h>
#include <mach-rtl-otto.h>
#define RTL_SOC_BASE ((volatile void *) 0xB8000000)

View file

@ -25,7 +25,7 @@
#include <asm/prom.h>
#include <asm/smp-ops.h>
#include "mach-rtl83xx.h"
#include "mach-rtl-otto.h"
extern struct rtl83xx_soc_info soc_info;

View file

@ -12,7 +12,7 @@
#include <linux/platform_device.h>
#include <linux/rhashtable.h>
#include <linux/of_net.h>
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include "rtl83xx.h"

View file

@ -2,7 +2,7 @@
#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include "rtl83xx.h"

View file

@ -3,7 +3,7 @@
#include <net/dsa.h>
#include <linux/etherdevice.h>
#include <linux/if_bridge.h>
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include "rtl83xx.h"

View file

@ -2,7 +2,7 @@
#include <net/dsa.h>
#include <linux/delay.h>
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include "rtl83xx.h"

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include <linux/etherdevice.h>
#include <linux/iopoll.h>
#include <net/nexthop.h>

View file

@ -3,7 +3,7 @@
#ifndef _RTL838X_H
#define _RTL838X_H
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include <net/dsa.h>
/* Register definition */

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include <linux/etherdevice.h>
#include "rtl83xx.h"

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include <linux/etherdevice.h>
#include <linux/inetdevice.h>

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include <linux/etherdevice.h>
#include "rtl83xx.h"

View file

@ -6,7 +6,7 @@
#include <linux/netdevice.h>
#include <net/flow_offload.h>
#include <linux/rhashtable.h>
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include "rtl83xx.h"
#include "rtl838x.h"

View file

@ -20,7 +20,7 @@
#include <net/dsa.h>
#include <net/switchdev.h>
#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include <asm/mach-rtl-otto/mach-rtl-otto.h>
#include "rtl838x_eth.h"
int rtl83xx_setup_tc(struct net_device *dev, enum tc_setup_type type, void *type_data);

View file

@ -15,7 +15,7 @@ Submitted-by: Birger Koblitz <git@birger-koblitz.de>
platform-$(CONFIG_PIC32MZDA) += pic32/
platform-$(CONFIG_RALINK) += ralink/
platform-$(CONFIG_MIKROTIK_RB532) += rb532/
+platform-$(CONFIG_MACH_REALTEK_RTL) += rtl838x/
+platform-$(CONFIG_MACH_REALTEK_RTL) += rtl-otto/
platform-$(CONFIG_SGI_IP22) += sgi-ip22/
platform-$(CONFIG_SGI_IP27) += sgi-ip27/
platform-$(CONFIG_SGI_IP28) += sgi-ip22/