From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 1 Apr 2019 09:13:30 -0400 Subject: [U-Boot] [PATCH 1/3] rockchip: arm: use 'arch-rockchip' for common header In-Reply-To: <4e0ae811-fbee-4ac0-61e5-f9e55731d9b2@baylibre.com> References: <20190328030124.29826-1-kever.yang@rock-chips.com> <20190328030124.29826-2-kever.yang@rock-chips.com> <4e0ae811-fbee-4ac0-61e5-f9e55731d9b2@baylibre.com> Message-ID: <20190401131330.GH4664@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 01, 2019 at 09:12:07AM +0200, Neil Armstrong wrote: > On 28/03/2019 04:01, Kever Yang wrote: > > rockchip platform header file is in 'arch-rockchip' > > instead of arch-$(SOC) for all SoCs. > > > > Signed-off-by: Kever Yang > > --- > > > > arch/arm/cpu/armv8/start.S | 4 ++++ > > arch/arm/include/asm/gpio.h | 2 +- > > arch/arm/lib/vectors.S | 5 ++++- > > 3 files changed, 9 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S > > index fe52166e28..ecee9e37a5 100644 > > --- a/arch/arm/cpu/armv8/start.S > > +++ b/arch/arm/cpu/armv8/start.S > > @@ -26,7 +26,11 @@ _start: > > * order to boot, allow them to set that in their boot0.h file and then > > * use it here. > > */ > > +#ifdef CONFIG_ARCH_ROCKCHIP > > +#include > > +#else > > #include > > +#endif > > #else > > b reset > > #endif > > diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h > > index 3039e66bf9..b0c8c47c95 100644 > > --- a/arch/arm/include/asm/gpio.h > > +++ b/arch/arm/include/asm/gpio.h > > @@ -1,5 +1,5 @@ > > #if !defined(CONFIG_ARCH_UNIPHIER) && !defined(CONFIG_ARCH_STI) && \ > > - !defined(CONFIG_ARCH_K3) > > + !defined(CONFIG_ARCH_K3) && !defined(CONFIG_ARCH_ROCKCHIP) > > #include > > #endif > > #include > > diff --git a/arch/arm/lib/vectors.S b/arch/arm/lib/vectors.S > > index 2ca6e2494a..20f485142e 100644 > > --- a/arch/arm/lib/vectors.S > > +++ b/arch/arm/lib/vectors.S > > @@ -67,8 +67,11 @@ > > * (1) defines '_start:' as appropriate > > * (2) inserts the vector table using ARM_VECTORS as appropriate > > */ > > +#ifdef CONFIG_ARCH_ROCKCHIP > > +#include > > +#else > > #include > > - > > +#endif > > #else > > > > /* > > > > Hi, > > All vendors has the same issue here, like Amlogic, but we use "meson" as $(SOC), > if every vendor add its own specific include in common headers like this, > this won't scale... > > We should fix all this CONFIG_SOC instead of adding this, by maybe using the SYS_VENDOR > for the arch include dir ? We should either: - Grab the mechanism currently used in the kernel to allow for another high-level symlink to happen and re-org our files like this to allow for that - In these cases, at least for now have grab the appropriate like we do on other files, and do the first option later. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: