From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 09/12] OMAP3: Add SPL support to Beagleboard
Date: Thu, 10 Nov 2011 07:34:38 -0700 [thread overview]
Message-ID: <4EBBE0FE.1090704@ti.com> (raw)
In-Reply-To: <4EBB6F14.1050502@denx.de>
On 11/09/2011 11:28 PM, Heiko Schocher wrote:
> Hello Tom,
>
> Tom Rini wrote:
>> This introduces 200MHz Micron parts timing information based on x-loader
>> to <asm/arch-omap3/mem.h>. The memory init logic is also based on what
>> x-loader does in these cases. Note that while previously u-boot would
>> be flashed in with SW ECC in this case it now must be flashed with HW
>> ECC. We also change CONFIG_SYS_TEXT_BASE to 0x80100000.
>>
>> Cc: Dirk Behme <dirk.behme@gmail.com>
>> Beagleboard rev C5, xM rev A:
>> Tested-by: Tom Rini <trini@ti.com>
>> Beagleboard xM rev C:
>> Tested-by: Matt Ranostay <mranostay@gmail.com>
>> Beagleboard rev B7, C2, xM rev B:
>> Tested-by: Matt Porter <mporter@ti.com>
>> Signed-off-by: Tom Rini <trini@ti.com>
>> ---
>> arch/arm/include/asm/arch-omap3/mem.h | 23 ++++++++++
>> board/ti/beagle/beagle.c | 72 ++++++++++++++++++++++++++++++++-
>> board/ti/beagle/config.mk | 33 ---------------
>> include/configs/omap3_beagle.h | 58 +++++++++++++++++++++++++-
>> 4 files changed, 148 insertions(+), 38 deletions(-)
>> delete mode 100644 board/ti/beagle/config.mk
> [...]
>
>> diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
>> index 9482c5e..1c8f995 100644
>> --- a/board/ti/beagle/beagle.c
>> +++ b/board/ti/beagle/beagle.c
> [...]
>> +void get_board_mem_timings(u32 *mcfg, u32 *ctrla, u32 *ctrlb, u32 *rfr_ctrl,
>> + u32 *mr)
>> +{
>> + int pop_mfr, pop_id;
>> +
>> + /*
>> + * We need to identify what PoP memory is on the board so that
>> + * we know what timings to use. If we can't identify it then
>> + * we know it's an xM.
>> + */
>> + identify_nand_chip(&pop_mfr, &pop_id);
>> +
>> + /*
>> + * We cannot use the MICRON_MCFG_165 as it relies on
>> + * PHYS_SDRAM_1_SIZE being defined to the correct value, and we
>> + * don't know that value until runtime.
>> + */
>> + *mr = MICRON_V_MR_165;
>> + switch (get_board_revision()) {
>> + case REVISION_C4:
>> + if (pop_mfr == NAND_MFR_STMICRO && pop_id == 0xba) {
> ^
> Please use a define for this here, thanks!
I'm not sure that buys us anything, honestly. Perhaps just a comment to
look it up in drivers/mtd/nand/nand_ids.c ?
>> + *mcfg = 0x04590099;
> ^
> here too.
Well, as I say in the comment, we can't, at least without a big rewrite
of <asm/arch-omap3/mem.h>. But, I'll see how bad it gets to do that I
suppose. Thanks.
--
Tom
next prev parent reply other threads:[~2011-11-10 14:34 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 17:10 [U-Boot] [PATCH v3 0/12] Add more framework to OMAP3 SPL, port more boards Tom Rini
2011-11-09 17:10 ` [U-Boot] [PATCH v3 01/12] OMAP3: Update SDRC dram_init to always call make_cs1_contiguous() Tom Rini
2011-11-09 17:10 ` [U-Boot] [PATCH v3 02/12] OMAP3: Add a helper function to set timings in SDRC Tom Rini
2011-11-09 17:10 ` [U-Boot] [PATCH v3 03/12] OMAP3: Change mem_ok to clear again after reading back Tom Rini
2011-11-09 17:10 ` [U-Boot] [PATCH v3 04/12] OMAP3: Remove get_mem_type prototype Tom Rini
2011-11-09 17:10 ` [U-Boot] [PATCH v3 05/12] OMAP3: Add optimal SDRC autorefresh control values Tom Rini
2011-11-10 6:20 ` Heiko Schocher
2011-11-10 21:32 ` Robert Hurdle
2011-11-17 21:44 ` Tom Rini
2011-11-09 17:11 ` [U-Boot] [PATCH v3 06/12] OMAP3: Suffix all Micron memory timing parts with their speed Tom Rini
2011-11-10 6:23 ` Heiko Schocher
2011-11-17 21:50 ` Tom Rini
2011-11-09 17:11 ` [U-Boot] [PATCH v3 07/12] OMAP3 SPL: Rework memory initalization and devkit8000 support Tom Rini
2011-11-09 17:11 ` [U-Boot] [PATCH v3 08/12] OMAP3 SPL: Add identify_nand_chip function Tom Rini
2011-11-10 6:25 ` Heiko Schocher
2011-11-17 22:36 ` Tom Rini
2011-11-09 17:11 ` [U-Boot] [PATCH v3 09/12] OMAP3: Add SPL support to Beagleboard Tom Rini
2011-11-10 6:28 ` Heiko Schocher
2011-11-10 14:34 ` Tom Rini [this message]
2011-11-10 14:46 ` Heiko Schocher
2011-11-09 17:11 ` [U-Boot] [PATCH v3 10/12] OMAP3: Add SPL support to omap3_evm Tom Rini
2011-11-09 17:11 ` [U-Boot] [PATCH v3 11/12] AM3517: Add SPL support Tom Rini
2011-11-09 17:11 ` [U-Boot] [PATCH v3 12/12] AM3517 CraneBoard: " Tom Rini
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=4EBBE0FE.1090704@ti.com \
--to=trini@ti.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