u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: 刘孔阳 <seashell11234455@gmail.com>
To: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de, Bin Meng <bmeng@tinylab.org>,
	 Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Leo <ycliang@andestech.com>,  Michal Simek <michal.simek@amd.com>,
	Randolph <randolph@andestech.com>,
	 Rick Chen <rick@andestech.com>,
	Samuel Holland <samuel@sholland.org>,
	 Shengyu Qu <wiagn233@outlook.com>,
	Yu Chien Peter Lin <peterlin@andestech.com>
Subject: Re: [PATCH 1/4] riscv: sophgo: milkv_duo: initial support added
Date: Fri, 12 Jan 2024 01:32:19 +0800	[thread overview]
Message-ID: <CAOKwTdpoGCEpAAwvTntg3HNj2zPr05gZ2cvUNisereqRVa4mJA@mail.gmail.com> (raw)
In-Reply-To: <20240108204251.GP1610741@bill-the-cat>

Tom Rini <trini@konsulko.com> 于2024年1月9日周二 04:42写道:
>
> On Sun, Jan 07, 2024 at 07:27:07PM +0800, Kongyang Liu wrote:
>
> > Add support for Sophgo's Milk-V Duo board, only minimal device tree and
> > serial console are enabled, and it can boot via vendor first stage
> > bootloader.
> >
> > Signed-off-by: Kongyang Liu <seashell11234455@gmail.com>
> >
> > ---
> >
> >  arch/riscv/Kconfig                 |  4 ++++
> >  board/sophgo/milkv_duo/Kconfig     | 28 ++++++++++++++++++++++++++++
> >  board/sophgo/milkv_duo/MAINTAINERS |  6 ++++++
> >  board/sophgo/milkv_duo/Makefile    |  5 +++++
> >  board/sophgo/milkv_duo/board.c     |  9 +++++++++
> >  include/configs/milkv_duo.h        | 16 ++++++++++++++++
>
> The defconfig patch should be folded in to this one.
>
I will fold it in next version.

> [snip]
> > diff --git a/board/sophgo/milkv_duo/board.c b/board/sophgo/milkv_duo/board.c
> > new file mode 100644
> > index 0000000000..eaa47be173
> > --- /dev/null
> > +++ b/board/sophgo/milkv_duo/board.c
> > @@ -0,0 +1,9 @@
> > +// SPDX-License-Identifier: GPL-2.0+
> > +/*
> > + * Copyright (c) 2024, Kongyang Liu <seashell11234455@gmail.com>
> > + */
> > +
> > +int board_init(void)
> > +{
> > +     return 0;
> > +}
>
> Shouldn't you enable caches here?
>
Enable caches will cause other problems, and I will implement it
in subsequent patches.

> > diff --git a/include/configs/milkv_duo.h b/include/configs/milkv_duo.h
> > new file mode 100644
> > index 0000000000..dd1d146c50
> > --- /dev/null
> > +++ b/include/configs/milkv_duo.h
> > @@ -0,0 +1,16 @@
> > +/* SPDX-License-Identifier: GPL-2.0+ */
> > +/*
> > + * Copyright (c) 2024, Kongyang Liu <seashell11234455@gmail.com>
> > + *
> > + */
> > +
> > +#ifndef __CONFIG_H
> > +#define __CONFIG_H
> > +
> > +#define CFG_SYS_SDRAM_BASE         0x80000000
> > +
> > +#define CFG_EXTRA_ENV_SETTINGS                 \
> > +     "consoledev=ttyS0"                         \
> > +     "baudrate=115200\0"                        \
>
> We shouldn't need to set baudrate, it will be handled for us. Is
> consoledev something that must be set? Can it all be done in a plain
> text environment anyhow? Thanks.
>
I will check and detele it if it is unnecessary.

Best regards
Kongyang Liu
> --
> Tom

  reply	other threads:[~2024-01-11 17:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-07 11:27 [PATCH 0/4] riscv: sophgo: milkv_duo: add support for Milk-V Duo board Kongyang Liu
2024-01-07 11:27 ` [PATCH 1/4] riscv: sophgo: milkv_duo: initial support added Kongyang Liu
2024-01-08 20:42   ` Tom Rini
2024-01-11 17:32     ` 刘孔阳 [this message]
2024-01-07 11:27 ` [PATCH 2/4] riscv: dts: sophgo: Add basic device tree for Milk-V Duo board Kongyang Liu
2024-01-07 11:27 ` [PATCH 3/4] configs: milkv_duo_defconfig: Add initial config Kongyang Liu
2024-01-07 11:27 ` [PATCH 4/4] doc: sophgo: milkv_duo: document Milk-V Duo board Kongyang Liu

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=CAOKwTdpoGCEpAAwvTntg3HNj2zPr05gZ2cvUNisereqRVa4mJA@mail.gmail.com \
    --to=seashell11234455@gmail.com \
    --cc=bmeng@tinylab.org \
    --cc=michal.simek@amd.com \
    --cc=peterlin@andestech.com \
    --cc=randolph@andestech.com \
    --cc=rick@andestech.com \
    --cc=samuel@sholland.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=wiagn233@outlook.com \
    --cc=xypron.glpk@gmx.de \
    --cc=ycliang@andestech.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).