public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH u-boot git] there are non-DM6446 DaVinci chips
Date: Thu, 16 Apr 2009 23:31:12 -0700	[thread overview]
Message-ID: <200904162331.12314.david-b@pacbell.net> (raw)
In-Reply-To: <20090417054459.GL31923@game.jcrosoft.org>

On Thursday 16 April 2009, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 15:44 Sun 12 Apr     , David Brownell wrote:

> could you split it in more logical change please

I'll fragment it a bit more, ok.  later.


> > @@ -129,10 +122,12 @@ void davinci_enable_uart0(void)
> >  	lpsc_on(DAVINCI_LPSC_UART0);
> >  
> >  	/* Bringup UART0 out of reset */
> > -	REG(UART0_PWREMU_MGMT) = 0x0000e003;
> > +	REG(UART0_PWREMU_MGMT) = 0x00006001;
> >  
> > +#ifdef CONFIG_SOC_DM6446
> >  	/* Enable UART0 MUX lines */
> > -	REG(PINMUX1) |= PINMUX1_UART0;
> > +	REG(PINMUX1) |= DM644X_PINMUX1_UART0;
>
> is this the same for all DM6446?
> and the same question for the I2C and EMAC

Yes, that's why I did it that way.  PINMUX1 is part
of the DM6446 SoC itself, not an FPGA or CPLD, and
on other SoCs the bits in that register have different
meanings assigned.  UART0 might be in PINMUX4, etc.

(Or, if by "this" you meant the PWREMU_MGMT register,
that's also a yes ... plus, I looked at docs for other
DaVinci chips, and they all have the same definition
for that register.)

 
> it will be better to init pio/mux in devices file
> without redefined it in the board as done for the at91

Agreed, but there's a limit to how much rewriting I can
donate.  There *are* no dm6446-specific "devices" files
in cpu/arm926ejs/davinci yet ... and in fact, most of
that "common" code seems more like it belongs over in
cpu/.../davinci, not board/davinci/common.

(Re the AT91 code, having one file per device type and
SoC member seems absurd to me.  One per SoC seems
about right.)

My DM355 patches won't need such #ifdeffery.

- Dave



> Best Regards,
> J.
> 
> 

  reply	other threads:[~2009-04-17  6:31 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-12 22:44 [U-Boot] [PATCH u-boot git] there are non-DM6446 DaVinci chips David Brownell
2009-04-17  5:44 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-17  6:31   ` David Brownell [this message]
2009-04-17  7:28     ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-18 21:00       ` David Brownell
2009-04-24 16:24     ` Hugo Villeneuve
2009-04-24 19:33       ` David Brownell
2009-04-24 21:45         ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-24 22:40           ` David Brownell
2009-04-25  5:17             ` [U-Boot] U-Boot ARM merge strategy, was: " Dirk Behme
2009-04-25  6:27               ` Ben Warren
2009-04-25  7:03                 ` David Brownell
2009-04-25  7:18                   ` Ben Warren
2009-04-25  8:05                     ` David Brownell
2009-04-25 10:48                       ` Wolfgang Denk
2009-04-25 11:40                         ` Dirk Behme
2009-04-25 12:55                         ` [U-Boot] U-Boot ARM merge strategy David Brownell
2009-04-25 13:53                           ` Wolfgang Denk
2009-04-25 18:53                             ` David Brownell
2009-04-26 21:38                               ` Wolfgang Denk
2009-04-27 13:44                         ` [U-Boot] U-Boot ARM merge strategy, was: there are non-DM6446 DaVinci chips Jerry Van Baren
2009-04-27 14:00                           ` Wolfgang Denk
2009-04-25 10:30                   ` Wolfgang Denk
2009-04-25  7:07                 ` [U-Boot] U-Boot ARM merge strategy Dirk Behme
2009-04-25  7:42                   ` Ben Warren
2009-04-25 10:46                     ` Wolfgang Denk
2009-04-25 11:35                       ` Dirk Behme
2009-04-25 13:44                         ` Wolfgang Denk
2009-04-27 15:47                           ` Detlev Zundel
2009-04-27 19:42                             ` Wolfgang Denk
2009-04-28  8:32                               ` Detlev Zundel
2009-04-28  9:07                                 ` Wolfgang Denk
2009-04-25 16:13                       ` Ben Warren
2009-04-26  5:15                       ` Dirk Behme
2009-04-25 10:41                   ` Wolfgang Denk
2009-04-25 17:08                   ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-25 17:30                     ` Wolfgang Denk
2009-04-25 18:02                       ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-25 18:55                     ` David Brownell
2009-04-25  6:57               ` [U-Boot] U-Boot ARM merge strategy, was: there are non-DM6446 DaVinci chips David Brownell
2009-04-25  7:11                 ` Dirk Behme
2009-04-24 23:46           ` [U-Boot] [PATCH u-boot git] " Ben Warren
2009-04-25  0:36             ` David Brownell

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=200904162331.12314.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --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