public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/6] Add support for MIPS Creator CI20
Date: Wed, 12 Dec 2018 15:13:17 -0500	[thread overview]
Message-ID: <20181212201317.GE8702@bill-the-cat> (raw)
In-Reply-To: <f0950e48e9e777687ecc4382a2f85d922d9b72dc.camel@collabora.com>

On Wed, Dec 12, 2018 at 03:03:40PM -0300, Ezequiel Garcia wrote:
> Hi Daniel,
> 
> On Wed, 2018-12-12 at 18:27 +0100, Daniel Schwierzeck wrote:
> > Hi Ezequiel,
> > 
> > Am 12.12.18 um 14:58 schrieb Ezequiel Garcia:
> > > A new round.
> > > 
> > > For this new round:
> > > 
> > >  * Replaced infinite while loop with wait_for_bit.
> > >  * Added a MAINTAINERS file. If anyone wants to co-maintain this,
> > >    please let me know.
> > > 
> > > This is based on top of yesterday's master (ee168783ae8) and has
> > > been tested by SD-card booting both U-Boot and Linux. Booting
> > > Linux via TFTP was also tested.
> > > 
> > > Toolchain used to test:
> > > 
> > > $ mips-linux-gcc -v
> > > Using built-in specs.
> > > COLLECT_GCC=mips-linux-gcc
> > > COLLECT_LTO_WRAPPER=/home/zeta/.buildman-toolchains/gcc-7.3.0-nolibc/mips-linux/bin/../libexec/gcc/mips-linux/7.3.0/lto-wrapper
> > > Target: mips-linux
> > > Configured with: /home/arnd/git/gcc/configure --target=mips-linux --enable-targets=all --prefix=/opt/crosstool/gcc-7.3.0-nolibc/mips-linux --
> > > enable-languages=c --without-headers --disable-bootstrap --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --
> > > disable-libgomp --disable-decimal-float --disable-libquadmath --disable-libatomic --disable-libcc1 --disable-libmpx --enable-checking=release
> > > Thread model: single
> > > gcc version 7.3.0 (GCC) 
> > > 
> > > SPL size:
> > > 
> > > $ size spl/u-boot-spl
> > >    text	   data	    bss	    dec	    hex	filename
> > >    9252	    752	    736	  10740	   29f4	spl/u-boot-spl
> > > 
> > > I've pushed a branch to https://github.com/ezequielgarcia/u-boot/tree/ci20-v2
> > > and made sure travis passed.
> > > 
> > 
> > Thanks for working on this but the problem with the original patch
> > series was that it was not fully driver model compatible and that stuff
> > like watchdog, reset and pin-muxing was open-coded instead of using the
> > proper frameworks. As the ship is sailing towards having only driver
> > model and device tree in U-Boot proper, it doesn't make sense to accept
> > new SoC/boards with legacy code especially if there is no active
> > maintainer who would do the conversion work. And with the upcoming dead
> > lines for DM conversions, boards with legacy code will be removed when
> > not converted. This is also one of the reasons why the Ingenic SoC
> > support we already had in mainline was removed. And readding parts of
> > the removed code doesn't make sense either because the patch series is
> > based on that old Ingenic SoC code.
> > 
> 
> I have to say I disagree with all of this.
> 
> The open coded drivers are used in SPL, which most likely can't affort
> any DM. Or **if** it can't afford it, it's a separate question that
> needs research.

And this is a topic that keeps coming up, so I need to chime in again.
For SPL, we _have_to_ keep in mind the various boot ROM hard space
limits.  This means that we end up needing to allow for some level of
open-coded drivers used in limited cases like SPL and then a full / real
driver in full U-Boot.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181212/90494112/attachment.sig>

  reply	other threads:[~2018-12-12 20:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-12 13:58 [U-Boot] [PATCH v2 0/6] Add support for MIPS Creator CI20 Ezequiel Garcia
2018-12-12 13:58 ` [U-Boot] [PATCH v2 1/6] misc: Add JZ47xx efuse driver Ezequiel Garcia
2018-12-12 13:58 ` [U-Boot] [PATCH v2 2/6] gpio: Add JZ47xx GPIO driver Ezequiel Garcia
2018-12-12 13:58 ` [U-Boot] [PATCH v2 3/6] mmc: Add JZ47xx SD/MMC controller driver Ezequiel Garcia
2018-12-12 13:58 ` [U-Boot] [PATCH v2 4/6] mips: Add SPL header Ezequiel Garcia
2018-12-12 13:58 ` [U-Boot] [PATCH v2 5/6] mips: jz47xx: Add JZ4780 SoC support Ezequiel Garcia
2018-12-12 13:58 ` [U-Boot] [PATCH v2 6/6] mips: jz47xx: Add Creator CI20 platform Ezequiel Garcia
2018-12-12 17:27 ` [U-Boot] [PATCH v2 0/6] Add support for MIPS Creator CI20 Daniel Schwierzeck
2018-12-12 18:03   ` Ezequiel Garcia
2018-12-12 20:13     ` Tom Rini [this message]
2018-12-12 20:43     ` Daniel Schwierzeck

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=20181212201317.GE8702@bill-the-cat \
    --to=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox