public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] 8xx: add support for new keymile kmsupx4 board.
Date: Wed, 11 Mar 2009 13:37:18 +0100	[thread overview]
Message-ID: <49B7B07E.1080606@denx.de> (raw)
In-Reply-To: <20090311114029.08FCA832E8B8@gemini.denx.de>

Hello Wolfgang,

Wolfgang Denk wrote:
> In message <49B770A2.9020302@denx.de> you wrote:
>> This patch adds support for the kmsupx4 board from Keymile,
>> based on a Freescale MPC852T CPU
> ...
>> --- a/cpu/mpc8xx/start.S
>> +++ b/cpu/mpc8xx/start.S
>> @@ -142,7 +142,8 @@ boot_warm:
>>  	lis	r3, IDC_DISABLE at h	/* Disable data cache */
>>  	mtspr	DC_CST, r3
>>
>> -#if !(defined(CONFIG_IP860) || defined(CONFIG_PCU_E) || defined (CONFIG_FLAGADM))
>> +#if !(defined(CONFIG_IP860) || defined(CONFIG_PCU_E) || \
>> +	defined (CONFIG_FLAGADM) || defined(CONFIG_KMSUPX4))
>>  					/* On IP860 and PCU E,
>>  					 * we cannot enable IC yet
>>  					 */
> 
> Why exactly is this necessary?
> 
> I would like to avoid new #ifdef's in common  code  in  general,  but
> here  this  should  most likely be not needed either (IP860 and PCU E
> had very special hardware issues; I don't know about FLAGADM)  -  are
> you absolutely sure you need that?

Hmm.. when I enable the IC here the CPU is dead ... but you are right,
there should be no such special thing for this port ... I try to find
out more.

>> diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c
>> index da6cec1..f273c67 100644
>> --- a/drivers/i2c/soft_i2c.c
>> +++ b/drivers/i2c/soft_i2c.c
>> @@ -43,6 +43,9 @@
>>  #ifdef	CONFIG_MPC866			/* only valid for MPC866 */
>>  #include <asm/io.h>
>>  #endif
>> +#ifdef	CONFIG_MPC852T			/* only valid for MPC852T */
>> +#include <asm/io.h>
>> +#endif
> 
> Please change into
> 
> 	#if defined(CONFIG_MPC852T) || defined(CONFIG_MPC866)

OK

thanks
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

      reply	other threads:[~2009-03-11 12:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11  8:04 [U-Boot] [PATCH 3/3] 8xx: add support for new keymile kmsupx4 board Heiko Schocher
2009-03-11 11:40 ` Wolfgang Denk
2009-03-11 12:37   ` Heiko Schocher [this message]

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=49B7B07E.1080606@denx.de \
    --to=hs@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