From: Ryder Lee Date: Fri, 12 Oct 2018 15:16:21 +0800 Subject: [U-Boot] [PATCH v1 04/19] arm: MediaTek: add basic support for MT7629 boards In-Reply-To: <20181011141043.GT5539@bill-the-cat> References: <79b7a1a78b0cb114f1b99b7178464eb7495e6967.1539056864.git.ryder.lee@mediatek.com> <20181011141043.GT5539@bill-the-cat> Message-ID: <1539328581.30235.2.camel@mtkswgap22> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2018-10-11 at 10:10 -0400, Tom Rini wrote: > On Tue, Oct 09, 2018 at 11:54:04AM +0800, Ryder Lee wrote: > > > This adds a general board file based on MT7629 SoCs from MediaTek. > > > > Apart from the generic parts (cpu) we add some low level init codes > > and initialize the early clocks. > > > > Signed-off-by: Ryder Lee > > Signed-off-by: Weijie Gao > [snip] > > diff --git a/include/configs/mt7629.h b/include/configs/mt7629.h > > new file mode 100644 > > index 0000000..e640108 > > --- /dev/null > > +++ b/include/configs/mt7629.h > > @@ -0,0 +1,71 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +/* > > + * Configuration for MediaTek MT7629 SoC > > + * > > + * Copyright (C) 2018 MediaTek Inc. > > + * Author: Ryder Lee > > + */ > > + > > +#ifndef __MT7629_H > > +#define __MT7629_H > > + > > +#include > > + > > +#include > > +#include > > We don't want these two includes here. > > > +#ifndef __ASSEMBLY__ > > +extern unsigned long get_spl_size(void); > > +#endif > > Nor should we have this here. > > > +/* Machine ID */ > > +#define CONFIG_MACH_TYPE 7629 > > Since this is for pre-DT kernels, lets drop this. > > > +#define NOR_MMAP_ADDR 0x30000000 > > +#define CONFIG_SYS_SPI_U_BOOT_OFFS get_spl_size() > > +#define CONFIG_SYS_UBOOT_BASE (NOR_MMAP_ADDR + get_spl_size()) > > Use the value of NOR_MMAP_ADDR directly, and we use some constant > (rounded up as needed) for SYS_SPI_U_BOOT_OFFS not a function. > > And all of these comments apply to the other include/configs/ files in > the rest of the series too, thanks! > Okay. I've sent a new series to fix these.