X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Ftsec.h;h=b17fa957df5b4bc3e2f8bbfddf83bcd98501538d;hb=915f15ac5746739da0aa2ee2840c2d00dc65aaaa;hp=e99a7fa8782f9db5826f44d5d884167fcd1e0f0b;hpb=4f66e09bb9fbc47b73f67c3cc08ee2663e8fcdb1;p=oweals%2Fu-boot.git diff --git a/include/tsec.h b/include/tsec.h index e99a7fa878..b17fa957df 100644 --- a/include/tsec.h +++ b/include/tsec.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * tsec.h * @@ -7,8 +8,6 @@ * (C) Copyright 2003, Motorola, Inc. * maintained by Xianghua Xiao (x.xiao@motorola.com) * author Andy Fleming - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __TSEC_H @@ -18,6 +17,8 @@ #include #include +#define TSEC_MDIO_REGS_OFFSET 0x520 + #ifndef CONFIG_DM_ETH #ifdef CONFIG_ARCH_LS1021A @@ -28,7 +29,7 @@ #define TSEC_MDIO_OFFSET 0x01000 #endif -#define CONFIG_SYS_MDIO_BASE_ADDR (MDIO_BASE_ADDR + 0x520) +#define CONFIG_SYS_MDIO_BASE_ADDR (MDIO_BASE_ADDR + TSEC_MDIO_REGS_OFFSET) #define TSEC_GET_REGS(num, offset) \ (struct tsec __iomem *)\