From: Ilya Yanok <yanok@emcraft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale
Date: Thu, 24 Jun 2010 01:30:00 +0400 [thread overview]
Message-ID: <4C227CD8.2080002@emcraft.com> (raw)
In-Reply-To: <20100622191705.c9fcf0fb.kim.phillips@freescale.com>
Hi Kim,
Thanks for your review.
On 23.06.2010 04:17, Kim Phillips wrote:
>> MAKEALL | 1 +
>> Makefile | 3 +
>> board/freescale/mpc8308erdb/Makefile | 52 +++
>> board/freescale/mpc8308erdb/config.mk | 1 +
>> board/freescale/mpc8308erdb/mpc8308erdb.c | 154 ++++++++
>> board/freescale/mpc8308erdb/sdram.c | 126 +++++++
>> include/configs/MPC8308ERDB.h | 572 +++++++++++++++++++++++++++++
>> 7 files changed, 909 insertions(+), 0 deletions(-)
>> create mode 100644 board/freescale/mpc8308erdb/Makefile
>> create mode 100644 board/freescale/mpc8308erdb/config.mk
>> create mode 100644 board/freescale/mpc8308erdb/mpc8308erdb.c
>> create mode 100644 board/freescale/mpc8308erdb/sdram.c
>> create mode 100644 include/configs/MPC8308ERDB.h
>>
> missing a doc/README.mpc8308erdb file.
>
Hm.. Wolfgang, do we really need this?
Well, I hope I'd be able to reuse most of doc/README.mpc8315erdb...
>>
>> +MPC8308ERDB_config: unconfig
>> + @$(MKCONFIG) -a MPC8308ERDB powerpc mpc83xx mpc8308erdb freescale
>> +
>>
> patch doesn't apply to WD's next branch:
>
> ---
> Applying: MPC8308ERDB: minimal support for devboard from Freescale
> error: patch failed: Makefile:2233
> error: Makefile: patch does not apply
> /home/r1aaha/git/u-boot/.git/rebase-apply/patch:112: new blank line at EOF.
> +
> Patch failed at 0002 MPC8308ERDB: minimal support for devboard from Freescale
> When you have resolved this problem run "git am --resolved".
> If you would prefer to skip this patch, instead run "git am --skip".
> To restore the original branch and stop patching run "git am --abort".
> ---
>
> please rebase on top of Wolfgang's next branch, and also fix the new
> blank line at EOF.
>
Yes, I've already done this.
>> +#define CONFIG_MPC831x 1 /* MPC831x CPU family */
>>
> I don't see the 8308 being a member of the 831x family; e.g., upper
> spridr bits are 0x810, which don't match those of 831x: 0x80B.
> Please introduce a new CONFIG_MPC830x.
>
Actually I've noticed this myself... But 8308 has many things common
with 831x and I'm not sure if there is a family of 830x (I can see only
8308 on Freescale website).
Well, I'll do as you propose.
>> +/*
>> + * There are neither HRCWH_PCI_HOST nor HRCWH_PCI1_ARBITER_ENABLE bits
>> + * in 8308's HRCWH according to the manual, but original Freescale's
>> + * code has them and I've expirienced some problems using the board
>> + * with BDI3000 attached when I've tried to set these bits to zero
>> + * (UART doesn't work after the 'reset run' command).
>>
> is the BDI overriding the RCW in this case? it's not clear..
>
Yes, my default BDI configuration overrides RCW with 0xa0606c00
0x44060000 (with HRCWH_PCI_HOST and HRCWH_PCI1_ARBITER_ENABLE bits set)
to be able to program empty flash.
My test sequence is as follows:
0. I had BDI overriding RCW and programmed U-Boot with the same RCW values.
1. I compiled new U-Boot image without HRCWH_PCI* bits and reflashed it
from U-Boot itself.
2. Then I rebooted the board with the U-Boot 'reset' command. Everything
works fine.
3. Reseted the board with 'reset run' command from the BDI. Everything
works well too (recall that BDI is configured to override RCW with old
value).
4. Then I've changed BDI configuration disabling the RCW override.
Everything works.
5. But if I configure BDI to override RCW with new value (without
HRCWH_PCI* bits) I can't see anything on serial console after reset (but
it looks like U-Boot is started correctly, at least execution address
looks correct).
>> +#define CFG_SICRH 0x01001003
>> +#define CFG_SICRL 0x00000040 /* 3.3V, no delay */
>>
> the CFG_ prefix is no longer - are these even being used anywhere?
>
Ouch... That's my bug. I'll fix it.
>> +#define CONFIG_SYS_HID0_FINAL (HID0_ENABLE_MACHINE_CHECK | \
>> + HID0_ENABLE_DYNAMIC_POWER_MANAGMENT)
>>
> | HID0_ENABLE_INSTRUCTION_CACHE?
>
Yes, you are right. I'll add it.
Regards, Ilya.
next prev parent reply other threads:[~2010-06-23 21:30 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-20 17:32 [U-Boot] [PATCH 0/2] Support for MPC8308ERDB board Ilya Yanok
2010-06-20 17:32 ` [U-Boot] [PATCH 1/2] mpc8308: support for Freescale MPC8308 cpu Ilya Yanok
2010-06-21 7:44 ` Wolfgang Denk
2010-06-21 11:41 ` Ilya Yanok
2010-06-22 16:11 ` Wolfgang Denk
2010-06-28 12:44 ` Ilya Yanok
2010-07-09 21:13 ` Kim Phillips
2010-06-20 17:32 ` [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale Ilya Yanok
2010-06-21 7:44 ` Wolfgang Denk
2010-06-21 12:25 ` Ilya Yanok
2010-06-22 18:14 ` Wolfgang Denk
2010-06-22 19:10 ` Ben Warren
2010-06-23 12:01 ` Ilya Yanok
2010-06-23 11:57 ` Ilya Yanok
2010-06-23 0:17 ` Kim Phillips
2010-06-23 21:30 ` Ilya Yanok [this message]
2010-06-23 22:08 ` Wolfgang Denk
2010-06-24 15:59 ` Ilya Yanok
2010-06-24 18:00 ` Kim Phillips
2010-06-24 19:36 ` Ilya Yanok
2010-06-25 1:25 ` Aggrwal Poonam-B10812
[not found] ` <20100624190054.847e4452.kim.phillips@freescale.com>
2010-07-20 0:33 ` Kim Phillips
2010-07-20 5:46 ` Wolfgang Denk
2010-07-20 15:08 ` Ilya Yanok
2010-08-10 16:32 ` [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale (ICache issue) Ilya Yanok
2010-06-28 12:45 ` [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale Ilya Yanok
2010-07-01 0:30 ` Kim Phillips
2010-07-01 9:13 ` Ilya Yanok
2010-07-07 16:16 ` [U-Boot] [PATCH 2/2] MPC8308RDB: " Ilya Yanok
2010-07-09 21:14 ` Kim Phillips
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=4C227CD8.2080002@emcraft.com \
--to=yanok@emcraft.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