From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] serial: 16550: Add JZ47xx support
Date: Thu, 26 May 2016 14:05:07 +0200 [thread overview]
Message-ID: <5746E673.7080108@denx.de> (raw)
In-Reply-To: <20160526114617.GA26283@NP-P-BURTON>
On 05/26/2016 01:46 PM, Paul Burton wrote:
> On Thu, May 26, 2016 at 12:21:23AM +0200, Marek Vasut wrote:
>> Not for SPL, which has 14 kiB size limit and it is itching to overflow.
>> I am literally counting bytes in the SPL and removing slop from
>> structures to make it fit, just barely. With the USB loader, I can
>> brutalize the SPL into having extremely rudimentary UART support now
>> (like printch() being the most advanced output mechanism, but you can
>> only use it three times, otherwise the code won't fit and the board is
>> eaten by demons) and this is where this patch comes into play.
>>
>> So yes, for full u-boot, this _should_ be part of DT. For SPL, please apply.
>
> Hi Marek,
Hi!
> Interesting :) May I ask which platform/SoC you're working with? Have
> you seen the (unfortunately currently out of tree) port we did for the
> JZ4780-based Ci20? I recall the pain of squeezing SPL down to a small
> enough size well...
I bought the CI20, yeah. I started with that tree and am now getting it
into mainline shape. I actually managed to optimize the SPL, so it does
not overflow. One of the things which helped a lot was removing slop[1]
from the structures and using appropriate data types in them (like don't
use u32 to store an 8bit number). I also tinified the MMC stack, so that
it won't pull in too much useless code.
At this point, I have a u-boot running from SD card and the SD driver in
full U-Boot is already probing from DT and using DM. I sent Daniel the
updated patches, but they are still work in progress. Nonetheless, if
you want me forward that to you as well, let me know.
I plan to get this CI20 submitted at some point this or next week, so it
can land in 2016.07 (I hope!) and then debian and fedora-mips (and other
distros) can pick it up and package proper. That's how I see it.
btw. what is the linux support status of the ci20 ? Is anyone working
on that? I saw the DTS in Linux, but it's pretty bare-bones.
btw2. can I get the ci40 anywhere or is that just unobtainium board ?
> https://github.com/MIPS/CI20_u-boot
>
> Thanks,
> Paul
>
[1] http://www.catb.org/esr/structure-packing/
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-05-26 12:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-25 0:19 [U-Boot] [PATCH] serial: 16550: Add JZ47xx support Marek Vasut
2016-05-25 22:17 ` Daniel Schwierzeck
2016-05-25 22:21 ` Marek Vasut
2016-05-25 22:31 ` Daniel Schwierzeck
2016-05-25 22:35 ` Marek Vasut
2016-05-26 13:29 ` Simon Glass
2016-05-26 16:34 ` Marek Vasut
2016-05-26 16:44 ` Simon Glass
2016-05-26 16:47 ` Marek Vasut
2016-05-26 16:48 ` Simon Glass
2016-05-26 16:53 ` Marek Vasut
2016-05-26 17:07 ` Simon Glass
2016-05-26 17:35 ` Marek Vasut
2016-05-26 17:47 ` Simon Glass
2016-05-26 17:01 ` Marek Vasut
2016-05-26 11:46 ` Paul Burton
2016-05-26 12:05 ` Marek Vasut [this message]
2016-05-26 13:55 ` Paul Burton
2016-05-26 18:22 ` Marek Vasut
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=5746E673.7080108@denx.de \
--to=marex@denx.de \
--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