public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Josh Wu <josh.wu@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/4][resend] arm: at91: add at91sam9n12ek board support
Date: Fri, 22 Mar 2013 14:27:02 +0800	[thread overview]
Message-ID: <514BF9B6.6070709@atmel.com> (raw)
In-Reply-To: <514BEC34.60204@atmel.com>

Hi, Shen Bo

On 3/22/2013 1:29 PM, Bo Shen wrote:
> Hi Josh,
>   minor comment as following.
>
> On 3/21/2013 9:52, Josh Wu wrote:
>> Add support for following features:
>>    - nand boot, with PMECC 2bit ECC for 512 bytes sector
>>    - SPI flash boot
>>    - SD card boot
>>    - LCD support
>>
>> Signed-off-by: Josh Wu <josh.wu@atmel.com>
>> ---
>>   MAINTAINERS                                       |    3 +
>>   arch/arm/cpu/arm926ejs/at91/Makefile              |    1 +
>>   arch/arm/cpu/arm926ejs/at91/at91sam9n12_devices.c |  180 
>> ++++++++++++++++
>>   arch/arm/cpu/arm926ejs/at91/clock.c               |    4 +-
>>   board/atmel/at91sam9n12ek/Makefile                |   52 +++++
>>   board/atmel/at91sam9n12ek/at91sam9n12ek.c         |  228 
>> ++++++++++++++++++++
>>   boards.cfg                                        |    3 +
>>   include/configs/at91sam9n12ek.h                   |  232 
>> +++++++++++++++++++++
>>   8 files changed, 701 insertions(+), 2 deletions(-)
>>   create mode 100644 arch/arm/cpu/arm926ejs/at91/at91sam9n12_devices.c
>>   create mode 100644 board/atmel/at91sam9n12ek/Makefile
>>   create mode 100644 board/atmel/at91sam9n12ek/at91sam9n12ek.c
>>   create mode 100644 include/configs/at91sam9n12ek.h
>>
>
> [snip]
>
>> +#ifdef CONFIG_LCD
>> +void at91_lcd_hw_init(void)
>> +{
>> +    struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
>> +
>> +    at91_set_a_periph(AT91_PIO_PORTC, 24, 0);    /* LCDDPWR */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 26, 0);    /* LCDVSYNC */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 27, 0);    /* LCDHSYNC */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 28, 0);    /* LCDDOTCK */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 29, 0);    /* LCDDEN */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 30, 0);    /* LCDDOTCK */
>> +
>> +    at91_set_a_periph(AT91_PIO_PORTC, 0, 0);    /* LCDD0 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 1, 0);    /* LCDD1 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 2, 0);    /* LCDD2 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 3, 0);    /* LCDD3 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 4, 0);    /* LCDD4 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 5, 0);    /* LCDD5 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 6, 0);    /* LCDD6 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 7, 0);    /* LCDD7 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 8, 0);    /* LCDD8 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 9, 0);    /* LCDD9 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 10, 0);    /* LCDD10 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 11, 0);    /* LCDD11 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 12, 0);    /* LCDD12 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 13, 0);    /* LCDD13 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 14, 0);    /* LCDD14 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 15, 0);    /* LCDD15 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 16, 0);    /* LCDD16 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 17, 0);    /* LCDD17 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 18, 0);    /* LCDD18 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 19, 0);    /* LCDD19 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 20, 0);    /* LCDD20 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 21, 0);    /* LCDD21 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 22, 0);    /* LCDD22 */
>> +    at91_set_a_periph(AT91_PIO_PORTC, 23, 0);    /* LCDD23 */
>> +
>> +    writel(1 << ATMEL_ID_LCDC, &pmc->pcer);
>> +}
>> +#endif
>> +
>> +
>> +
>
> when apply this patch, it will show following warning:
>
> .git/rebase-apply/patch:225: new blank line at EOF.
> +
> warning: 1 line adds whitespace errors.

ok, I will fix the blank line in v3. thanks.

Best Regards,
Josh Wu

>
> Best Regards,
> Bo Shen
>

  reply	other threads:[~2013-03-22  6:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20  7:55 [U-Boot] [PATCH v2 0/4] arm: atmel: add at91sam9n12ek board support Josh Wu
2013-03-20  7:55 ` [U-Boot] [PATCH v2 1/4] spi: atmel_spi: using ip version to check whether has wdrbt Josh Wu
2013-03-20  7:55 ` [U-Boot] [PATCH v2 2/4] arm: at91: add at91sam9n12 register definition Josh Wu
2013-03-20  7:55 ` [U-Boot] [PATCH v2 3/4] arm: at91: add at91sam9n12ek board support Josh Wu
2013-03-20 11:14   ` Josh Wu
2013-03-21  1:52   ` [U-Boot] [PATCH v2 3/4][resend] " Josh Wu
2013-03-22  5:29     ` Bo Shen
2013-03-22  6:27       ` Josh Wu [this message]
2013-03-22 11:18     ` Andreas Bießmann
2013-03-20  7:55 ` [U-Boot] [PATCH v2 4/4] at91: clock: remove chip macro for plla div2 Josh Wu

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=514BF9B6.6070709@atmel.com \
    --to=josh.wu@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