public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ian Campbell <ijc@hellion.org.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/9] sunxi: Stop differentiating between 512M and 1G variants of the same board
Date: Tue, 20 Jan 2015 08:51:06 +0000	[thread overview]
Message-ID: <1421743866.13341.86.camel@hellion.org.uk> (raw)
In-Reply-To: <54BD162F.9020603@redhat.com>

On Mon, 2015-01-19 at 15:35 +0100, Hans de Goede wrote:
> Siarhei, thanks for bringing this topic up once again, I agree that this
> is ideally something which we should fix. The problem is that the only
> way to know that any new settings which we do are actually good, is to
> test them on lots of boards, and I do not mean one of each board, but
> at least 10 of each board or some such.

I agree. Having settings which are optimal for Hans' board but untested
elsewhere would not be a good idea IMHO.

> Still I would like to get this sorted, so I would like to move to the
> recommended timings for the generic JEDEC speed bins, you rightfully
> point out that those may not be 100% optimal, but given that we're
> dealing with a lot of cheap boards, I think that those are our best bet.

Agreed. In the absence of an ability to test lots of boards this is
probably the best we can do.

An alternative would be to use the settings from the factory firmware,
but I don't think we have any real reason to think these will be any
better in general than the JEDEC timings, at least not without lots of
testing (see previous paragraph).

> The plan would be for you to submit a patch for that, and then I'll add
> that to my sunxi-wip branch right away, this way all the testing I do,
> as well as all the testing people using my sunxi-wip branch do will use
> the new timings, and then once v2015.04 stabilizes a bit we can add
> that patch to u-boot-sunxi/next, getting it ready for v2015.07 .
> 
> Does that sound like a plan ?
> 
> Ian, what do you think about this ?

Go for it.

> This way we will not grow the spl, and keep an easy editable set of
> dram_para in the spl for people who like to hexedit the spl ...

At the start of the #ifdef chain you could add

#ifdef CONFIG...CUSTOM_DRAM_SETTINGS
static struct dram_para dram_para = {
    CONFIG_...CUSTOM_DRAM_SETTINGS
};
#elif ...

along with a corresponding Kconfig entry (perhaps depends on EXPERT?).

Then people who really want to tweak things could enter
"CONFIG....=.clock=XXX,.type=YYY,.." in their .config (menuconfig etc)
or defconfig to their heart's content. (only question is what the
character limit on a config option is...)

Ian.

  reply	other threads:[~2015-01-20  8:51 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-18 12:23 [U-Boot] [PATCH 1/9] sunxi: axp209: Disable interrupts when intializing the axp209 Hans de Goede
2015-01-18 12:23 ` [U-Boot] [PATCH 2/9] sunxi: ba10_tv_box_defconfig: Fix USB not working Hans de Goede
2015-01-18 16:15   ` Ian Campbell
2015-01-18 12:23 ` [U-Boot] [PATCH 3/9] sunxi: Stop differentiating between 512M and 1G variants of the same board Hans de Goede
2015-01-18 16:22   ` Ian Campbell
2015-01-18 16:45     ` Hans de Goede
2015-01-18 21:46   ` Siarhei Siamashka
2015-01-19 14:35     ` Hans de Goede
2015-01-20  8:51       ` Ian Campbell [this message]
2015-01-18 12:23 ` [U-Boot] [PATCH 4/9] sunxi: Convert Linksprite_pcDuino_defconfig to use auto dram configuration Hans de Goede
2015-01-18 16:24   ` Ian Campbell
2015-01-18 16:26     ` Ian Campbell
2015-01-18 16:48       ` Hans de Goede
2015-01-18 16:47     ` Hans de Goede
2015-01-18 12:23 ` [U-Boot] [PATCH 5/9] sunxi: Convert sun4i boards " Hans de Goede
2015-01-18 16:28   ` Ian Campbell
2015-01-18 12:23 ` [U-Boot] [PATCH 6/9] sunxi: Remove CONFIG_TARGET_FOO for sun4i, sun6i and sun8i boards Hans de Goede
2015-01-18 16:31   ` Ian Campbell
2015-01-18 16:33     ` Ian Campbell
2015-01-18 16:58     ` Hans de Goede
2015-01-18 12:23 ` [U-Boot] [PATCH 7/9] sunxi: Add mk802 board / defconfig Hans de Goede
2015-01-18 16:34   ` Ian Campbell
2015-01-19 19:57     ` Hans de Goede
2015-01-18 12:23 ` [U-Boot] [PATCH 8/9] sunxi: Add mk802ii " Hans de Goede
2015-01-18 12:23 ` [U-Boot] [PATCH 9/9] sunxi: Add mk802_a10s " Hans de Goede
2015-01-18 16:15 ` [U-Boot] [PATCH 1/9] sunxi: axp209: Disable interrupts when intializing the axp209 Ian Campbell

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=1421743866.13341.86.camel@hellion.org.uk \
    --to=ijc@hellion.org.uk \
    --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