From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Date: Mon, 25 Jun 2018 14:33:34 +0200 Subject: [U-Boot] [PATCH 02/13] sunxi: add basical memory map definitions of H6 SoC In-Reply-To: <20180625103723.24760-3-icenowy@aosc.io> References: <20180625103723.24760-1-icenowy@aosc.io> <20180625103723.24760-3-icenowy@aosc.io> Message-ID: <20180625123334.vbr2dk6jpzfj3xha@flea> 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, Jun 25, 2018 at 06:37:12PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC come with a totally new memory map. > > Add basical definition of the new memory map into a header file, and let > the cpu.h header include it in the situation of H6. > > Signed-off-by: Icenowy Zheng > --- > arch/arm/include/asm/arch-sunxi/cpu.h | 2 + > .../include/asm/arch-sunxi/cpu_sun50i_h6.h | 73 +++++++++++++++++++ > 2 files changed, 75 insertions(+) > create mode 100644 arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h > > diff --git a/arch/arm/include/asm/arch-sunxi/cpu.h b/arch/arm/include/asm/arch-sunxi/cpu.h > index caec865264..08be963e8e 100644 > --- a/arch/arm/include/asm/arch-sunxi/cpu.h > +++ b/arch/arm/include/asm/arch-sunxi/cpu.h > @@ -9,6 +9,8 @@ > > #if defined(CONFIG_MACH_SUN9I) > #include > +#elif defined(CONFIG_MACH_SUN50I_H6) > +#include > #else > #include > #endif > diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h b/arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h > new file mode 100644 > index 0000000000..b12f2dd1a2 > --- /dev/null > +++ b/arch/arm/include/asm/arch-sunxi/cpu_sun50i_h6.h > @@ -0,0 +1,73 @@ > +/* > + * (C) Copyright 2017 Icenowy Zheng > + * > + * SPDX-License-Identifier: GPL-2.0+ > + */ > + > +#ifndef _SUNXI_CPU_SUN50I_H6_H > +#define _SUNXI_CPU_SUN50I_H6_H > + > +#define SUNXI_SRAM_A1_BASE 0x00020000 Isn't that the same thing than SUNXI_SRAM_ADDRESS? Having it defined twice and expecting the value to be matching seems a bit weird. Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: