public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [GIT PULL] AVR32 fixes
@ 2007-10-07 12:06 Haavard Skinnemoen
  2007-10-13 21:11 ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Haavard Skinnemoen @ 2007-10-07 12:06 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

The following changes since commit 527c80f012030fa0b51f8594847ec56c9317e9b1:
  Stefan Roese (1):
        Merge with git://www.denx.de/git/u-boot.git

are available in the git repository at:

  git://www.denx.de/git/u-boot-avr32.git master

Eirik Aanonsen (2):
      Add some comments to clocks in atstk1002.h
      Update atstk1002 bootargs.

Haavard Skinnemoen (3):
      Merge commit 'origin/master'
      Fix memtest breakage
      AVR32: Initialize bi_flash* in board_init_r

Hans-Christian Egtvedt (2):
      Remove double quotation marks around MAC address for STK1002
      Reduce BOOTDELAY variable to 1 second by default for STK1002

Semih Hazar (1):
      AVR32: Change prototype of memset

 board/atmel/atstk1000/flash.c |    4 ----
 include/asm-avr32/string.h    |    2 +-
 include/configs/atstk1002.h   |   38 ++++++++++++++++++++++++++------------
 lib_avr32/board.c             |   12 +++++++++++-
 4 files changed, 38 insertions(+), 18 deletions(-)

diff --git a/board/atmel/atstk1000/flash.c b/board/atmel/atstk1000/flash.c
index 958f4dc..93d790f 100644
--- a/board/atmel/atstk1000/flash.c
+++ b/board/atmel/atstk1000/flash.c
@@ -55,10 +55,6 @@ unsigned long flash_init(void)
 	unsigned long addr;
 	unsigned int i;
 
-	gd->bd->bi_flashstart = CFG_FLASH_BASE;
-	gd->bd->bi_flashsize = CFG_FLASH_SIZE;
-	gd->bd->bi_flashoffset = _edata - _text;
-
 	flash_info[0].size = CFG_FLASH_SIZE;
 	flash_info[0].sector_count = 135;
 
diff --git a/include/asm-avr32/string.h b/include/asm-avr32/string.h
index 8b05d1a..58582a3 100644
--- a/include/asm-avr32/string.h
+++ b/include/asm-avr32/string.h
@@ -23,6 +23,6 @@
 #define __ASM_AVR32_STRING_H
 
 #define __HAVE_ARCH_MEMSET
-extern void *memset(void *s, int c, size_t n);
+extern void *memset(void *s, int c, __kernel_size_t n);
 
 #endif /* __ASM_AVR32_STRING_H */
diff --git a/include/configs/atstk1002.h b/include/configs/atstk1002.h
index 75b153e..1809fc5 100644
--- a/include/configs/atstk1002.h
+++ b/include/configs/atstk1002.h
@@ -39,8 +39,10 @@
 #define CFG_HZ				1000
 
 /*
- * Set up the PLL to run at 199.5 MHz, the CPU to run at 1/2 the PLL
- * frequency and the peripherals to run at 1/4 the PLL frequency.
+ * Set up the PLL to run at 140 MHz, the CPU to run at the PLL
+ * frequency, the HSB and PBB at 1/2, and the PBA to run at 1/4 the
+ * PLL frequency.
+ * (CFG_OSC0_HZ * CFG_PLL0_MUL) / CFG_PLL0_DIV = PLL MHz
  */
 #define CONFIG_PLL			1
 #define CFG_POWER_MANAGER		1
@@ -48,9 +50,25 @@
 #define CFG_PLL0_DIV			1
 #define CFG_PLL0_MUL			7
 #define CFG_PLL0_SUPPRESS_CYCLES	16
+/*
+ * Set the CPU running at:
+ * PLL / (2^CFG_CLKDIV_CPU) = CPU MHz
+ */
 #define CFG_CLKDIV_CPU			0
+/*
+ * Set the HSB running at:
+ * PLL / (2^CFG_CLKDIV_HSB) = HSB MHz
+ */
 #define CFG_CLKDIV_HSB			1
+/*
+ * Set the PBA running at:
+ * PLL / (2^CFG_CLKDIV_PBA) = PBA MHz
+ */
 #define CFG_CLKDIV_PBA			2
+/*
+ * Set the PBB running at:
+ * PLL / (2^CFG_CLKDIV_PBB) = PBB MHz
+ */
 #define CFG_CLKDIV_PBB			1
 
 /*
@@ -78,7 +96,7 @@
 
 #define CONFIG_BAUDRATE			115200
 #define CONFIG_BOOTARGS							\
-	"console=ttyS0 root=/dev/mtdblock1 rootfstype=jffs2 fbmem=600k"
+	"console=ttyS0 root=/dev/mmcblk0p1 fbmem=600k rootwait=1"
 
 #define CONFIG_BOOTCOMMAND						\
 	"fsload; bootm $(fileaddr)"
@@ -87,7 +105,7 @@
  * Only interrupt autoboot if <space> is pressed. Otherwise, garbage
  * data on the serial line may interrupt the boot sequence.
  */
-#define CONFIG_BOOTDELAY		2
+#define CONFIG_BOOTDELAY		1
 #define CONFIG_AUTOBOOT			1
 #define CONFIG_AUTOBOOT_KEYED		1
 #define CONFIG_AUTOBOOT_PROMPT				\
@@ -103,8 +121,8 @@
  * generated and assigned to the environment variables "ethaddr" and
  * "eth1addr".
  */
-#define CONFIG_ETHADDR			"6a:87:71:14:cd:cb"
-#define CONFIG_ETH1ADDR			"ca:f8:15:e6:3e:e6"
+#define CONFIG_ETHADDR			6a:87:71:14:cd:cb
+#define CONFIG_ETH1ADDR			ca:f8:15:e6:3e:e6
 #define CONFIG_OVERWRITE_ETHADDR_ONCE	1
 #define CONFIG_NET_MULTI		1
 
@@ -182,12 +200,8 @@
 #define CFG_PBSIZE			(CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
 #define CFG_LONGHELP			1
 
-#define CFG_MEMTEST_START						\
-	({ gd->bd->bi_dram[0].start; })
-#define CFG_MEMTEST_END							\
-	({								\
-		gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size;	\
-	})
+#define CFG_MEMTEST_START		CFG_SDRAM_BASE
+#define CFG_MEMTEST_END			(CFG_MEMTEST_START + 0x700000)
 #define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
diff --git a/lib_avr32/board.c b/lib_avr32/board.c
index 8b9ca38..11d864f 100644
--- a/lib_avr32/board.c
+++ b/lib_avr32/board.c
@@ -310,10 +310,20 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
 	malloc_bin_reloc();
 	dma_alloc_init();
 	board_init_info();
-	flash_init();
+
+	bd->bi_flashstart = 0;
+	bd->bi_flashsize = 0;
+	bd->bi_flashoffset = 0;
+
+#ifndef CFG_NO_FLASH
+	bd->bi_flashstart = CFG_FLASH_BASE;
+	bd->bi_flashsize = flash_init();
+	bd->bi_flashoffset = (unsigned long)_edata - (unsigned long)_text;
 
 	if (bd->bi_flashsize)
 		display_flash_config();
+#endif
+
 	if (bd->bi_dram[0].size)
 		display_dram_config();
 

^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [U-Boot-Users] [GIT PULL] AVR32 fixes
@ 2008-02-05 11:30 Haavard Skinnemoen
  2008-02-14 23:15 ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Haavard Skinnemoen @ 2008-02-05 11:30 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

Please pull from

  git://www.denx.de/git/u-boot-avr32.git master

to receive the following fixes. The "avr32-fixes" branch used for
testing is now gone, and will be re-created as needed. Please use
"master" instead.

Btw, one of the nice things about the new workflow is that after
rebasing "avr32-fixes" onto "upstream/master", it could be fast-forward
merged into the master branch. That was a bit unexpected, but it means
that not only is the history of "master" very clean, it is also
completely linear (i.e. people pulling from it regularly won't get any
nasty surprises.)

Oh, and I know that this won't actually build at the moment. Just like
all the other non-ppc architectures, avr32 needs one of the SPI build
fixes posted recently.

Haavard Skinnemoen (5):
      ATNGW100: Fix default mtest range
      ATSTK1002: Use SDRAM + 4MB as default load address
      ATSTK1004: Fix comment about default load address
      ATSTK1000: Fix potential flash programming bug
      AVR32: Make SDRAM refresh rate configurable

 board/atmel/atngw100/atngw100.c         |    3 +++
 board/atmel/atstk1000/atstk1000.c       |    3 +++
 board/atmel/atstk1000/flash.c           |   31 ++++++++++++++++++++++---------
 cpu/at32ap/hsdramc.c                    |    6 +++++-
 include/asm-avr32/arch-at32ap700x/clk.h |    3 +++
 include/asm-avr32/sdram.h               |    3 +++
 include/configs/atngw100.h              |   10 +++-------
 include/configs/atstk1002.h             |    4 ++--
 include/configs/atstk1004.h             |    2 +-
 9 files changed, 45 insertions(+), 20 deletions(-)

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [U-Boot-Users] [GIT PULL] AVR32 fixes
@ 2007-08-13 15:42 Haavard Skinnemoen
  2007-08-13 20:05 ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Haavard Skinnemoen @ 2007-08-13 15:42 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

The following changes since commit 9986bc3e40e899bea372a99a2bca4071bdf2e24b:
  Wolfgang Denk (1):
        Update CHANGELOG

are available in the git repository at:

  git://www.denx.de/git/u-boot-avr32.git master

This includes one important build fix that was left out of the "make
do_div generic" merge for some reason and a couple of changes fixing
real problems that might break stuff from time to time or are merely a
bit annoying.

Haavard Skinnemoen (7):
      macb: Introduce a few barriers when dealing with DMA descriptors
      macb: Don't restart autonegotiation if we already have link
      Merge branch 'upstream'
      atmel_mci: Use 512 byte blocksize if possible
      Merge commit 'upstream/master'
      AVR32: Include <div64.h> instead of <asm/div64.h>
      atmel_mci: Fix data timeout value

 cpu/at32ap/atmel_mci.c  |   80 ++++++++++++++++++++++++++++++++++++++++++++--
 cpu/at32ap/atmel_mci.h  |    4 ++
 cpu/at32ap/interrupts.c |    2 +-
 drivers/macb.c          |   59 ++++++++++++++++++++--------------
 4 files changed, 116 insertions(+), 29 deletions(-)

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-02-14 23:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-07 12:06 [U-Boot-Users] [GIT PULL] AVR32 fixes Haavard Skinnemoen
2007-10-13 21:11 ` Wolfgang Denk
2007-10-13 23:16   ` Haavard Skinnemoen
2007-10-13 23:38     ` Wolfgang Denk
2007-10-14 12:35       ` Haavard Skinnemoen
2007-10-14 22:22         ` Grant Likely
2007-10-15  9:18           ` Haavard Skinnemoen
2007-10-15 13:40             ` Ulf Samuelsson
2007-10-15 14:16               ` Haavard Skinnemoen
  -- strict thread matches above, loose matches on Subject: below --
2008-02-05 11:30 Haavard Skinnemoen
2008-02-14 23:15 ` Wolfgang Denk
2007-08-13 15:42 Haavard Skinnemoen
2007-08-13 20:05 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox