Merge with /home/wd/git/u-boot/master
authorWolfgang Denk <wd@pollux.denx.de>
Tue, 24 Oct 2006 13:17:59 +0000 (15:17 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Tue, 24 Oct 2006 13:17:59 +0000 (15:17 +0200)
1  2 
MAINTAINERS
Makefile
README
drivers/Makefile

diff --combined MAINTAINERS
index 18b23a21ffffb2e54d766e89039846618d735df0,cff39571223253e8adc5bf1b6904e816fc02e960..8bb38b5f2e04c9d27c6c3792f85008922338ef90
@@@ -218,8 -218,6 +218,8 @@@ Jon Loeliger <jdl@freescale.com
        MPC8541CDS              MPC8541
        MPC8555CDS              MPC8555
  
 +      MPC8641HPCN             MPC8641D
 +
  Dan Malek <dan@embeddededge.com>
  
        STxGP3                  MPC85xx
@@@ -556,6 -554,17 +556,17 @@@ Zachary P. Landau <zachary.landau@labxt
  
        r5200                   mcf52x2
  
+ #########################################################################
+ # AVR32 Systems:                                                      #
+ #                                                                     #
+ # Maintainer Name, Email Address                                      #
+ #     Board                   CPU                                     #
+ #########################################################################
+ Haavard Skinnemoen <hskinnemoen@atmel.com>
+       ATSTK1000               AT32AP7000
  #########################################################################
  # End of MAINTAINERS list                                             #
  #########################################################################
diff --combined Makefile
index 94d518f51b042c1134b1416988b151fd023ba13f,a415af0f5de9f3a0b6161a655fe625d3fbcc4b7b..24a5a3a6c32692d6435e422f53643e4b2f50d788
+++ b/Makefile
@@@ -152,6 -152,9 +152,9 @@@ endi
  ifeq ($(ARCH),blackfin)
  CROSS_COMPILE = bfin-elf-
  endif
+ ifeq ($(ARCH),avr32)
+ CROSS_COMPILE = avr32-
+ endif
  endif
  endif
  
@@@ -177,9 -180,6 +180,9 @@@ endi
  ifeq ($(CPU),mpc85xx)
  OBJS += cpu/$(CPU)/resetvec.o
  endif
 +ifeq ($(CPU),mpc86xx)
 +OBJS += cpu/$(CPU)/resetvec.o
 +endif
  ifeq ($(CPU),bf533)
  OBJS += cpu/$(CPU)/start1.o   cpu/$(CPU)/interrupt.o  cpu/$(CPU)/cache.o
  OBJS += cpu/$(CPU)/cplbhdlr.o cpu/$(CPU)/cplbmgr.o    cpu/$(CPU)/flush.o
@@@ -272,10 -272,10 +275,10 @@@ $(SUBDIRS)
                $(MAKE) -C $@ all
  
  $(NAND_SPL):  version
-               $(MAKE) -C nand_spl all
+               $(MAKE) -C nand_spl/board/$(BOARDDIR) all
  
  $(U_BOOT_NAND):       $(NAND_SPL) $(obj)u-boot.bin
-               cat nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
+               cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
  
  version:
                @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
@@@ -1149,19 -1149,22 +1152,22 @@@ PPChameleonEVB_HI_33_config: unconfi
        @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
  
  rainier_config:       unconfig
-       @echo "#define CONFIG_RAINIER" > include/config.h
+       @mkdir -p $(obj)include
+       @echo "#define CONFIG_RAINIER" > $(obj)include/config.h
        @echo "Configuring for rainier board as subset of sequoia..."
        @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
  
  rainier_nand_config:  unconfig
-       @echo "#define CONFIG_RAINIER" > include/config.h
+       @mkdir -p $(obj)include
+       @mkdir -p $(obj)nand_spl
+       @mkdir -p $(obj)board/amcc/sequoia
+       @echo "#define CONFIG_RAINIER" > $(obj)include/config.h
        @echo "Configuring for rainier board as subset of sequoia..."
-       @ln -s board/amcc/sequoia/Makefile nand_spl/Makefile
-       @echo "#define CONFIG_NAND_U_BOOT" >> include/config.h
+       @echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h
        @echo "Compile NAND boot image for sequoia"
        @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
-       @echo "TEXT_BASE = 0x01000000" >board/amcc/sequoia/config.tmp
-       @echo "CONFIG_NAND_U_BOOT = y" >> include/config.mk
+       @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
+       @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
  
  sbc405_config:        unconfig
        @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
@@@ -1170,12 -1173,14 +1176,14 @@@ sequoia_config:      unconfi
        @$(MKCONFIG) $(@:_config=) ppc ppc4xx sequoia amcc
  
  sequoia_nand_config:  unconfig
-       @ln -s board/amcc/sequoia/Makefile nand_spl/Makefile
-       @echo "#define CONFIG_NAND_U_BOOT" >include/config.h
+       @mkdir -p $(obj)include
+       @mkdir -p $(obj)nand_spl
+       @mkdir -p $(obj)board/amcc/sequoia
+       @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
        @echo "Compile NAND boot image for sequoia"
        @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
-       @echo "TEXT_BASE = 0x01000000" >board/amcc/sequoia/config.tmp
-       @echo "CONFIG_NAND_U_BOOT = y" >> include/config.mk
+       @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
+       @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
  
  sycamore_config:      unconfig
        @echo "Configuring for sycamore board as subset of walnut..."
@@@ -1671,14 -1676,6 +1679,14 @@@ TQM8560_config:               unconfi
        echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
        @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
  
 +#########################################################################
 +## MPC86xx Systems
 +#########################################################################
 +
 +MPC8641HPCN_config:    unconfig
 +      @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
 +
 +
  #########################################################################
  ## 74xx/7xx Systems
  #########################################################################
@@@ -2110,6 -2107,13 +2118,13 @@@ pb1000_config         :       unconfi
        @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
        @$(MKCONFIG) -a pb1x00 mips mips pb1x00
  
+ #========================================================================
+ # AVR32
+ #========================================================================
+ #########################################################################
+ ## AT32AP7xxx
+ #########################################################################
  #########################################################################
  ## MIPS64 5Kc
  #########################################################################
@@@ -2255,8 -2259,7 +2270,7 @@@ clean
        rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
        rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
        rm -f $(obj)include/bmp_logo.h
-       find nand_spl -lname "*" -print | xargs rm -f
-       rm -f nand_spl/u-boot-spl nand_spl/u-boot-spl.map
+       rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
  
  clobber:      clean
        find $(OBJTREE) -type f \( -name .depend \
        rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
        rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
        rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
+       [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
  
  ifeq ($(OBJTREE),$(SRCTREE))
  mrproper \
diff --combined README
index 32a5d686921505e9aec29f0c36c610ca859278ad,f83d7745d3ddd9af984a95a8225351edf77778fe..8d876e435e2f3d4c81c8a9b7016d001490ff858d
--- 1/README
--- 2/README
+++ b/README
@@@ -132,6 -132,7 +132,7 @@@ Directory Hierarchy
    - arm925t   Files specific to ARM 925 CPUs
    - arm926ejs Files specific to ARM 926 CPUs
    - arm1136   Files specific to ARM 1136 CPUs
+   - at32ap    Files specific to Atmel AVR32 AP CPUs
    - i386      Files specific to i386 CPUs
    - ixp               Files specific to Intel XScale IXP CPUs
    - mcf52x2   Files specific to Freescale ColdFire MCF52x2 CPUs
  - examples    Example code for standalone applications, etc.
  - include     Header Files
  - lib_arm     Files generic to ARM     architecture
+ - lib_avr32   Files generic to AVR32   architecture
  - lib_generic Files generic to all     architectures
  - lib_i386    Files generic to i386    architecture
  - lib_m68k    Files generic to m68k    architecture
@@@ -256,6 -258,9 +258,9 @@@ The following options need to be config
                ----------------------
                CONFIG_NIOS2
  
+               AVR32 based CPUs:
+               ----------------------
+               CONFIG_AT32AP
  
  - Board Type: Define exactly one of
  
                CONFIG_PCI5441 CONFIG_PK1C20
                CONFIG_EP1C20 CONFIG_EP1S10 CONFIG_EP1S40
  
+               AVR32 based boards:
+               -------------------
+               CONFIG_ATSTK1000
+ - CPU Daughterboard Type: (if CONFIG_ATSTK1000 is defined)
+               Define exactly one of
+               CONFIG_ATSTK1002
  
  - CPU Module Type: (if CONFIG_COGENT is defined)
                Define exactly one of
                Board code has addition modification that it wants to make
                to the flat device tree before handing it off to the kernel
  
 +              CONFIG_OF_BOOT_CPU
 +
 +              This define fills in the correct boot cpu in the boot
 +              param header, the default value is zero if undefined.
 +
  - Serial Ports:
                CFG_PL010_SERIAL
  
@@@ -2727,9 -2736,9 +2741,9 @@@ defines the following image properties
    4.4BSD, Linux, SVR4, Esix, Solaris, Irix, SCO, Dell, NCR, VxWorks,
    LynxOS, pSOS, QNX, RTEMS, ARTOS;
    Currently supported: Linux, NetBSD, VxWorks, QNX, RTEMS, ARTOS, LynxOS).
- * Target CPU Architecture (Provisions for Alpha, ARM, Intel x86,
+ * Target CPU Architecture (Provisions for Alpha, ARM, AVR32, Intel x86,
    IA64, MIPS, NIOS, PowerPC, IBM S390, SuperH, Sparc, Sparc 64 Bit;
-   Currently supported: ARM, Intel x86, MIPS, NIOS, PowerPC).
+   Currently supported: ARM, AVR32, Intel x86, MIPS, NIOS, PowerPC).
  * Compression Type (uncompressed, gzip, bzip2)
  * Load Address
  * Entry Point
@@@ -3060,55 -3069,6 +3074,55 @@@ format!) to the "bootm" command
  
        bash#
  
 +Boot Linux and pass a flat device tree:
 +-----------
 +
 +First, U-Boot must be compiled with the appropriate defines. See the section
 +titled "Linux Kernel Interface" above for a more in depth explanation. The
 +following is an example of how to start a kernel and pass an updated
 +flat device tree:
 +
 +=> print oftaddr
 +oftaddr=0x300000
 +=> print oft
 +oft=oftrees/mpc8540ads.dtb
 +=> tftp $oftaddr $oft
 +Speed: 1000, full duplex
 +Using TSEC0 device
 +TFTP from server 192.168.1.1; our IP address is 192.168.1.101
 +Filename 'oftrees/mpc8540ads.dtb'.
 +Load address: 0x300000
 +Loading: #
 +done
 +Bytes transferred = 4106 (100a hex)
 +=> tftp $loadaddr $bootfile
 +Speed: 1000, full duplex
 +Using TSEC0 device
 +TFTP from server 192.168.1.1; our IP address is 192.168.1.2
 +Filename 'uImage'.
 +Load address: 0x200000
 +Loading:############
 +done
 +Bytes transferred = 1029407 (fb51f hex)
 +=> print loadaddr
 +loadaddr=200000
 +=> print oftaddr
 +oftaddr=0x300000
 +=> bootm $loadaddr - $oftaddr
 +## Booting image at 00200000 ...
 +   Image Name:   Linux-2.6.17-dirty
 +   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
 +   Data Size:    1029343 Bytes = 1005.2 kB
 +   Load Address: 00000000
 +   Entry Point:  00000000
 +   Verifying Checksum ... OK
 +   Uncompressing Kernel Image ... OK
 +Booting using flat device tree at 0x300000
 +Using MPC85xx ADS machine description
 +Memory CAM mapping: CAM0=256Mb, CAM1=256Mb, CAM2=0Mb residual: 0Mb
 +[snip]
 +
 +
  More About U-Boot Image Types:
  ------------------------------
  
diff --combined drivers/Makefile
index b191018c729ed850ff004daa16f0c6097318189f,7628f564ac289528925b4e798c2803f0e6da9115..5a369df2c418914c2e1245fafb57ddd21d10582f
@@@ -27,7 -27,7 +27,7 @@@ include $(TOPDIR)/config.m
  
  LIB   = $(obj)libdrivers.a
  
- COBJS = 3c589.o 5701rls.o ali512x.o \
+ COBJS = 3c589.o 5701rls.o ali512x.o atmel_usart.o \
          bcm570x.o bcm570x_autoneg.o cfb_console.o cfi_flash.o \
          cs8900.o ct69000.o dataflash.o dc2114x.o dm9000x.o \
          e1000.o eepro100.o \
          serial.o serial_max3100.o \
          serial_pl010.o serial_pl011.o serial_xuartlite.o \
          sl811_usb.o sm501.o smc91111.o smiLynxEM.o \
 -        status_led.o sym53c8xx.o \
 +        status_led.o sym53c8xx.o ahci.o \
          ti_pci1410a.o tigon3.o tsec.o \
          usbdcore.o usbdcore_ep0.o usbdcore_omap1510.o usbtty.o \
          videomodes.o w83c553f.o \
          ks8695eth.o \
          pxa_pcmcia.o mpc8xx_pcmcia.o tqm8xx_pcmcia.o  \
 -        rpx_pcmcia.o
 +        rpx_pcmcia.o \
 +        fsl_i2c.o
  
  SRCS  := $(COBJS:.o=.c)
  OBJS  := $(addprefix $(obj),$(COBJS))