From: Ryder Lee <ryder.lee@mediatek.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 04/19] arm: MediaTek: add basic support for MT7629 boards
Date: Fri, 12 Oct 2018 15:16:21 +0800 [thread overview]
Message-ID: <1539328581.30235.2.camel@mtkswgap22> (raw)
In-Reply-To: <20181011141043.GT5539@bill-the-cat>
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 <ryder.lee@mediatek.com>
> > Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
> [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 <ryder.lee@mediatek.com>
> > + */
> > +
> > +#ifndef __MT7629_H
> > +#define __MT7629_H
> > +
> > +#include <linux/sizes.h>
> > +
> > +#include <dt-bindings/clock/mt7629-clk.h>
> > +#include <dt-bindings/power/mt7629-power.h>
>
> 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.
next prev parent reply other threads:[~2018-10-12 7:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-09 3:54 [U-Boot] [PATCH v1 00/19] AddU-Boot support for MediaTek SoCs - MT7623n & MT7629 Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 01/19] tools: MediaTek: add MTK boot header generation to mkimage Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 02/19] arm: dts: MediaTek: add device tree for MT7629 Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 03/19] arm: dts: MediaTek: add device tree for MT7623 Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 04/19] arm: MediaTek: add basic support for MT7629 boards Ryder Lee
2018-10-11 14:10 ` Tom Rini
2018-10-12 7:16 ` Ryder Lee [this message]
2018-10-09 3:54 ` [U-Boot] [PATCH v1 05/19] arm: MediaTek: add basic support for MT7623 boards Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 06/19] configs: MediaTek: add MT7629 reference board support Ryder Lee
2018-10-11 14:10 ` Tom Rini
2018-10-12 7:22 ` Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 07/19] configs: MediaTek: add MT7623 Bananapi R2 " Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 08/19] clk: MediaTek: add clock driver for MT7629 SoC Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 09/19] clk: MediaTek: add clock driver for MT7623 SoC Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 10/19] timer: MediaTek: add timer driver for MediaTek SoCs Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 11/19] watchdog: MediaTek: add watchdog " Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 12/19] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 13/19] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 14/19] power domain: MediaTek: add power domain driver for MT7629 SoC Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 15/19] power domain: MediaTek: add power domain driver for MT7623 SoC Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 16/19] serial: 16550: allow the driver to support MediaTek serial Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 17/19] ram: MediaTek: add DDR3 driver for MT7629 SoC Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 18/19] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC Ryder Lee
2018-10-09 3:54 ` [U-Boot] [PATCH v1 19/19] MAINTAINERS: add an entry for MediaTek Ryder Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1539328581.30235.2.camel@mtkswgap22 \
--to=ryder.lee@mediatek.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.