public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulf@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] "7.at91rm9200dk":(1 of 1) [PATCH][ARM] Add PIOcontrol for at91rm9200dk LEDs and Mux.
Date: Wed, 11 Apr 2007 15:14:47 +0200	[thread overview]
Message-ID: <01cd01c77c4b$26b75910$254565d5@atmel.com> (raw)
In-Reply-To: 000101c77600$7b6fcab0$821ba8c0@Emea.Arm.com

>> [PATCH][ARM] Add PIO control for at91rm9200dk LEDs and Mux.
>> 
>> Author: Ulf Samuelsson <ulf@atmel.com>
>> Date:     2007-03-27
>> 
>> Subject: "7.at91rm9200dk":(1 of  1)     [PATCH][ARM] 
>> Add PIO control for at91rm9200dk LEDs and Mux.
>> 
>> CHANGELOG:
>>     [PATCH][ARM] Add PIO control for at91rm9200dk LEDs and Mux.
>>     Introduce a new command CFG_CMD_MUX 0x8000000000000000ULL
>>
> Ulf
> Thanks for your patch. It will be useful for other at91rm9200dk
> users
> to see your post. 
> 
> However, I shall not be submitting it for inclusion in the main U-Boot tree.
> 
> Your patch removes the last remaing CFG_CMD bit for a board specific use.
> 
> Does at91rm9200dk  already use CFG_CMD_BSP and CFG_CMD_PORTIO?  
> 

The CFG_CMD_PORTIO is useful to wrap around bothe the "led" and the "mux" functions.
These commands will then also generate do_portio_in and do_portio_out functions which are x86 specific.

If CONFIG_X86 is not set, the functions does not do anything.
Most SoC's memory map this anyway so that means that you do not need port I/O.

Having commands which configures the board is however quite convenient
since you typically have to do a few writes to enable/disable board specific.

My suggestion is that I use CFG_CMD_PORTIO to build the LED/MUX
commands and then further qualify them inside with CONFIG_MUX and CONFIG_LED.

"cmd_portio.c" needs to change to ensure it is empty if CONFIG_X86 is not set.
The last fix is of course non-ARM specific so other may want to comment.

Then again, there is not a single board using CFG_CMD_PORTIO, 
so the change should be quite OK.



> Regards
> 
> Peter Pearse
> 


Best Regards
Ulf Samuelsson                ulf at atmel.com
Atmel Nordic AB
Mail:  Box 2033, 174 02 Sundbyberg, Sweden
Visit:  Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22     Fax +46 (8) 441 54 29
GSM    +46 (706) 22 44 57

      reply	other threads:[~2007-04-11 13:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-27 16:17 [U-Boot-Users] "7.at91rm9200dk":(1 of 1) [PATCH][ARM] Add PIO control for at91rm9200dk LEDs and Mux Ulf Samuelsson
2007-04-03 14:58 ` Peter Pearse
2007-04-11 13:14   ` Ulf Samuelsson [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='01cd01c77c4b$26b75910$254565d5@atmel.com' \
    --to=ulf@atmel.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