public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Achim Ehrlich <aehrlich@taskit.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] AT91: Added support for taskit Stamp9G20 and PortuxG20
Date: Mon, 22 Feb 2010 13:31:05 +0100	[thread overview]
Message-ID: <4B827909.3010804@taskit.de> (raw)
In-Reply-To: <20100218123232.DEC05A87D17@gemini.denx.de>

Dear Wolfgang Denk,

> 
> In message <4B7C14EC.7050209@taskit.de> you wrote:
>> Signed-off-by: Achim Ehrlich <aehrlich@taskit.de>
>> ---
> ...
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -2906,6 +2906,15 @@ TNY_A9260_config	:	unconfig
>>  	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
>>  	@$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91
>>  
>> +portuxG20_config \
>> +stamp9G20_config	:	unconfig
>> +	@mkdir -p $(obj)include
>> +	@if [ "$(findstring portux,$@)" ] ; then \
>> +		echo "#define CONFIG_PORTUXG20 1" >$(obj)include/config.h; \
>> +		$(XECHO) "... PortuxG20";\
>> +	fi;
> 
> NAK. We don't accept such scripting in the Makefile any more. Please
> use the available mkconfig features instead.
>

Sorry, I overlooked that feature and will change that.
 
> 
>> diff --git a/board/taskit/stamp9G20/partition.c b/board/taskit/stamp9G20/partition.c
>> new file mode 100644
>> index 0000000..2629c67
>> --- /dev/null
>> +++ b/board/taskit/stamp9G20/partition.c
> 
> So we are adding yet another copy of this file. We already have 12 of
> these. Mostly identical.
> 
> Isn't there a more intelligent way to handle this?
>

The file has not much content anyway. I can get rid of it completely.
 
> ...
>> +int dram_init(void)
>> +{
>> +	gd->bd->bi_dram[0].start = PHYS_SDRAM;
>> +	gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
>> +	return 0;
>> +}
> 
> Please consider using get_ram_size() for memory auto-sizing and
> testing.

Thanks for the hint, i will test it.

> 
>> +#ifdef CONFIG_RESET_PHY_R
>> +void reset_phy(void)
>> +{
>> +#ifdef CONFIG_MACB
> 
> 
> CONFIG_MACB seems to be an undocumented variable. What is it supposed
> to do?
>

It switches on the pin initialization for the Ethernet MAC.
Actually, i just copied this part from the AT91SAM9260ek board code.
 
> 
>> diff --git a/include/configs/stamp9G20.h b/include/configs/stamp9G20.h
>> new file mode 100644
>> index 0000000..5008554
>> --- /dev/null
>> +++ b/include/configs/stamp9G20.h
> ...
>> +/* ARM asynchronous clock */
>> +#define AT91_MAIN_CLOCK		18432000	/* 18.432 MHz crystal */
> 
> This should be changed into a CONFIG_SYS_ (globally).
>

Do you mean, I should change that for all AT91-Boards in u-boot?
How or who is going to test that?

 
> 
>> +#define AT91_CPU_NAME		"AT91SAM9G20"
> 
> Ditto.
> 
>> +#define CONFIG_ATMEL_USART	1
>> +#undef CONFIG_USART0
>> +#undef CONFIG_USART1
>> +#undef CONFIG_USART2
>> +#define CONFIG_USART3		1	/* USART 3 is DBGU */
> 
> Do not undefine what is not defined anyway.
> 
>> +/* LED */
>> +
>> +#undef CONFIG_AT91_LED
> 
> Ditto.
> 
>> +/*
>> + * Command line configuration.
>> + */
>> +#include <config_cmd_default.h>
>> +#undef CONFIG_CMD_BDI
>> +#undef CONFIG_CMD_FPGA
>> +#undef CONFIG_CMD_IMI
>> +#undef CONFIG_CMD_IMLS
>> +#undef CONFIG_CMD_SOURCE
> 
> Is there any specific reason for disabling the "bdi", "imi", "imls"
> and "source" commands? They are pretty useful, and you don't seem to
> be especially short on resources...
> 
> ...
>> +/* USB */
>> +#define CONFIG_USB_ATMEL
>> +#define CONFIG_USB_OHCI_NEW		1
>> +#define CONFIG_DOS_PARTITION		1
>> +#define CONFIG_SYS_USB_OHCI_CPU_INIT		1
>> +#define CONFIG_SYS_USB_OHCI_REGS_BASE		0x00500000	/* AT91SAM9260_UHP_BASE */
> 
> Line too long. Please fix globally.
> 
> ...
>> +	"basicargs=console=ttyS0,115200 mem=64M\0"			\
>> +	""
>> +
>> +
>> +
> 
> Excessive white space. Drop 3 of the empty lines.

I will fix these as well.

Thank you for your corrections.

Kind regards


Achim

-- 
product manager

email:aehrlich at taskit.de 
Tel.: ++49 30 611295-25
Fax: ++49 30 611295-11

--
taskit GmbH
Seelenbinderstr. 33 | D-12555 Berlin
web:http://www.taskit.de
Amtsgericht Charlottenburg: 93HRB39014
Managing director: Thorsten Raulfs
--

  reply	other threads:[~2010-02-22 12:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-17 16:10 [U-Boot] [PATCH] AT91: Added support for taskit Stamp9G20 and PortuxG20 Achim Ehrlich
2010-02-18 12:32 ` Wolfgang Denk
2010-02-22 12:31   ` Achim Ehrlich [this message]
2010-02-22 13:06     ` Wolfgang Denk
2010-02-18 12:42 ` Detlev Zundel
2010-02-22 12:35   ` Achim Ehrlich
2010-02-22 13:04     ` Detlev Zundel

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=4B827909.3010804@taskit.de \
    --to=aehrlich@taskit.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