All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/9 V3] add new CONFIG_AT91_LEGACY
Date: Sat, 30 Jan 2010 18:57:57 -0600	[thread overview]
Message-ID: <4B64D595.4060305@windriver.com> (raw)
In-Reply-To: <4B5AD772.9080406@scharsoft.de>

Jens Scharsig wrote:
> * add's the new temporary CONFIG_AT91_LEGACY to all board configs 
> * This will need for backward compatiblity, while change the SoC 
>   access to c structures. If CONFIG_AT91_LEGACY is defined, the 
>   deprecated SoC is used.
> * please see README.at91-soc for details
> 
> Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
> ---
>  doc/README.at91-soc                |   42 ++++++++++++++++++++++++++++++++++++
>  include/configs/afeb9260.h         |    2 +
>  include/configs/at91cap9adk.h      |    2 +
>  include/configs/at91rm9200dk.h     |    2 +
>  include/configs/at91rm9200ek.h     |    2 +
>  include/configs/at91sam9260ek.h    |    2 +
>  include/configs/at91sam9261ek.h    |    2 +
>  include/configs/at91sam9263ek.h    |    2 +
>  include/configs/at91sam9m10g45ek.h |    2 +
>  include/configs/at91sam9rlek.h     |    2 +
>  include/configs/cmc_pu2.h          |    2 +
>  include/configs/cpu9260.h          |    2 +
>  include/configs/cpuat91.h          |    2 +
>  include/configs/csb637.h           |    2 +
>  include/configs/kb9202.h           |    2 +
>  include/configs/m501sk.h           |    2 +
>  include/configs/meesc.h            |    2 +
>  include/configs/mp2usb.h           |    2 +
>  include/configs/pm9261.h           |    2 +
>  include/configs/pm9263.h           |    2 +
>  include/configs/sbc35_a9g20.h      |    2 +
>  include/configs/tny_a9260.h        |    2 +
>  22 files changed, 84 insertions(+), 0 deletions(-)
>  create mode 100644 doc/README.at91-soc
> 
> diff --git a/doc/README.at91-soc b/doc/README.at91-soc
> new file mode 100644
> index 0000000..063016e
> --- /dev/null
> +++ b/doc/README.at91-soc
> @@ -0,0 +1,42 @@
> + New C structure AT91 SoC access
> +=================================
> +
> +The gool
> +--------

change to 'goal'

> +
> +Currently the at91 arch uses hundreds of address defines and special
> +at91_xxxx_write/read functions to access the SOC.
> +The u-boot project prefer the better to readable access via c stuctures,
> +which describe the SoC peripherie.
> +

change to
'The u-boot project perferred method is to access memory mapped hw
regisister via a c structure'


> +e.g. old
> +
> +	*AT91C_PIOA_IDR = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
> +	*AT91C_PIOC_PUDR = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
> +	*AT91C_PIOC_PER = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
> +	*AT91C_PIOC_OER = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
> +	*AT91C_PIOC_PIO = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
> +
> +	at91_sys_write(AT91_RSTC_CR,
> +		AT91_RSTC_KEY | AT91_RSTC_PROCRST | AT91_RSTC_PERRST);
> +
> +e.g new
> +	pin = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
> +	writel(pin, &pio->pioa.idr);
> +	writel(pin, &pio->pioa.pudr);
> +	writel(pin, &pio->pioa.per);
> +	writel(pin, &pio->pioa.oer);
> +	writel(pin, &pio->pioa.sodr);
> +
> +	writel(AT91_RSTC_KEY | AT91_RSTC_CR_PROCRST |
> +		AT91_RSTC_CR_PERRST, &rstc->cr);
> +
> +The Way

Change to
'The method for updating'

> +-------
> +
> +1. add's the new temporary CONFIG_AT91_LEGACY to all board configs
> +   that not converted to new SoC access

Change to something like
'Display a compile time warning if the board has not been converted'

> +2. add new structures for SoC access
> +3. Convert arch, driver and boards file zu new SoC

Change from 'zu new SoC' to 'to the new c stucture based SoC acesss'

This readme is a big help
Thanks
Tom

  reply	other threads:[~2010-01-31  0:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 11:03 [U-Boot] [PATCH 1/9 V3] add new CONFIG_AT91_LEGACY Jens Scharsig
2010-01-31  0:57 ` Tom [this message]
2010-01-31 11:24 ` [U-Boot] [PATCH 1/9 V3.1] " Jens Scharsig
2010-02-03 21:45 ` [U-Boot] [PATCH 1/9 V4] " Jens Scharsig
2010-02-06 14:19   ` Tom
2010-02-10 11:33     ` Daniel Gorsulowski
2010-02-11 13:56       ` Tom
2010-02-12  6:47         ` Daniel Gorsulowski
2010-02-12 13:08           ` Tom
2010-02-12 18:05           ` Tom
2010-02-13 11:12             ` Daniel Gorsulowski

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=4B64D595.4060305@windriver.com \
    --to=tom.rix@windriver.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.