]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Merge branch 'quad100hd'
authorStefan Roese <sr@denx.de>
Wed, 21 May 2008 15:39:24 +0000 (17:39 +0200)
committerStefan Roese <sr@denx.de>
Wed, 21 May 2008 15:39:24 +0000 (17:39 +0200)
110 files changed:
CHANGELOG
MAINTAINERS
MAKEALL
Makefile
README
api/api.c
board/BuS/EB+MCF-EV123/config.mk
board/amcc/canyonlands/canyonlands.c
board/amcc/canyonlands/config.mk
board/amcc/kilauea/kilauea.c
board/atmel/at91cap9adk/Makefile
board/atmel/at91cap9adk/at91cap9adk.c
board/atmel/at91cap9adk/led.c
board/atmel/at91cap9adk/nand.c
board/atmel/at91cap9adk/partition.c
board/atmel/at91cap9adk/u-boot.lds
board/atmel/at91rm9200dk/partition.c
board/atmel/at91sam9260ek/Makefile
board/atmel/at91sam9260ek/at91sam9260ek.c
board/atmel/at91sam9260ek/led.c
board/atmel/at91sam9260ek/nand.c
board/atmel/at91sam9260ek/partition.c
board/atmel/at91sam9260ek/u-boot.lds
board/esd/mecp5200/config.mk
board/freescale/mpc8548cds/mpc8548cds.c
board/linkstation/Makefile
board/linkstation/config.mk
board/munices/config.mk
board/mx31ads/lowlevel_init.S
board/qemu-mips/README
board/qemu-mips/qemu-mips.c
board/sc520_cdp/sc520_cdp_asm.S
board/sc520_spunk/Makefile
board/sc520_spunk/flash.c
board/sc520_spunk/sc520_spunk_asm.S
board/tqm8272/Makefile
board/v38b/config.mk
common/cmd_bootm.c
common/cmd_ide.c
common/cmd_nvedit.c
common/env_common.c
common/env_eeprom.c
common/env_nvram.c
common/ft_build.c
common/image.c
common/main.c
common/usb.c
cpu/74xx_7xx/cache.S
cpu/arm1136/mx31/generic.c
cpu/arm920t/s3c24x0/usb.c
cpu/arm926ejs/at91sam9/Makefile
cpu/arm926ejs/at91sam9/ether.c
cpu/arm926ejs/at91sam9/lowlevel_init.S
cpu/arm926ejs/at91sam9/timer.c
cpu/arm926ejs/at91sam9/usb.c
cpu/i386/start.S
cpu/mips/cache.S
cpu/mpc86xx/cache.S
cpu/ppc4xx/cpu.c
disk/part.c
doc/README.nand-boot-ppc440
drivers/net/smc911x.c
drivers/pci/pci.c
drivers/pcmcia/Makefile
drivers/pcmcia/i82365.c
examples/.gitignore
include/.gitignore
include/asm-arm/arch-at91sam9/at91_pio.h
include/asm-arm/arch-at91sam9/at91_pit.h
include/asm-arm/arch-at91sam9/at91_pmc.h
include/asm-arm/arch-at91sam9/at91_rstc.h
include/asm-arm/arch-at91sam9/at91_spi.h
include/asm-arm/arch-at91sam9/at91cap9.h
include/asm-arm/arch-at91sam9/at91cap9_matrix.h
include/asm-arm/arch-at91sam9/at91sam9260.h
include/asm-arm/arch-at91sam9/at91sam9260_matrix.h
include/asm-arm/arch-at91sam9/at91sam926x_mc.h [deleted file]
include/asm-arm/arch-at91sam9/at91sam9_smc.h [new file with mode: 0644]
include/asm-arm/arch-at91sam9/clk.h
include/asm-arm/arch-at91sam9/gpio.h
include/asm-arm/arch-at91sam9/hardware.h
include/asm-arm/arch-at91sam9/io.h
include/asm-arm/arch-at91sam9/memory-map.h
include/asm-arm/arch-mx31/mx31.h
include/asm-arm/dma-mapping.h
include/asm-ppc/io.h
include/asm-ppc/processor.h
include/common.h
include/configs/MPC8313ERDB.h
include/configs/MPC8349EMDS.h
include/configs/at91cap9adk.h
include/configs/at91sam9260ek.h
include/configs/kilauea.h
include/configs/makalu.h
include/configs/ml401.h
include/configs/mx31ads.h
include/configs/xupv2p.h
include/environment.h
include/pci.h
include/version.h
lib_generic/crc32.c
lib_i386/bootm.c
lib_ppc/board.c
lib_ppc/bootm.c
nand_spl/board/amcc/canyonlands/Makefile
post/cpu/ppc4xx/Makefile
tools/env/Makefile
tools/env/fw_env.c
tools/env/fw_env.h
tools/env/fw_env_main.c

index 5d21db1b2db2711b90951bccbd1d56552a4cdcf1..ce36c37c122e7a18a0ed0c5a9f9cd514083b9891 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,747 @@
+commit 16bedc661de0dae767b1377d8413373a3fbcfa79
+Author: Stefan Roese <sr@denx.de>
+Date:  Mon May 19 07:14:38 2008 +0200
+
+    ppc4xx: Canyonlands: Disable PCIe0/SATA in dev-tree depending on selection
+
+    When SATA is selected (via jumper J6) we need to disable the first PCIe
+    node in the device tree, so that Linux doesn't initialize it. Otherwise
+    the Linux SATA driver will fail to detect the devices.
+
+    The same goes the other way around too. So if PCIe is selected we need
+    to disable the SATA node in the device tree.
+
+    This is because PCIe port 0 and SATA on 460EX share the same pins
+    (multiplexed) and we have to configure in U-Boot which peripheral is
+    enabled.
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit 3cc27b426aeefe2930f911692e9df3143fb2565f
+Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Date:  Sun May 18 19:09:58 2008 +0200
+
+    i386: Fix multiple definitions of __show_boot_progress
+
+    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+
+commit 311f3446930c1e64c12026c1cfd00500b05be52d
+Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Date:  Sun May 18 19:09:57 2008 +0200
+
+    sc530_spunk: add missing SOBJS entry
+
+    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+
+commit a559317143b4f95927b08cd388707e6f077e95fa
+Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Date:  Sun May 18 19:09:56 2008 +0200
+
+    sc520_spunk: Fix flash
+
+    flash.c:593: warning: dereferencing type-punned pointer will break strict-aliasing rules
+    flash.c:398: error: label at end of compound statement
+
+    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+
+commit 91f221317af64191ee8caf303ea9305943158691
+Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Date:  Sun May 18 19:09:49 2008 +0200
+
+    drivers/pcmcia: add missing i82365
+
+    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+
+commit dd223944132f97ffa52977ea95e5a52428f5cc2f
+Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Date:  Sun May 18 19:09:47 2008 +0200
+
+    i386/bootm: remove unused var
+
+    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+
+commit a9da341df19b32ad2ecb58ce529f7e4fada7814e
+Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Date:  Sun May 18 19:09:45 2008 +0200
+
+    example/gitignore: update with all generated examples
+
+    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+
+commit a38dc3ea8614f8b0c41e432b445a9959b9711295
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Thu May 15 00:42:45 2008 +0200
+
+    TQM8272: fix out-of-tree building
+
+    ...and add to MAKEALL script
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit 4f805c1e3a60b9263da8ec3bcd1f45edcefa7dcf
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Wed May 14 23:34:53 2008 +0200
+
+    environment: fix bug introduced by commit a8409f4f1ac8
+
+    env_get_char is not a function, but a pointer to one.
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit cda2a4a9961fd4341b7db305cb22fc05957e8b77
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Wed May 14 13:55:30 2008 +0200
+
+    Fix config files for out-of-tree building
+
+    Several board/<...>/config.mk files include dynamically built (by
+    the Makefile) config files but used the wrong file name of
+       $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+    instead if the correct
+       $(OBJTREE)/board/$(BOARDDIR)/config.tmp
+
+    The bug is nasty because the build result is correct for the (normal)
+    in-tree builds, and because 'sinclude' is used no errors get raised
+    even for out-of-tree build tests. But out-of-tree builds use an
+    incomplete and thus usually incorrect configuration...
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit 2dd7082e06d580404010b06fe4e0e8b7038a00c8
+Author: Stefan Roese <sr@denx.de>
+Date:  Wed May 14 13:40:03 2008 +0200
+
+    ppc4xx: Fix bogus Canyonlands config.mk
+
+    This patch fixes the canyonlands config.mk file to enable correct
+    out-of-tree builds. Thanks to Wolfgang Denk for spotting this.
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit fdd1247a66d788a3446244f6fde9955a93c26322
+Author: Stefan Roese <sr@denx.de>
+Date:  Wed May 14 10:32:32 2008 +0200
+
+    ppc4xx: Individual handling of ddr2_fixed.c for canyonlands_nand build
+
+    Canyonlands has a file ddr2_fixed.c which needs special treatment when
+    building in separate directory. It has to be linked to build directory
+    otherwise it is not seen.
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit a8409f4f1ac84c36273c1a1e341189662521bcfb
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Wed May 14 12:22:49 2008 +0200
+
+    environment: cleanup prototype declarations of env functions.
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit cf39b07948015c480b72a6e732cf7d839aa93a9e
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Wed May 14 12:21:48 2008 +0200
+
+    linkstation_HGLAN: Fix out of tree building.
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit 085551c05ca09e6c491ea11a1c6727a36776a545
+Author: Stefan Roese <sr@denx.de>
+Date:  Wed May 14 10:32:32 2008 +0200
+
+    ppc4xx: Individual handling of ddr2_fixed.c for canyonlands_nand build
+
+    Canyonlands has a file ddr2_fixed.c which needs special treatment when
+    building in separate directory. It has to be linked to build directory
+    otherwise it is not seen.
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit 1510b82d50615f344e89d42533e8224cce067dc0
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Tue May 13 23:15:52 2008 +0200
+
+    Makefile: fix "error: version_autogenerated.h: No such file or directory"
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit 70fab1908fc1734a403711eaabbef546bc4b77dc
+Author: Stefan Roese <sr@denx.de>
+Date:  Tue May 13 20:22:01 2008 +0200
+
+    ppc4xx: Add 405EX(r) revision C PVR definitions and detection code
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit 65dcfa79204f4750b905a173a5365e0b2eb6c2f6
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Mon May 12 01:11:21 2008 +0200
+
+    Revert "pci: Add CONFIG_PCI_SKIP_HOST_BRIDGE config option"
+
+    This reverts commit 55774b512fdf63c0516d441cc5da7c54bbffb7f2
+    which broke many PowerPC boards.
+
+commit ee0cfa70803a3e629ea581a9b216f8ecef402bfc
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Mon May 12 00:56:28 2008 +0200
+
+    Revert "Avoid initrd and logbuffer area overlaps"
+
+    This reverts commit 1b5605ca57fbb364f4d78eeee28b974ed875e888
+    which breaks building on all PPC boards that don't use a log buffer.
+
+commit 02b9b22446e3d7ad6a6382be17a1ce79a7de589b
+Author: Nick Spence <nick.spence@freescale.com>
+Date:  Sat May 10 14:02:04 2008 -0700
+
+    Fix offset calculation for multi-type legacy images.
+
+    Calculation of tail was incorrect when size % 4 == 0.
+
+    New code removes the conditional and does the same thing but with arithmetic
+
+    Signed-off-by: Nick Spence <nick.spence@freescale.com>
+
+commit c9dca3c3f37d2647aec4509b24b16d15882ae3e4
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Mon May 12 00:40:58 2008 +0200
+
+    Revert "Change env_get_char from a global function ptr to a function."
+
+    This reverts commit c0559be371b2a64b1a817088c3308688e2182f93
+    which is known to break booting from dataflash and NAND.
+
+commit 20e5ed137483823aaea5178169f3b144c7a4d9e0
+Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Date:  Sun May 11 23:13:57 2008 +0200
+
+    API: remove duplicate syscall check
+
+    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+
+commit 79dd1712689d6a5031d7cbff54957049680751c7
+Author: Markus Klotzbücher <mk@denx.de>
+Date:  Thu May 8 16:00:55 2008 +0200
+
+    ppc4xx: Kilauea: Add CONFIG_BOOTP_SUBNETMASK to Kilauea board config
+
+    When using dhcp/bootp the "netmask" environment variable is not set
+    because CONFIG_BOOTP_SUBNETMASK is not defined. But usually this is
+    desireable, so the following patch adds this this option to the board
+    config.
+
+    Signed-off-by: Markus Klotzbuecher <mk@denx.de>
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit 869d14b4cc2e47de2ddcb117bad0407a44436684
+Author: Stefan Roese <sr@denx.de>
+Date:  Sat May 10 10:30:36 2008 +0200
+
+    ppc4xx: Update Makalu defconfig to use device-tree booting as default
+
+    This patch reworks the default environment on Makalu. Now "net_nfs" for
+    example uses the device-tree style booting formerly know as "net_nfs_fdt".
+    Also the addresses in RAM were changed because of the new image booting
+    support, which check for image overwriting. So the addresses needed to
+    get adjusted.
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit f3612a7b199cab3942f60d9c1392eb39d58cc699
+Author: Becky Bruce <bgill@freescale.com>
+Date:  Wed May 7 13:28:16 2008 -0500
+
+    PPC: fix map_physmem build warning
+
+    map_physmem currently generates a warning when CONFIG_PHYS_64BIT is
+    enabled.  This quiets the warning.
+
+    Signed-off-by: Becky Bruce <Becky.Bruce@freescale.com>
+
+commit 36f32675f40292002ee1fed252c180a43022d2d4
+Author: Becky Bruce <bgill@freescale.com>
+Date:  Wed May 7 13:24:57 2008 -0500
+
+    Update pci code to use phys_addr_t
+
+    Physical addrs need to be represented by phys_addr_t, not
+    unsigned long.  Otherwise, systems that use CONFIG_PHYS_64BIT
+    are going to fail mightily.
+
+    Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
+
+commit 91a616741fc128cdb88f39bddcd4d72fe17466d0
+Author: Nick Spence <nick.spence@freescale.com>
+Date:  Thu May 8 22:32:22 2008 -0700
+
+    Support legacy multi-type images without FDT section.
+
+    This patch enables legacy multi-type images containing only a Linux kernel
+    and root file system to be loaded, maintaining compatibility with previous
+    versions of u-boot.
+
+    This is required when using old image files such as a Linux 2.4 kernel /
+    filesystem.
+
+    Signed-off-by: Nick Spence <nick.spence@freescale.com>
+    Acked-by: Bartlomiej Sieka <tur@semihalf.com>
+
+commit 881031d9732783b7aeae2198fc7eb480ae8974a6
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Sat May 10 00:38:02 2008 +0200
+
+    Update CHANGELOG.
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit e5e9d6c9c08160be7e5a36e04d125ccce99b8774
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Sat May 10 00:36:09 2008 +0200
+
+    post/cpu/ppc4xx/Makefile: line length cleanup
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit cce9cfdabcf416ecd2aacc3681c91e5378c75a3d
+Author: Stelian Pop <stelian@popies.net>
+Date:  Thu May 8 22:52:09 2008 +0200
+
+    Fix @ -> <at> substitution
+
+    When applying the AT91CAP9 patches upstream, something transformed
+    the '@' character into the ' <at> ' sequence.
+
+    The patch below restores the original form in all the places where
+    it has been modified (the AT91CAP9 files, the AT91SAM9260 files which
+    were copied from AT91CAP9, and a couple of other files where the
+    ' <at> ' sequence was present).
+
+    Signed-off-by: Stelian Pop <stelian@popies.net>
+
+commit 9606b3c81b3c47a1d58514e9a232c6f461a17597
+Author: Stelian Pop <stelian@popies.net>
+Date:  Thu May 8 22:52:10 2008 +0200
+
+    Update origin and copyright information in arch-at91sam9 header files
+
+    When doing the AT91CAP9/AT91SAM9 port, a number of header files were
+    copied from the Linux kernel sources. This patch explicitly specifies
+    this origin for all the copied headers, and for those missing copyright
+    information, adds it.
+
+    Additionaly, the header file 'at91sam926x_mc.h' has been superceeded
+    in the latest kernel sources by 'at91sam9_smc.h'.
+
+    The copyright information has been confirmed by the AT91 Linux kernel
+    maintainer, Andrew Victor <avictor.za@gmail.com>.
+
+    Signed-off-by: Stelian Pop <stelian@popies.net>
+
+commit ceb6b4fbe1dcc40bb672ef8133ddf4813e97cbb1
+Author: Stelian Pop <stelian@popies.net>
+Date:  Thu May 8 22:52:11 2008 +0200
+
+    Add copyright information in Atmel boards partition.c
+
+    When Ulf did the dataflash.c cleanup, he didn't add his copyright on
+    the new created files. This patch fixes the problem.
+
+    Signed-off-by: Stelian Pop <stelian@popies.net>
+
+commit 2ab02fd456d8ef92ae9f5439618d1fa7ca16e5f3
+Author: Guennadi Liakhovetski <lg@denx.de>
+Date:  Thu May 8 10:09:27 2008 +0200
+
+    mx31ads: fix 32kHz clock handling
+
+    According to schematics and to RedBoot sources, the MX31ADS uses a 32768Hz
+    oscillator as a SKIL source. Fix previously wrongly assumed 32000Hz value.
+    Also fix a typo when verifying a jumper configuration. While at it, make
+    two needlessly global functions static.
+
+    Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
+
+commit 1b5605ca57fbb364f4d78eeee28b974ed875e888
+Author: Marian Balakowicz <m8@semihalf.com>
+Date:  Wed May 7 13:10:04 2008 +0200
+
+    Avoid initrd and logbuffer area overlaps
+
+    Add logbuffer to reserved LMB areas to prevent initrd allocation
+    from overlaping with it.
+
+    Make sure to use correct logbuffer base address.
+
+    Signed-off-by: Marian Balakowicz <m8@semihalf.com>
+
+commit c59518e15949b3403df5c5b0c2c48ea0e5bea24b
+Author: Marian Balakowicz <m8@semihalf.com>
+Date:  Wed May 7 13:08:54 2008 +0200
+
+    ppc: Cleanup get_effective_memsize() use
+
+    Removed duplicated effective memory size calculation code.
+
+    Signed-off-by: Marian Balakowicz <m8@semihalf.com>
+
+commit 273c37d843d5b581090378016cd12dd9c586907b
+Author: Marian Balakowicz <m8@semihalf.com>
+Date:  Wed May 7 09:03:53 2008 +0200
+
+    Fix build errors when CONFIG_LOGBUFFER and CONFIG_FIT are enabled
+
+    Recent modifcations to LOGBUFFER handling code were incorrecly
+    introduced to fit_check_kernel() routine during
+    "Merge branch 'new-image' of git://www.denx.de/git/u-boot-testing",
+    commit 27f33e9f45ef7f9685cbdc65066a1828e85dde4f.
+
+    This patch cleans up this merge issue.
+
+    Signed-off-by: Marian Balakowicz <m8@semihalf.com>
+
+commit bc11756daff89a3de09ca80adac962b88cf06e6e
+Author: Grant Erickson <gerickson@nuovations.com>
+Date:  Tue May 6 20:16:15 2008 -0700
+
+    Propagate Error Status to the Shell on fw_printenv Errors
+
+    Changed implementation such that fw_printenv returns failure status
+    when one or more specified variables do not exist or when incorrect
+    command syntax is used.
+
+    This aids scripting fw_printenv such that the script can key of the
+    return status rather than relying on standard error "scraping".
+
+    Signed-off-by: Grant Erickson <gerickson@nuovations.com>
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit f3b6d528e4dd719640a4bfcd954f4e4c7f5db0d6
+Author: Grant Erickson <gerickson@nuovations.com>
+Date:  Tue May 6 16:18:00 2008 -0700
+
+    Fix Compilation Errors with 'tools/env/fw_printenv'
+
+    In the current top-of-tree, 1.3.3.-rc2, the optional tool
+    'tools/env/fw_printenv' fails to compile for two reasons:
+
+    1) The header watchdog.h cannot be found.
+    2) The header zlib.h is picked up from the tool chain rather than the
+       project causing a prototype conflict for crc32.
+
+    This patch addresses both of these issues.
+
+    Platforms Tested On:
+    - AMCC "Kilauea"
+
+    Signed-off-by: Grant Erickson <gerickson@nuovations.com>
+
+commit 597f6c26a18b389903a64692bacbf9a1ca69355b
+Author: James Yang <James.Yang@freescale.com>
+Date:  Mon May 5 10:22:53 2008 -0500
+
+    Fix readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating
+
+    When CONFIG_CMDLINE_EDITING is enabled, readline_into_buffer() doesn't
+    work before relocating to RAM because command history is written into
+    a global array that is not writable before relocation.  This patch
+    defers to the no-editing and no-history code in readline_into_buffer()
+    if it is called before relocation.
+
+    Signed-off-by: James Yang <James.Yang@freescale.com>
+    Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
+
+commit 726c0f1e5f108dccea052965123b95837d2bd402
+Author: Detlev Zundel <dzu@denx.de>
+Date:  Mon May 5 16:11:22 2008 +0200
+
+    cosmetic: Adjust coding style for switch statements to be consistent
+
+    Signed-off-by: Detlev Zundel <dzu@denx.de>
+
+commit 574b319512b13e10800f0045e39b993f4ca25e42
+Author: Detlev Zundel <dzu@denx.de>
+Date:  Mon May 5 16:11:21 2008 +0200
+
+    Fix disk type output in disk/part.c
+
+    Signed-off-by: Detlev Zundel <dzu@denx.de>
+
+commit 045b4d2d7168ef09c7349dcf6ecebe7432b74171
+Author: Vlad Lungu <vlad.lungu@windriver.com>
+Date:  Mon May 5 14:20:03 2008 +0300
+
+    Mail address change, documentation modified
+
+    Signed-off-by: Vlad Lungu <vlad.lungu@windrvier.com>
+
+commit 4d49b28038e2819088e8356a77212fc95a89ce5a
+Author: Michal Simek <monstr@monstr.eu>
+Date:  Sun May 4 15:42:41 2008 +0200
+
+    microblaze: Repare intc handling
+
+    Signed-off-by: Michal Simek <monstr@monstr.eu>
+
+commit 878b3b1e193e570caf3e96ad8e31e561f68d0287
+Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Date:  Sun May 4 15:17:52 2008 +0200
+
+    include/gitignore: update to all architectures
+
+    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+
+commit 1df368aed3b8bc240fe1595d290b0e91b22961da
+Author: Marcel Ziswiler <marcel@ziswiler.com>
+Date:  Mon May 5 02:12:06 2008 +0200
+
+    ide: Remove spurious second include of io.h
+
+    Removed the second include, with all the #ifdef around as suggested by Wolfgang.
+
+    Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
+
+commit 8fbc985bdad09b23b7eb4df1d2ea589619d8db4c
+Author: Adrian Filipi <adrian.filipi@eurotech.com>
+Date:  Tue May 6 16:46:37 2008 -0400
+
+    Fix some typos
+
+    This patch fixes three typos.
+    The first is a repetition of CONFIG_CMD_BSP.
+    The second makes the #endif comment match its #if.
+    The third is a spelling error.
+
+    Signed-off-by: Adrian Filipi <adrian.filipi@eurotech.com>
+
+commit e419e12d04ae3b280c99a87a2ea4ad7a40628bcb
+Author: Grant Erickson <gerickson@nuovations.com>
+Date:  Sun May 4 16:45:01 2008 -0700
+
+    Recognize 'powerpc' As an Alias for IH_ARCH_PPC
+
+    Add support for the recognition of 'powerpc' as an alias for the PowerPC
+    architecture type since Linux is already trending in that direction,
+    preferring 'powerpc' to 'ppc'.
+
+    Signed-off-by: Grant Erickson <gerickson@nuovations.com>
+
+commit f5a24259190c388c2527bdc49fee34577d862cc7
+Author: Wheatley Travis <Travis.Wheatley@freescale.com>
+Date:  Fri May 2 13:35:15 2008 -0700
+
+    7450 and 86xx L2 cache invalidate bug corrections
+
+    The 7610 and related parts have an L2IP bit in the L2CR that is
+    monitored to signal when the L2 cache invalidate is complete whereas the
+    7450 and related parts utilize L2I for this purpose. However, the
+    current code does not account for this difference. Additionally the 86xx
+    L2 cache invalidate code used an "andi" instruction where an "andis"
+    instruction should have been used.
+
+    This patch addresses both of these bugs.
+
+    Signed-off-by: Travis Wheatley <travis.wheatley@freescale.com>
+    Acked-By: Jon Loeliger <jdl@freescale.com>
+
+commit 4d31cdc45d3592a5545a649fb5a24b458a4e4b72
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Fri May 9 10:16:13 2008 +0200
+
+    Avoid infinite loop "Generating include/autoconf.mk"
+
+    Fix a bogus circular dependency that caused an infinite loop of
+    "Generating include/autoconf.mk" again and again.
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit ef2642625cbfb1c3695e3478d08ae515052a4950
+Author: Stefan Roese <sr@denx.de>
+Date:  Thu May 8 11:10:46 2008 +0200
+
+    ppc4xx: Kilauea: Fix incorrect FPGA FIFO address
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit a00eccfebc954ad9485161efeca7d9aaf626d530
+Author: Stefan Roese <sr@denx.de>
+Date:  Thu May 8 11:05:15 2008 +0200
+
+    ppc4xx: Add fdt support to all remaining AMCC PPC4xx eval boards
+
+    This patch adds fdt (flattened device tree) support to all remaining AMCC
+    eval boards. Most newer boards already support device tree. With this patch,
+    all AMCC boards now enable device tree passing from U-Boot to Linux
+    arch/powerpc kernels.
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit cb5d88b9611e0c35c53543ad3b4ab99fa82203e3
+Author: Stefan Roese <sr@denx.de>
+Date:  Thu May 8 11:01:09 2008 +0200
+
+    ppc4xx: Add weak default ft_board_setup() routine
+
+    This patch adds a default ft_board_setup() routine to the 4xx fdt code.
+    This routine is defined as weak and can be overwritten by a board specific
+    one if needed.
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit d1c1ba85c7915053adf6a8d14a08ac6fcb750d01
+Author: Stefan Roese <sr@denx.de>
+Date:  Thu May 8 10:48:58 2008 +0200
+
+    ppc4xx: acadia: Add fdt support and fix section overlap problem
+
+    This patch adds fdt (flattened device tree) support to the AMCC
+    Acadia eval board. This increases the image size and it doesn't
+    fit anymore into 256kByte. Since we didn't want to remove features
+    from the configuration, we decided to increase the U-Boot image size
+    (add one flash sector).
+
+    Also changed the default environment definition to make it
+    independent of such changes.
+
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit 4adb3023de75bc150f088c8935db340930ad38c8
+Author: Ira Snyder <iws@ovro.caltech.edu>
+Date:  Tue Apr 29 11:18:54 2008 -0700
+
+    ppc4xx: Add device tree support to AMCC Yosemite
+
+    Add support for booting with a device tree blob. This is needed to boot
+    ARCH=powerpc kernels. Also add support for setting the eth0 mac address
+    via the ethaddr variable.
+
+    Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit b9bbefce1a653ea35f74a66ec117cdda2e043a4b
+Author: Dave Mitchell <dmitchell@amcc.com>
+Date:  Wed May 7 09:00:23 2008 -0700
+
+    ppc4xx: Fix typos in 460GT/EX FBDV array
+
+    Corrected two typos in the 460GT/EX FBDV array.
+
+    Signed-off-by: Dave Mitchell <dmitchell@amcc.com>
+    Signed-off-by: Stefan Roese <sr@denx.de>
+
+commit 66f5fa9263629271edc86178b1f224e3c9aab2b3
+Author: Andy Fleming <afleming@freescale.com>
+Date:  Wed May 7 16:54:31 2008 -0500
+
+    85xx: Limit CPU2 workaround to parts that have the errata
+
+    Signed-off-by: Ebony Zhu <ebony.zhu@freescale.com>
+    Signed-off-by: Andy Fleming <afleming@freescale.com>
+
+commit a5fe514e8ace564300d2c1d73846ddff49654243
+Author: Lee Nipper <lee.nipper@freescale.com>
+Date:  Fri Apr 25 15:44:45 2008 -0500
+
+    mpc83xx: system performance settings for MPC8349EMDS.
+
+    These same settings are used on MPC8349ITX, and
+    improve performance on MPC8349EMDS.
+
+    Signed-off-by: Lee Nipper <lee.nipper@freescale.com>
+    Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
+
+commit 49387dba910e485640b575e920ee463b7e611dc3
+Author: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
+Date:  Tue May 6 13:22:52 2008 +0900
+
+    [MIPS] cpu/mips/cache.S: Fix build warning
+
+    Some old GNU assemblers, such as v2.14 (ELDK 3.1.1), v2.16 (ELDK 4.1.0),
+    warns illegal global symbol references by bal (and jal also) instruction.
+    This does not happen with the latest binutils v2.18.
+
+    Here's an example on gth2_config:
+
+    mips_4KC-gcc  -D__ASSEMBLY__ -g  -Os   -D__KERNEL__ -DTEXT_BASE=0x90000000 -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isy
+    stem /opt/eldk311/usr/bin/../lib/gcc-lib/mips-linux/3.3.3/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4k
+    c -EB -c -o cache.o cache.S
+    cache.S: Assembler messages:
+    cache.S:243: Warning: Pretending global symbol used as branch target is local.
+    cache.S:250: Warning: Pretending global symbol used as branch target is local.
+
+    In principle, gas might be sensitive to global symbol references in PIC
+    code because they should be processed through GOT (global offset table).
+    But if `bal' instruction is used, it results in PC-based offset jump.
+    This is the cause of this warning.
+
+    In practice, we know it doesn't matter whether PC-based reference or GOT-
+    based. As for this case, both will work before/after relocation. But let's
+    fix the code.
+
+    This patch explicitly sets up a target address, then jump there.
+    Here's an example of disassembled code with/without this patch.
+
+     90000668:      1485ffef        bne     a0,a1,90000628 <mips_cache_reset+0x20>
+     9000066c:      ac80fffc        sw      zero,-4(a0)
+     90000670:      01402821        move    a1,t2
+    -90000674:      0411ffba        bal     90000560 <mips_init_icache>
+    -90000678:      01803021        move    a2,t4
+    -9000067c:      01602821        move    a1,t3
+    -90000680:      0411ffcc        bal     900005b4 <mips_init_dcache>
+    -90000684:      01a03021        move    a2,t5
+    -90000688:      03000008        jr      t8
+    -9000068c:      00000000        nop
+    +90000674:      01803021        move    a2,t4
+    +90000678:      8f8f83ec        lw      t7,-31764(gp)
+    +9000067c:      01e0f809        jalr    t7
+    +90000680:      00000000        nop
+    +90000684:      01602821        move    a1,t3
+    +90000688:      01a03021        move    a2,t5
+    +9000068c:      8f8f81e0        lw      t7,-32288(gp)
+    +90000690:      01e0f809        jalr    t7
+    +90000694:      00000000        nop
+    +90000698:      03000008        jr      t8
+    +9000069c:      00000000        nop
+
+    Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
+
+commit 0f8c62a14b523c56874ebcb67c1a16c99aad48b3
+Author: Vlad Lungu <vlad.lungu@windriver.com>
+Date:  Mon May 5 14:04:00 2008 +0300
+
+    Allow building mips versions with ELDK 3.1.1
+
+    .gpword works only with local symbols on certain binutils versions
+
+    Signed-off-by: Vlad Lungu <vlad.lungu@windrvier.com>
+
+commit 12a67a9e51f6b3ec26cb0f077fb5685a447c359d
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Mon May 5 12:52:36 2008 +0200
+
+    MAKEALL: add inka4x0 board
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit b83dcc13ae7b2dab394bfef6f699750d11490ee2
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Sun May 4 21:34:23 2008 +0200
+
+    kb9202 board: fix build problem.
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
+commit 6adf61dc4cb5c53a2df990cbc8df2bceacbfd869
+Author: Wolfgang Denk <wd@denx.de>
+Date:  Sun May 4 12:10:33 2008 +0200
+
+    Prepare for v1.3.3-rc3
+
+    Update ChNAGELOG, minor white space cleanup.
+
+    Signed-off-by: Wolfgang Denk <wd@denx.de>
+
 commit 7c0773fde6100b61be2558cb5d8c442a3194aecb
 Author: Wolfgang Denk <wd@denx.de>
 Date:  Sun May 4 00:35:15 2008 +0200
index 98056795d2702abc344e6c842080ff258bc942f0..cc887627438090b8a40c09e669cd4843b2240fa8 100644 (file)
@@ -611,7 +611,7 @@ Thomas Lange <thomas@corelatus.se>
        dbau1x00                MIPS32 Au1000
        gth2                    MIPS32 Au1000
 
-Vlad Lungu <vlad@comsys.ro>
+Vlad Lungu <vlad.lungu@windriver.com>
        qemu_mips               MIPS32
 
 #########################################################################
diff --git a/MAKEALL b/MAKEALL
index 47e53c669553f6686994091fb722e5780b6b7282..cdc0011b9b0b48e539530538a60d07411141364d 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -307,6 +307,7 @@ LIST_8260="         \
        TQM8260_AC      \
        TQM8260_AD      \
        TQM8260_AE      \
+       TQM8272         \
        ZPC1900         \
 "
 
index 13eee305fdc94e332b5e95316cbc32be5094b41b..c2f3361e722d2e5ff3ed476c1ffe48298b507806 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@
 VERSION = 1
 PATCHLEVEL = 3
 SUBLEVEL = 3
-EXTRAVERSION = -rc3
+EXTRAVERSION =
 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 VERSION_FILE = $(obj)include/version_autogenerated.h
 
@@ -424,13 +424,19 @@ $(obj)System.map: $(obj)u-boot
 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
 # the dep file is only include in this top level makefile to determine when
 # to regenerate the autoconf.mk file.
-$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
-       @$(XECHO) Generating include/autoconf.mk ; \
+$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
+       @$(XECHO) Generating $@ ; \
        set -e ; \
        : Generate the dependancies ; \
-       $(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
+       $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
+               -MQ $(obj)include/autoconf.mk include/common.h > $@
+
+$(obj)include/autoconf.mk: $(obj)include/config.h
+       @$(XECHO) Generating $@ ; \
+       set -e ; \
        : Extract the config macros ; \
-       $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
+       $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
+               sed -n -f tools/scripts/define2mk.sed > $@
 
 sinclude $(obj)include/autoconf.mk.dep
 
diff --git a/README b/README
index 5e2bca41c1acd9b28ee7ded28e85b2b3048192bf..f14fb7bad2a6a0427da196528a6d17e0d642d389 100644 (file)
--- a/README
+++ b/README
@@ -623,7 +623,6 @@ The following options need to be configured:
                CONFIG_CMD_SPI          * SPI serial bus support
                CONFIG_CMD_USB          * USB support
                CONFIG_CMD_VFD          * VFD support (TRAB)
-               CONFIG_CMD_BSP          * Board SPecific functions
                CONFIG_CMD_CDP          * Cisco Discover Protocol support
                CONFIG_CMD_FSL          * Microblaze FSL support
 
index c1b2b60aeb175a339cc090819e6136945f0438af..19c71540c0387f46dc480989404ed6394ee7b9cb 100644 (file)
--- a/api/api.c
+++ b/api/api.c
@@ -30,6 +30,7 @@
 #include <command.h>
 #include <common.h>
 #include <malloc.h>
+#include <environment.h>
 #include <linux/types.h>
 #include <api_public.h>
 
@@ -40,7 +41,6 @@
 
 /* U-Boot routines needed */
 extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-extern uchar *env_get_addr(int);
 
 /*****************************************************************************
  *
@@ -582,7 +582,7 @@ int syscall(int call, int *retval, ...)
        va_list ap;
        int rv;
 
-       if (call < 0 || call >= calls_no || calls_table[call] == NULL) {
+       if (call < 0 || call >= calls_no) {
                debugf("invalid call #%d\n", call);
                return 0;
        }
index 9fe2fc5dae6884093d2f9b8e9e4b78b8d8676cef..f03e3962d0f90d9221f01698f6b1de4e90a8c097 100644 (file)
@@ -22,7 +22,7 @@
 # MA 02111-1307 USA
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/textbase.mk
+sinclude $(OBJTREE)/board/$(BOARDDIR)/textbase.mk
 ifndef TEXT_BASE
 TEXT_BASE = 0xFE000000
 endif
index 9986e9a9c6ef8a87684f91282919222af5f82a30..0f6606127815ba7e1ab799ca6f18f08f24a07dd3 100644 (file)
@@ -476,8 +476,37 @@ void ft_board_setup(void *blob, bd_t *bd)
        val[3] = gd->bd->bi_flashsize;
        rc = fdt_find_and_setprop(blob, "/plb/opb/ebc", "ranges",
                                  val, sizeof(val), 1);
-       if (rc)
+       if (rc) {
                printf("Unable to update property NOR mapping, err=%s\n",
                       fdt_strerror(rc));
+       }
+
+       if (gd->board_type == BOARD_CANYONLANDS_SATA) {
+               /*
+                * When SATA is selected we need to disable the first PCIe
+                * node in the device tree, so that Linux doesn't initialize
+                * it.
+                */
+               rc = fdt_find_and_setprop(blob, "/plb/pciex@d00000000", "status",
+                                         "disabled", sizeof("disabled"), 1);
+               if (rc) {
+                       printf("Unable to update property status in PCIe node, err=%s\n",
+                              fdt_strerror(rc));
+               }
+       }
+
+       if (gd->board_type == BOARD_CANYONLANDS_PCIE) {
+               /*
+                * When PCIe is selected we need to disable the SATA
+                * node in the device tree, so that Linux doesn't initialize
+                * it.
+                */
+               rc = fdt_find_and_setprop(blob, "/plb/sata@bffd1000", "status",
+                                         "disabled", sizeof("disabled"), 1);
+               if (rc) {
+                       printf("Unable to update property status in PCIe node, err=%s\n",
+                              fdt_strerror(rc));
+               }
+       }
 }
 #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
index 1e4bbc47e684359a941d912e645682ad1b88f1fe..2330cae925bb759677cfda5fa28d8a2afb73cb39 100644 (file)
 # AMCC 460EX/460GT Evaluation Board (Canyonlands) board
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 ifndef TEXT_BASE
 TEXT_BASE = 0xFFFA0000
 endif
 
-ifeq ($(CONFIG_NAND_U_BOOT),y)
-LDSCRIPT = $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds
-endif
-
-ifeq ($(CONFIG_PCIBOOT_U_BOOT),y)
-LDSCRIPT = $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds
-endif
-
 PLATFORM_CPPFLAGS += -DCONFIG_440=1
 
 ifeq ($(debug),1)
index 37ef06ef2a77648fd26c482ff2873afd9819a7f7..d806a412ebf70e3107606e0f5bd4b7413a8e0d42 100644 (file)
@@ -230,14 +230,22 @@ int misc_init_r(void)
        return 0;
 }
 
-int board_emac_count(void)
+static int is_405exr(void)
 {
        u32 pvr = get_pvr();
 
+       if (pvr & 0x00000004)
+               return 0;               /* bit 2 set -> 405EX */
+
+       return 1;                       /* bit 2 cleared -> 405EXr */
+}
+
+int board_emac_count(void)
+{
        /*
         * 405EXr only has one EMAC interface, 405EX has two
         */
-       if ((pvr == PVR_405EXR1_RA) || (pvr == PVR_405EXR2_RA))
+       if (is_405exr())
                return 1;
        else
                return 2;
@@ -245,12 +253,10 @@ int board_emac_count(void)
 
 static int board_pcie_count(void)
 {
-       u32 pvr = get_pvr();
-
        /*
         * 405EXr only has one EMAC interface, 405EX has two
         */
-       if ((pvr == PVR_405EXR1_RA) || (pvr == PVR_405EXR2_RA))
+       if (is_405exr())
                return 1;
        else
                return 2;
@@ -259,9 +265,8 @@ static int board_pcie_count(void)
 int checkboard (void)
 {
        char *s = getenv("serial#");
-       u32 pvr = get_pvr();
 
-       if ((pvr == PVR_405EXR1_RA) || (pvr == PVR_405EXR2_RA))
+       if (is_405exr())
                printf("Board: Haleakala - AMCC PPC405EXr Evaluation Board");
        else
                printf("Board: Kilauea - AMCC PPC405EX Evaluation Board");
index 6b4b4b035e4d127ce4653e85439ca16ee1835636..e33af76c0250173004561be780a0a03c4f1081c6 100644 (file)
@@ -1,6 +1,6 @@
 #
 # (C) Copyright 2003-2008
-# Wolfgang Denk, DENX Software Engineering, wd <at> denx.de.
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 #
 # See file CREDITS for list of people who contributed to this
 # project.
index 24861ba49de757faabb9f59326d220d6c91d0cee..5de52b9197e6939a3eb3626606fda1fafdac9d86 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
@@ -25,7 +25,7 @@
 #include <common.h>
 #include <asm/arch/at91cap9.h>
 #include <asm/arch/at91cap9_matrix.h>
-#include <asm/arch/at91sam926x_mc.h>
+#include <asm/arch/at91sam9_smc.h>
 #include <asm/arch/at91_pmc.h>
 #include <asm/arch/at91_rstc.h>
 #include <asm/arch/gpio.h>
index 04de13920474e15e74008838785d0c626eb5163f..a137c2a9525e72e5310d210a4501be7b0aa0a82d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
index c72b0244bd323865675a04d4fd10474c4357f87a..28091a4226f5a970aa7d0f2b0ab696480ba445f2 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * (C) Copyright 2006 ATMEL Rousset, Lacressonniere Nicolas
index 3bffd71a78e41115552ee67713c62b5ea5a5dd46..eb1a724ab1fb10f7b32152287069572a35fa5a1d 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * (C) Copyright 2008
+ * Ulf Samuelsson <ulf@atmel.com>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
index 05a6d83d5653467883b3955541c9698294040fc8..996f401f0b973b8c94954f006d6d99ddd2942311 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2002
- * Gary Jennejohn, DENX Software Engineering, <gj <at> denx.de>
+ * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index a8a5fe6aa6f9853fac53ff6fba3de3b5c968dacd..975be1746477c1672fe04d07f48fdfb1d0f4792a 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * (C) Copyright 2008
+ * Ulf Samuelsson <ulf@atmel.com>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
index defc08519313b4a13cb422310b73047915d0b248..e6e4082c73beaba61a3d599d5de30731f52e22e7 100644 (file)
@@ -1,6 +1,6 @@
 #
 # (C) Copyright 2003-2008
-# Wolfgang Denk, DENX Software Engineering, wd <at> denx.de.
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 #
 # See file CREDITS for list of people who contributed to this
 # project.
index a55468e30d066e177ec673f9da4f7b41fd352a8f..21479acab4babbd660335b149aaa58a85391e2cd 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
@@ -25,7 +25,7 @@
 #include <common.h>
 #include <asm/arch/at91sam9260.h>
 #include <asm/arch/at91sam9260_matrix.h>
-#include <asm/arch/at91sam926x_mc.h>
+#include <asm/arch/at91sam9_smc.h>
 #include <asm/arch/at91_pmc.h>
 #include <asm/arch/at91_rstc.h>
 #include <asm/arch/gpio.h>
index 4c53742e50ec2e32c99f77042506ebe1b2f693f1..ddc375f267a6da246b45ee63d1135e98317e0e59 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
index abb788afe7b231de52d73546f90bd15b1e4fb947..7c1e6abd9a3c70eb60aee8958cf632ed351207ec 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * (C) Copyright 2006 ATMEL Rousset, Lacressonniere Nicolas
index 389fb2c5c910b363033f03326310968ff4c52c24..557d6954f46929de84a267828abf06d008f469a4 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * (C) Copyright 2008
+ * Ulf Samuelsson <ulf@atmel.com>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
index 05a6d83d5653467883b3955541c9698294040fc8..996f401f0b973b8c94954f006d6d99ddd2942311 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2002
- * Gary Jennejohn, DENX Software Engineering, <gj <at> denx.de>
+ * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index 07b5de1881cc34f71ddec987c09591a950ec88bb..170779d6c143485b193741c7f7d873c1c4b57360 100644 (file)
@@ -32,7 +32,7 @@
 #      0x00100000   boot from RAM (for testing only)
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 ifndef TEXT_BASE
 ## Standard: boot high
index dc39fbe8dc5bad56219de7e35f909b247b52a383..efe2a3a3def57c761ff648e6a5a7b71998475b6e 100644 (file)
@@ -59,6 +59,7 @@ int checkboard (void)
        uint pci_slot = get_pci_slot ();
 
        uint cpu_board_rev = get_cpu_board_revision ();
+       uint svr;
 
        printf ("Board: CDS Version 0x%02x, PCI Slot %d\n",
                get_board_version (), pci_slot);
@@ -71,12 +72,16 @@ int checkboard (void)
         */
        local_bus_init ();
 
+       svr = get_svr();
+
        /*
         * Fix CPU2 errata: A core hang possible while executing a
         * msync instruction and a snoopable transaction from an I/O
         * master tagged to make quick forward progress is present.
+        * Fixed in Silicon Rev.2.1
         */
-       ecm->eebpcr |= (1 << 16);
+       if (!(SVR_MAJ(svr) >= 2 && SVR_MIN(svr) >= 1))
+               ecm->eebpcr |= (1 << 16);
 
        /*
         * Hack TSEC 3 and 4 IO voltages.
index 57c84de60e16e65b7993e4a085e5fa5d6ec31b94..8d92d8a6c7b29b23e93dd8781e92545f4ab33f7d 100644 (file)
 
 include $(TOPDIR)/config.mk
 
-LIB    = lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).a
 
 OBJS   = $(BOARD).o ide.o hwctl.o avr.o
 
-$(LIB):        .depend $(OBJS) $(SOBJS)
-       $(AR) crv $@ $(OBJS) $(SOBJS)
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(OBJS))
+
+$(LIB):        $(obj).depend $(OBJS)
+       $(AR) crv $@ $(OBJS)
 
 #########################################################################
 
-.depend:       Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
-               $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
 
-sinclude .depend
+sinclude $(obj).depend
 
 #########################################################################
index bdf611dc2b0299a07f00964a9de78af15641cb77..d04829014ee0d10b4ead9e7dfd91e62ff4b0f2d7 100644 (file)
@@ -35,7 +35,7 @@
 #       0x07F00000   boot from RAM
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 ifndef TEXT_BASE
 # For flash image - all models
index d226244a1c39b8509229c7aeeb691b999280378a..1b573bc882b825c272b707d571d7d6c2c641266f 100644 (file)
@@ -29,7 +29,7 @@
 #      0xFFF00000   boot high (standard configuration)
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 ifndef TEXT_BASE
 TEXT_BASE = 0xFFF00000
index 099a7ca81b25134d32e5f22a3882e5cea366e0f2..e16605836be00c538c90ef4a34682d751615b456 100644 (file)
@@ -220,7 +220,7 @@ lowlevel_init:
        mov     r1, #CS4_BASE
        ldrh    r1, [r1, #0x2]
        /* Is 27MHz switch set? */
-       ands    r1, r1, #0x16
+       ands    r1, r1, #0x10
 
        /* 532-133-66.5 */
        ldr     r0, =CCM_BASE
index 39570b13dba61d67a8c431ab246bfa1dcd1323ef..4c1f8edc9b680337cb9e948151055afaec2449a2 100644 (file)
@@ -1,4 +1,4 @@
-By Vlad Lungu vlad@comsys.ro 2007-Oct-01
+By Vlad Lungu vlad.lungu@windriver.com 2007-Oct-01
 ----------------------------------------
 Qemu is a full system emulator. See
 
@@ -9,3 +9,7 @@ Limitations & comments
 Supports the "-m mips" configuration of qemu: serial,NE2000,IDE.
 Support is big endian only for now (or at least this is what I tested).
 Derived from au1x00 with a lot of things cut out.
+
+Supports emulated flash (patch Jean-Christophe PLAGNIOL-VILLARD) with
+recent qemu versions. When using emulated flash, launch with
+-pflash <filename> and erase mips_bios.bin.
index a6ad7b9ab35f09fae377a49a84589ef9bc0aca59..68690743d686434c7702819aa0bb43a62a04f5b5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007
- * Vlad Lungu vlad@comsys.ro
+ * Vlad Lungu vlad.lungu@windriver.com
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index be7b2bb482fad4c26b4fec20ef19aefe70a8f7d4..7f70d65d5f26baff3a9aebac895ecdf882f8c21a 100644 (file)
@@ -76,8 +76,8 @@ done:   movb  $0x88, %al
        jmp     *%ebp                /* return to caller */
 
 
-.globl __show_boot_progress
-__show_boot_progress:
+.globl show_boot_progress
+show_boot_progress:
        out     %al, $0x80
        xchg    %al, %ah
        movw    $0x680, %dx
index bfb77e8f8bc303d4434f08de86f277cc9a2b7a7d..226c756bf4edef6abf0f421b82e2531300e56d50 100644 (file)
@@ -36,7 +36,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
        rm -f $(SOBJS) $(OBJS)
index 4942e598d35cd8461b8b4357e02f383bfe7e64a4..0b4bf68894f15de688b8661cddd242632f88feac 100644 (file)
@@ -33,7 +33,6 @@
 #define PROBE_BUFFER_SIZE 1024
 static unsigned char buffer[PROBE_BUFFER_SIZE];
 
-
 #define SC520_MAX_FLASH_BANKS  1
 #define SC520_FLASH_BANK0_BASE 0x38000000  /* BOOTCS */
 #define SC520_FLASH_BANKSIZE   0x8000000
@@ -62,7 +61,6 @@ flash_info_t    flash_info[SC520_MAX_FLASH_BANKS];
 /*-----------------------------------------------------------------------
  */
 
-
 static u32 _probe_flash(u32 addr, u32 bw, int il)
 {
        u32 result=0;
@@ -180,7 +178,6 @@ static u32 _probe_flash(u32 addr, u32 bw, int il)
                break;
        }
 
-
        return result;
 }
 
@@ -215,11 +212,9 @@ static int identify_flash(unsigned address, int width)
                enable_interrupts();
        }
 
-
        vendor = res >> 16;
        device = res & 0xffff;
 
-
        return res;
 }
 
@@ -385,7 +380,6 @@ void flash_print_info(flash_info_t *info)
                break;
        }
 
-
        printf("  Size: %ld MB in %d Sectors\n",
               info->size >> 20, info->sector_count);
 
@@ -399,13 +393,13 @@ void flash_print_info(flash_info_t *info)
        }
        printf ("\n");
 
-       done:
+done:
+       return;
 }
 
 /*-----------------------------------------------------------------------
  */
 
-
 static u32 _amd_erase_flash(u32 addr, u32 sector)
 {
        unsigned elapsed;
@@ -467,7 +461,6 @@ static u32 _intel_erase_flash(u32 addr, u32 sector)
        *(volatile u16*)(addr + sector) = 0x0020;   /* erase setup */
        *(volatile u16*)(addr + sector) = 0x00D0;   /* erase confirm */
 
-
        /* Wait at least 80us - let's wait 1 ms */
        __udelay(1000);
 
@@ -486,7 +479,6 @@ static u32 _intel_erase_flash(u32 addr, u32 sector)
        return 0;
 }
 
-
 extern int _intel_erase_flash_end;
 asm ("_intel_erase_flash_end:\n"
      ".long 0\n");
@@ -548,7 +540,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
                printf ("\n");
        }
 
-
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect<=s_last; sect++) {
 
@@ -566,7 +557,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
                                enable_interrupts();
                        }
 
-
                        if (res) {
                                printf("Erase timed out, sector %d\n", sect);
                                return res;
@@ -576,7 +566,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
                }
        }
 
-
        return 0;
 }
 
@@ -586,11 +575,11 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
  * 1 - write timeout
  * 2 - Flash not erased
  */
-static int _amd_write_word(unsigned start, unsigned dest, unsigned data)
+static int _amd_write_word(unsigned start, unsigned dest, u16 data)
 {
-       volatile u16 *addr2 = (u16*)start;
-       volatile u16 *dest2 = (u16*)dest;
-       volatile u16 *data2 = (u16*)&data;
+       volatile u16 *addr2 = (volatile u16*)start;
+       volatile u16 *dest2 = (volatile u16*)dest;
+       volatile u16 *data2 = (volatile u16*)&data;
        int i;
        unsigned elapsed;
 
@@ -601,7 +590,6 @@ static int _amd_write_word(unsigned start, unsigned dest, unsigned data)
 
        for (i = 0; i < 2; i++) {
 
-
                addr2[0x5555] = 0x00AA;
                addr2[0x2aaa] = 0x0055;
                addr2[0x5555] = 0x00A0;
@@ -630,7 +618,6 @@ extern int _amd_write_word_end;
 asm ("_amd_write_word_end:\n"
      ".long 0\n");
 
-
 static int _intel_write_word(unsigned start, unsigned dest, unsigned data)
 {
        int i;
@@ -663,14 +650,12 @@ static int _intel_write_word(unsigned start, unsigned dest, unsigned data)
 
 
        return 0;
-
 }
 
 extern int _intel_write_word_end;
 asm ("_intel_write_word_end:\n"
      ".long 0\n");
 
-
 /*-----------------------------------------------------------------------
  * Copy memory to flash, returns:
  * 0 - OK
@@ -715,10 +700,8 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                return 3;
        }
 
-
        wp = (addr & ~3);       /* get lower word aligned address */
 
-
        /*
         * handle unaligned start bytes
         */
@@ -805,5 +788,4 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
        }
 
        return rc;
-
 }
index 8b3410399b4f4ea6abc26d59e357498353b2cc81..0127076db102490a31939cea191be7c0345d9c78 100644 (file)
@@ -73,8 +73,8 @@ done:   movl    $0xfffefc32,%edx
        jmp     *%ebp                /* return to caller */
 
 
-.globl __show_boot_progress
-__show_boot_progress:
+.globl show_boot_progress
+show_boot_progress:
        movl    $0xfffefc32,%edx
        xorw    $0xffff, %ax
        movw    %ax,(%edx)
index 3dbf913d2eb7109a31f7a276e64b035fe0f52244..67302635126ffcc040614d4430022df1dddcf9b3 100644 (file)
@@ -1,5 +1,5 @@
 #
-# (C) Copyright 2001
+# (C) Copyright 2001-2008
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 #
 # See file CREDITS for list of people who contributed to this
 #
 
 include $(TOPDIR)/config.mk
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../tqm8xx/)
+endif
 
-LIB    = lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).a
 
-OBJS   = $(BOARD).o ../tqm8xx/load_sernum_ethaddr.o
+COBJS  = $(BOARD).o ../tqm8xx/load_sernum_ethaddr.o
 
-$(LIB):        .depend $(OBJS)
-       $(AR) crv $@ $(OBJS)
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):        $(obj).depend $(OBJS)
+       $(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
 
-.depend:       Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
-               $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
 
-sinclude .depend
+sinclude $(obj).depend
 
 #########################################################################
index 75577fcbec75b772d64609ef0b61951d51054bb6..bc55fc7b29a1bf316a2d8fa7005f77afd88a8f60 100644 (file)
@@ -25,7 +25,7 @@
 # MarelV38B board
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 TEXT_BASE = 0xFF000000
 
index 44f6b9f6ea89244feeb557d89748a08c35faed05..0d67132363cffd3b4f3345d92da55149e36fb283 100644 (file)
@@ -433,17 +433,6 @@ static int fit_check_kernel (const void *fit, int os_noffset, int verify)
        }
        show_boot_progress (105);
 
-#ifdef CONFIG_LOGBUFFER
-#ifndef CONFIG_ALT_LB_ADDR
-       kbd=gd->bd;
-       /* Prevent initrd from overwriting logbuffer */
-       if (initrd_high < (kbd->bi_memsize-LOGBUFF_LEN-LOGBUFF_OVERHEAD))
-               initrd_high = kbd->bi_memsize-LOGBUFF_LEN-LOGBUFF_OVERHEAD;
-       debug ("## Logbuffer at 0x%08lX ", kbd->bi_memsize-LOGBUFF_LEN);
-#else
-       debug ("## Logbuffer at 0x%08lX ", CONFIG_ALT_LB_ADDR);
-#endif
-#endif
        if (!fit_image_check_target_arch (fit, os_noffset)) {
                puts ("Unsupported Architecture\n");
                show_boot_progress (-105);
index ead7e10d66b5554eb9338136778bb81523bd00f8..cac99d5fe765e866c4df2af085b21a4db6977530 100644 (file)
 # include <status_led.h>
 #endif
 
-#ifndef __PPC__
-#include <asm/io.h>
-#endif
-
 #ifdef CONFIG_IDE_8xx_DIRECT
 DECLARE_GLOBAL_DATA_PTR;
 #endif
index dc05f68bfeb27b1efdfc6b832dacbcb0f1b763ed..9c5d1fcb9059e40b0f01ed29e88d2824e9fa8b3a 100644 (file)
@@ -68,16 +68,6 @@ DECLARE_GLOBAL_DATA_PTR;
 /************************************************************************
 ************************************************************************/
 
-/* Function that returns a pointer to a value from the environment */
-/* (Only memory version supported / needed). */
-extern uchar *env_get_addr(int);
-
-/* Function that updates CRC of the enironment */
-extern void env_crc_update (void);
-
-/************************************************************************
-************************************************************************/
-
 /*
  * Table with supported baudrates (defined in config_xyz.h)
  */
index f366fdbeb2345f58d4d8b88a6a74e28273f74789..a49481244e2f7ae3c64c1829201161edee3436a1 100644 (file)
@@ -50,6 +50,7 @@ extern void env_relocate_spec (void);
 extern uchar env_get_char_spec(int);
 
 static uchar env_get_char_init (int index);
+uchar (*env_get_char)(int) = env_get_char_init;
 
 /************************************************************************
  * Default settings to be used when no valid environment is found
@@ -181,19 +182,6 @@ uchar env_get_char_memory (int index)
 }
 #endif
 
-uchar env_get_char (int index)
-{
-       uchar c;
-
-       /* if relocated to RAM */
-       if (gd->flags & GD_FLG_RELOC)
-               c = env_get_char_memory(index);
-       else
-               c = env_get_char_init(index);
-
-       return (c);
-}
-
 uchar *env_get_addr (int index)
 {
        if (gd->env_valid) {
@@ -227,6 +215,11 @@ void env_relocate (void)
        DEBUGF ("%s[%d] malloced ENV at %p\n", __FUNCTION__,__LINE__,env_ptr);
 #endif
 
+       /*
+        * After relocation to RAM, we can always use the "memory" functions
+        */
+       env_get_char = env_get_char_memory;
+
        if (gd->env_valid == 0) {
 #if defined(CONFIG_GTH)        || defined(CFG_ENV_IS_NOWHERE)  /* Environment not changable */
                puts ("Using default environment\n\n");
index fae87ca33fe00fa5b28b0ffecb7809f1e1dfa7a9..9e1a20194d7392c38ef05d38b0ac11c8b5339d13 100644 (file)
@@ -38,9 +38,6 @@ env_t *env_ptr = NULL;
 
 char * env_name_spec = "EEPROM";
 
-extern uchar env_get_char_memory (int index);
-
-
 uchar env_get_char_spec (int index)
 {
        uchar c;
index bfc8d02f85ba67c2262687c384314b64e4a51ca4..fa77719123db8454b5d0a33567d204e1fa4ec40c 100644 (file)
@@ -63,8 +63,6 @@ char * env_name_spec = "NVRAM";
 extern uchar default_environment[];
 extern int default_environment_size;
 
-extern uchar env_get_char_memory (int index);
-
 #ifdef CONFIG_AMIGAONEG3SE
 uchar env_get_char_spec (int index)
 {
index 0b6c2b7334760df07b7118e7bebc433d4b9e17a9..b951178a1df634a4cec274f9eb24acb3c18a8950 100644 (file)
@@ -396,7 +396,6 @@ void *ft_get_prop(void *bphp, const char *propname, int *szp)
 
 /********************************************************************/
 
-
 void ft_setup(void *blob, bd_t * bd, ulong initrd_start, ulong initrd_end)
 {
        u32 *p;
index 4a024d4dfb34552c0c46689b04cbece9fd3aefd2..67e594df6939056801e2003d710f87c044277eda 100644 (file)
@@ -23,7 +23,6 @@
  * MA 02111-1307 USA
  */
 
-
 #ifndef USE_HOSTCC
 #include <common.h>
 #include <watchdog.h>
 #include <dataflash.h>
 #endif
 
-#ifdef CONFIG_LOGBUFFER
-#include <logbuff.h>
-#endif
-
 #if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE)
 #include <rtc.h>
 #endif
@@ -93,6 +88,7 @@ static table_entry_t uimage_arch[] = {
        {       IH_ARCH_MIPS64,         "mips64",       "MIPS 64 Bit",  },
        {       IH_ARCH_NIOS,           "nios",         "NIOS",         },
        {       IH_ARCH_NIOS2,          "nios2",        "NIOS II",      },
+       {       IH_ARCH_PPC,            "powerpc",      "PowerPC",      },
        {       IH_ARCH_PPC,            "ppc",          "PowerPC",      },
        {       IH_ARCH_S390,           "s390",         "IBM S390",     },
        {       IH_ARCH_SH,             "sh",           "SuperH",       },
@@ -241,7 +237,7 @@ void image_multi_getimg (image_header_t *hdr, ulong idx,
 {
        int i;
        uint32_t *size;
-       ulong offset, tail, count, img_data;
+       ulong offset, count, img_data;
 
        /* get number of component */
        count = image_multi_count (hdr);
@@ -257,19 +253,15 @@ void image_multi_getimg (image_header_t *hdr, ulong idx,
        if (idx < count) {
                *len = uimage_to_cpu (size[idx]);
                offset = 0;
-               tail = 0;
 
                /* go over all indices preceding requested component idx */
                for (i = 0; i < idx; i++) {
-                       /* add up i-th component size */
-                       offset += uimage_to_cpu (size[i]);
-
-                       /* add up alignment for i-th component */
-                       tail += (4 - uimage_to_cpu (size[i]) % 4);
+                       /* add up i-th component size, rounding up to 4 bytes */
+                       offset += (uimage_to_cpu (size[i]) + 3) & ~3 ;
                }
 
                /* calculate idx-th component data address */
-               *data = img_data + offset + tail;
+               *data = img_data + offset;
        } else {
                *len = 0;
                *data = 0;
index 21e7afab61fde2db49a1de071baafec77bc6f6c3..a17b60b3aa92cecc9b4bbcaf78c83a84af8d7a8f 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <post.h>
 
-#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST)
+#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST) || defined(CONFIG_CMDLINE_EDITING)
 DECLARE_GLOBAL_DATA_PTR;
 #endif
 
@@ -67,11 +67,9 @@ static int abortboot(int);
 
 char        console_buffer[CFG_CBSIZE];                /* console I/O buffer   */
 
-#ifndef CONFIG_CMDLINE_EDITING
 static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen);
 static char erase_seq[] = "\b \b";             /* erase sequence       */
 static char   tab_seq[] = "        ";          /* used to expand TABs  */
-#endif /* CONFIG_CMDLINE_EDITING */
 
 #ifdef CONFIG_BOOT_RETRY_TIME
 static uint64_t endtime = 0;  /* must be set, default is instant timeout */
@@ -947,11 +945,26 @@ int readline_into_buffer (const char *const prompt, char * buffer)
                initted = 1;
        }
 
-       puts (prompt);
 
-       rc = cread_line(prompt, p, &len);
-       return rc < 0 ? rc : len;
-#else
+       /*
+        * History uses a global array which is not
+        * writable until after relocation to RAM.
+        * Revert to non-history version if still
+        * running from flash.
+        */
+       if (gd->flags & GD_FLG_RELOC) {
+               if (!initted) {
+                       hist_init();
+                       initted = 1;
+               }
+
+               puts (prompt);
+
+               rc = cread_line(prompt, p, &len);
+               return rc < 0 ? rc : len;
+
+       } else {
+#endif /* CONFIG_CMDLINE_EDITING */
        char * p_buf = p;
        int     n = 0;                          /* buffer index         */
        int     plen = 0;                       /* prompt length        */
@@ -1047,12 +1060,13 @@ int readline_into_buffer (const char *const prompt, char * buffer)
                        }
                }
        }
-#endif /* CONFIG_CMDLINE_EDITING */
+#ifdef CONFIG_CMDLINE_EDITING
+       }
+#endif
 }
 
 /****************************************************************************/
 
-#ifndef CONFIG_CMDLINE_EDITING
 static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen)
 {
        char *s;
@@ -1082,7 +1096,6 @@ static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen)
        (*np)--;
        return (p);
 }
-#endif /* CONFIG_CMDLINE_EDITING */
 
 /****************************************************************************/
 
index 4df01eabe513163eeb80475f9495b72ea504ac80..2fa5254eb4ecc2c82b5446b33ee730c16c06ebad 100644 (file)
@@ -1088,7 +1088,7 @@ int usb_hub_configure(struct usb_device *dev)
        /* silence compiler warning if USB_BUFSIZ is > 256 [= sizeof(char)] */
        i = descriptor->bLength;
        if (i > USB_BUFSIZ) {
-               USB_HUB_PRINTF("usb_hub_configure: failed to get hub descriptor - too long: %d\N",
+               USB_HUB_PRINTF("usb_hub_configure: failed to get hub descriptor - too long: %d\n",
                        descriptor->bLength);
                return -1;
        }
index a793d799d1b755cf25f62dfacd5b5c50d52c548b..3a745cbe0312fbd385d27411b2a67c9f197df5b6 100644 (file)
@@ -329,14 +329,28 @@ _GLOBAL(dcache_status)
        blr
 
 /*
- * Invalidate L2 cache using L2I and polling L2IP
+ * Invalidate L2 cache using L2I and polling L2IP or L2I
  */
 _GLOBAL(l2cache_invalidate)
        sync
+       mfspr r3, l2cr
        oris    r3, r3, L2CR_L2I@h
        sync
        mtspr   l2cr, r3
        sync
+       mfspr r3, PVR
+       sync
+       rlwinm r3, r3, 16,16,31
+       cmpli 0,r3,0x8000  /* 7451, 7441 */
+       beq 0,inv_7450
+       cmpli 0,r3,0x8001  /* 7455, 7445 */
+       beq 0,inv_7450
+       cmpli 0,r3,0x8002  /* 7457, 7447 */
+       beq 0,inv_7450
+       cmpli 0,r3,0x8003  /* 7447A */
+       beq 0,inv_7450
+       cmpli 0,r3,0x8004  /* 7448 */
+       beq 0,inv_7450
 invl2:
        mfspr   r3, l2cr
        andi.   r3, r3, L2CR_L2IP
@@ -348,6 +362,11 @@ invl2:
        mtspr   l2cr, r3
        sync
        blr
+inv_7450:
+       mfspr   r3, l2cr
+       andis. r3, r3, L2CR_L2I@h
+       bne inv_7450
+       blr
 
 /*
  * Enable L2 cache
index 16b2cf1364d4f3c5da65cf74eb0d52be14a7de8b..29c08c105f1e1d601b3f1ec0002cb914c3038324 100644 (file)
@@ -39,7 +39,7 @@ static u32 mx31_decode_pll(u32 reg, u32 infreq)
                (mfd * pd)) << 10;
 }
 
-u32 mx31_get_mpl_dpdgck_clk(void)
+static u32 mx31_get_mpl_dpdgck_clk(void)
 {
        u32 infreq;
 
@@ -51,7 +51,7 @@ u32 mx31_get_mpl_dpdgck_clk(void)
        return mx31_decode_pll(__REG(CCM_MPCTL), infreq);
 }
 
-u32 mx31_get_mcu_main_clk(void)
+static u32 mx31_get_mcu_main_clk(void)
 {
        /* For now we assume mpl_dpdgck_clk == mcu_main_clk
         * which should be correct for most boards
index ef5d5bf71b139e50e8b80d1989b5eb725f3f5ece..421ebb4373f615d5f28920739569eb408874e454 100644 (file)
@@ -69,4 +69,4 @@ int usb_cpu_init_fail (void)
 }
 
 # endif /* defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410) */
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
+#endif /* defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT) */
index 203abc28e149ef1950e55308a23a0326bd22925f..44cde1a9c31d4fe19da4aca8899d1e86c6d3bc3f 100644 (file)
@@ -1,6 +1,6 @@
 #
 # (C) Copyright 2000-2008
-# Wolfgang Denk, DENX Software Engineering, wd <at> denx.de.
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 #
 # See file CREDITS for list of people who contributed to this
 # project.
index e4f56012aa16241270170dae659e4288d9eadc14..7e11fe4d8eb8986222c9f560b0716345d2f0c44b 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
index 40a3f6aaef6999c3b157ee5d50c48ec4958f7437..ec6ad5da18c1539bf1ea8353e35cc1b73750779f 100644 (file)
@@ -2,7 +2,7 @@
  * AT91CAP9/SAM9 setup stuff
  *
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
index 4e794662865293cb4595669063bf005d10e47608..c79ec7e7ae145ab794a17e5dc330541879732679 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
index d678897dc71a19434ae4bd0fed63359665147e70..441349df3af29f2b3cca0adb4c04843699107e66 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2006
- * DENX Software Engineering <mk <at> denx.de>
+ * DENX Software Engineering <mk@denx.de>
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index 1a54dd10e336197a09ebf74ccc2ef745a54f451d..51a27aa21d2ce23c32a908f8a90ffb9347f09836 100644 (file)
@@ -55,7 +55,7 @@ early_board_init_ret:
        /* so we try to indicate progress */
        movw    $0x01, %ax
        movl    $.progress0, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress0:
 
        /* size memory */
@@ -74,7 +74,7 @@ mem_init_ret:
        /* indicate (lack of) progress */
        movw    $0x81, %ax
        movl    $.progress0a, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress0a:
        jmp     die
 mem_ok:
@@ -82,7 +82,7 @@ mem_ok:
        /* indicate progress */
        movw    $0x02, %ax
        movl    $.progress1, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress1:
 
        /* create a stack after the bss */
@@ -104,7 +104,7 @@ no_stack:
        /* indicate (lack of) progress */
        movw    $0x82, %ax
        movl    $.progress1a, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress1a:
        jmp die
 
@@ -113,7 +113,7 @@ stack_ok:
        /* indicate progress */
        movw    $0x03, %ax
        movl    $.progress2, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress2:
 
        /* copy data section to ram, size must be 4-byte aligned */
@@ -136,7 +136,7 @@ data_fail:
        /* indicate (lack of) progress */
        movw    $0x83, %ax
        movl    $.progress2a, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress2a:
        jmp     die
 
@@ -145,7 +145,7 @@ data_ok:
        /* indicate progress */
        movw    $0x04, %ax
        movl    $.progress3, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress3:
 
        /* clear bss section in ram, size must be 4-byte aligned  */
@@ -168,7 +168,7 @@ bss_fail:
        /* indicate (lack of) progress */
        movw    $0x84, %ax
        movl    $.progress3a, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress3a:
        jmp     die
 
@@ -180,7 +180,7 @@ bss_ok:
        /* indicate progress */
        movw    $0x05, %ax
        movl    $.progress4, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress4:
 
        call    start_i386boot  /* Enter, U-boot! */
@@ -188,7 +188,7 @@ bss_ok:
        /* indicate (lack of) progress */
        movw    $0x85, %ax
        movl    $.progress4a, %ebp
-       jmp     __show_boot_progress
+       jmp     show_boot_progress
 .progress4a:
 
 die:   hlt
index 428d251bf126022d56bf22477662cfdc67321094..1b0efc34a7c3da52d8feb8fac2f90695e59cedfd 100644 (file)
@@ -240,14 +240,16 @@ NESTED(mips_cache_reset, 0, ra)
         */
        move    a1, t2
        move    a2, t4
-       bal     mips_init_icache
+       PTR_LA  t7, mips_init_icache
+       jalr    t7
 
        /*
         * then initialize D-cache.
         */
        move    a1, t3
        move    a2, t5
-       bal     mips_init_dcache
+       PTR_LA  t7, mips_init_dcache
+       jalr    t7
 
        jr      RA
        END(mips_cache_reset)
index f316b3ec13fe59ea4012714d58617b82e12f7d66..2e4ea0239f1aa08e8d50a81d09cbe185a7b09b89 100644 (file)
@@ -338,7 +338,7 @@ _GLOBAL(l2cache_invalidate)
 
 invl2:
        mfspr   r3, l2cr
-       andi  r3, r3, L2CR_L2I@h
+       andis.  r3, r3, L2CR_L2I@h
        bne     invl2
        blr
 
index 54cc25679754cea6683e05b6704fe373563c7587..39f439df9881dabc3d85196bc9892cf87c919009 100644 (file)
@@ -346,6 +346,26 @@ int checkcpu (void)
                strcpy(addstr, "No Security support");
                break;
 
+       case PVR_405EX1_RC:
+               puts("EX Rev. C");
+               strcpy(addstr, "Security support");
+               break;
+
+       case PVR_405EX2_RC:
+               puts("EX Rev. C");
+               strcpy(addstr, "No Security support");
+               break;
+
+       case PVR_405EXR1_RC:
+               puts("EXr Rev. C");
+               strcpy(addstr, "Security support");
+               break;
+
+       case PVR_405EXR2_RC:
+               puts("EXr Rev. C");
+               strcpy(addstr, "No Security support");
+               break;
+
 #if defined(CONFIG_440)
        case PVR_440GP_RB:
                puts("GP Rev. B");
index 3c71208a12bb0e05cbb9e3e112bc83e114ceaa69..316e2547399c002c2bdc0c765ee5ae53d3f2fea6 100644 (file)
@@ -109,44 +109,45 @@ void dev_print (block_dev_desc_t *dev_desc)
        lbaint_t lba512;
 #endif
 
-       if (dev_desc->type==DEV_TYPE_UNKNOWN) {
-               puts ("not available\n");
-               return;
-       }
-       if (dev_desc->if_type==IF_TYPE_SCSI)  {
-               printf ("(%d:%d) ", dev_desc->target,dev_desc->lun);
-       }
-       if (dev_desc->if_type==IF_TYPE_IDE) {
-               printf ("Model: %s Firm: %s Ser#: %s\n",
+       switch (dev_desc->type) {
+       case IF_TYPE_SCSI:
+               printf ("(%d:%d) Vendor: %s Prod.: %s Rev: %s\n",
+                       dev_desc->target,dev_desc->lun,
                        dev_desc->vendor,
-                       dev_desc->revision,
-                       dev_desc->product);
-       }
-       if (dev_desc->if_type==IF_TYPE_SATA) {
+                       dev_desc->product,
+                       dev_desc->revision);
+               break;
+       case IF_TYPE_IDE:
+       case IF_TYPE_SATA:
                printf ("Model: %s Firm: %s Ser#: %s\n",
                        dev_desc->vendor,
                        dev_desc->revision,
                        dev_desc->product);
-       } else {
-               printf ("Vendor: %s Prod.: %s Rev: %s\n",
-                       dev_desc->vendor,
-                       dev_desc->product,
-                       dev_desc->revision);
+               break;
+       case DEV_TYPE_UNKNOWN:
+       default:
+               puts ("not available\n");
+               return;
        }
        puts ("            Type: ");
        if (dev_desc->removable)
                puts ("Removable ");
        switch (dev_desc->type & 0x1F) {
-               case DEV_TYPE_HARDDISK: puts ("Hard Disk");
-                                       break;
-               case DEV_TYPE_CDROM:    puts ("CD ROM");
-                                       break;
-               case DEV_TYPE_OPDISK:   puts ("Optical Device");
-                                       break;
-               case DEV_TYPE_TAPE:     puts ("Tape");
-                                       break;
-               default:                printf ("# %02X #", dev_desc->type & 0x1F);
-                                       break;
+       case DEV_TYPE_HARDDISK:
+               puts ("Hard Disk");
+               break;
+       case DEV_TYPE_CDROM:
+               puts ("CD ROM");
+               break;
+       case DEV_TYPE_OPDISK:
+               puts ("Optical Device");
+               break;
+       case DEV_TYPE_TAPE:
+               puts ("Tape");
+               break;
+       default:
+               printf ("# %02X #", dev_desc->type & 0x1F);
+               break;
        }
        puts ("\n");
        if ((dev_desc->lba * dev_desc->blksz)>0L) {
@@ -281,20 +282,27 @@ static void print_part_header (const char *type, block_dev_desc_t * dev_desc)
 {
        puts ("\nPartition Map for ");
        switch (dev_desc->if_type) {
-               case IF_TYPE_IDE:       puts ("IDE");
-                                       break;
-               case IF_TYPE_SATA:      puts ("SATA");
-                                       break;
-               case IF_TYPE_SCSI:      puts ("SCSI");
-                                       break;
-               case IF_TYPE_ATAPI:     puts ("ATAPI");
-                                       break;
-               case IF_TYPE_USB:       puts ("USB");
-                                       break;
-               case IF_TYPE_DOC:       puts ("DOC");
-                                       break;
-               default:                puts ("UNKNOWN");
-                                       break;
+       case IF_TYPE_IDE:
+               puts ("IDE");
+               break;
+       case IF_TYPE_SATA:
+               puts ("SATA");
+               break;
+       case IF_TYPE_SCSI:
+               puts ("SCSI");
+               break;
+       case IF_TYPE_ATAPI:
+               puts ("ATAPI");
+               break;
+       case IF_TYPE_USB:
+               puts ("USB");
+               break;
+       case IF_TYPE_DOC:
+               puts ("DOC");
+               break;
+       default:
+               puts ("UNKNOWN");
+               break;
        }
        printf (" device %d  --   Partition Type: %s\n\n",
                        dev_desc->dev, type);
index a1c1d8c4447abac7bb5590aa3065504e87bacf43..1e9c102644b2a671bf6be70e5d13b5d6e80909ae 100644 (file)
@@ -9,7 +9,7 @@ The PPC440EP(x)/GR(x) cpu's can boot directly from NAND FLASH,
 completely without NOR FLASH. This can be done by using the NAND
 boot feature of the 440 NAND flash controller (NDFC).
 
-Here a short desciption of the different boot stages:
+Here a short description of the different boot stages:
 
 a) IPL (Initial Program Loader, integrated inside CPU)
 ------------------------------------------------------
index d22c8895da68a88f5470aa4080484fc6ad65817b..c17dcf43717e0dec007e1e60264465cfb82322a0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * SMSC LAN9[12]1[567] Network driver
  *
- * (c) 2007 Pengutronix, Sascha Hauer <s.hauer <at> pengutronix.de>
+ * (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index 7944b6684aeee601b2ec7bd380728988ac469c9e..b820d5e8536f0a30c2210a60ff889a83a2fcb662 100644 (file)
@@ -221,7 +221,7 @@ pci_dev_t pci_find_device(unsigned int vendor, unsigned int device, int index)
  */
 
 unsigned long pci_hose_phys_to_bus (struct pci_controller *hose,
-                                   unsigned long phys_addr,
+                                   phys_addr_t phys_addr,
                                    unsigned long flags)
 {
        struct pci_region *res;
@@ -253,9 +253,9 @@ Done:
        return 0;
 }
 
-unsigned long pci_hose_bus_to_phys(struct pci_controller* hose,
-                                  unsigned long bus_addr,
-                                  unsigned long flags)
+phys_addr_t pci_hose_bus_to_phys(struct pci_controller* hose,
+                                unsigned long bus_addr,
+                                unsigned long flags)
 {
        struct pci_region *res;
        int i;
@@ -425,9 +425,6 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
             dev <  PCI_BDF(bus,PCI_MAX_PCI_DEVICES-1,PCI_MAX_PCI_FUNCTIONS-1);
             dev += PCI_BDF(0,0,1))
        {
-
-       /* Bus 0 is not necessarily PCI bridge. */
-#if defined(CONFIG_PCI_SKIP_HOST_BRIDGE)
                /* Skip our host bridge */
                if ( dev == PCI_BDF(hose->first_busno,0,0) ) {
 #if defined(CONFIG_PCI_CONFIG_HOST_BRIDGE)              /* don't skip host bridge */
@@ -437,11 +434,10 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
                        if (getenv("pciconfighost") == NULL) {
                                continue; /* Skip our host bridge */
                        }
-#else /* CONFIG_PCI_CONFIG_HOST_BRIDGE */
+#else
                        continue; /* Skip our host bridge */
-#endif /* CONFIG_PCI_CONFIG_HOST_BRIDGE */
+#endif
                }
-#endif /* CONFIG_PCI_SKIP_HOST_BRIDGE */
 
                if (PCI_FUNC(dev) && !found_multi)
                        continue;
@@ -477,11 +473,8 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
                                hose->fixup_irq(hose, dev);
 
 #ifdef CONFIG_PCI_SCAN_SHOW
-#if defined(CONFIG_PCI_SKIP_HOST_BRIDGE)
                        /* Skip our host bridge */
-                       if ( dev != PCI_BDF(hose->first_busno,0,0) )
-#endif
-                       {
+                       if ( dev != PCI_BDF(hose->first_busno,0,0) ) {
                            unsigned char int_line;
 
                            pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_LINE,
index bba1ab8510366de0acfd430bb8e94feb091f7d80..53a485d0d1a600ddf65f342576b208e000abd49b 100644 (file)
@@ -25,6 +25,7 @@ include $(TOPDIR)/config.mk
 
 LIB    := $(obj)libpcmcia.a
 
+COBJS-$(CONFIG_I82365) += i82365.o
 COBJS-y += mpc8xx_pcmcia.o
 COBJS-y += pxa_pcmcia.o
 COBJS-y += rpx_pcmcia.o
index a40fcf41c95b431456c1018f4db33f144f8df376..1e2431e49707c50f685b62a76e694d3e3eedc6fc 100644 (file)
@@ -31,8 +31,6 @@
 
 #include <common.h>
 
-#ifdef CONFIG_I82365
-
 #include <command.h>
 #include <pci.h>
 #include <pcmcia.h>
@@ -1010,5 +1008,3 @@ static void i82365_dump_regions (pci_dev_t dev)
                ide[4], ide[5], ide[6], ide[7]);
 }
 #endif /* DEBUG */
-
-#endif /* CONFIG_I82365 */
index 059b09641a7bb4999be8241fb4198c6f199b69c2..806425ff7834eecc8998af742cdbf5bd80dead6e 100644 (file)
@@ -1,5 +1,9 @@
+/82559_eeprom
 /hello_world
 /interrupt
+/mem_to_mem_idma2intr
+/test_burst
+/timer
 /sched
 /smc91111_eeprom
 *.bin
index 03a533ced4c57e91869bbdeb8eacf3602e62a974..ef7dd5fc8a29443faa1e2e3d7b4d1e1612752b0c 100644 (file)
@@ -1,7 +1,7 @@
 /autoconf.mk*
 /asm
-/asm-blackfin/arch
-/asm-ppc/arch
+/asm-*/arch
+/asm-*/proc
 /bmp_logo.h
 /config.h
 /config.mk
index 84c3866d309f84ce818042a6b0ecd3736d40f0ff..f6ce1f924ef0a4a83503a40ac25e9f9a42c166f1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/at91_pio.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91_pio.h]
  *
  * Copyright (C) 2005 Ivan Kokshaysky
  * Copyright (C) SAN People
index 5026325a5ae419b13cad93db555f2b1f79a74983..94dd242a5fbe37ee83c6703c062c33fe558a1f6d 100644 (file)
@@ -1,5 +1,8 @@
 /*
- * include/asm-arm/arch-at91/at91_pit.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91_pit.h]
+ *
+ * Copyright (C) 2007 Andrew Victor
+ * Copyright (C) 2007 Atmel Corporation.
  *
  * Periodic Interval Timer (PIT) - System peripherals regsters.
  * Based on AT91SAM9261 datasheet revision D.
index 52cd8e5dabc996823368b60797e4a43d6764ec1d..103be8699983fc4720f0bf9513f194e929446f62 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/at91_pmc.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91_pmc.h]
  *
  * Copyright (C) 2005 Ivan Kokshaysky
  * Copyright (C) SAN People
index fb8d1618a231a40b2d23387344b53cd09a5828fd..e49caef92189c0e45ff12964c0d8f849fa4dafa9 100644 (file)
@@ -1,5 +1,8 @@
 /*
- * include/asm-arm/arch-at91/at91_rstc.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91_rstc.h]
+ *
+ * Copyright (C) 2007 Andrew Victor
+ * Copyright (C) 2007 Atmel Corporation.
  *
  * Reset Controller (RSTC) - System peripherals regsters.
  * Based on AT91SAM9261 datasheet revision D.
index aaad92621c8ddb0e3422dc21b23c2a2a8207f250..30643c60920b068bce6816fd77545f34a2fb2999 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/at91_spi.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91_spi.h]
  *
  * Copyright (C) 2005 Ivan Kokshaysky
  * Copyright (C) SAN People
index e16909c641da62928453a95fc327f298df8b4832..d1b33a069a9c33de4ad4e053eb2811ffc3ef673a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/at91cap9.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91cap9.h]
  *
  *  Copyright (C) 2007 Stelian Pop <stelian.pop@leadtechdesign.com>
  *  Copyright (C) 2007 Lead Tech Design <www.leadtechdesign.com>
index a641686b6c3d3b492a4df2905d5bbc3ebc7cde51..22b7e9b8f4bd354d205dafd70ab627a19764c526 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/at91cap9_matrix.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91cap9_matrix.h]
  *
  *  Copyright (C) 2007 Stelian Pop <stelian.pop@leadtechdesign.com>
  *  Copyright (C) 2007 Lead Tech Design <www.leadtechdesign.com>
index 1bf45989b5f4cbe218befc1644e6f3fddd54394d..920a7f3c9ffeb59b3edcb080b9f41e581ba5fa78 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/at91sam9260.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91sam9260.h]
  *
  * (C) 2006 Andrew Victor
  *
index a8e9fec6c7352ad5ff7441d3f0aa315df42ae689..f8b023d9327c3b1ee5b589bb28850101ab03f32f 100644 (file)
@@ -1,5 +1,7 @@
 /*
- * include/asm-arm/arch-at91/at91sam9260_matrix.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91sam9260_matrix.h]
+ *
+ * Copyright (C) 2007 Atmel Corporation.
  *
  * Memory Controllers (MATRIX, EBI) - System peripherals registers.
  * Based on AT91SAM9260 datasheet revision B.
diff --git a/include/asm-arm/arch-at91sam9/at91sam926x_mc.h b/include/asm-arm/arch-at91sam9/at91sam926x_mc.h
deleted file mode 100644 (file)
index 041138f..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * include/asm-arm/arch-at91/at91sam926x_mc.h
- *
- * Memory Controllers (SMC, SDRAMC) - System peripherals registers.
- * Based on AT91SAM9261 datasheet revision D.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- */
-
-#ifndef AT91SAM926x_MC_H
-#define AT91SAM926x_MC_H
-
-/* SDRAM Controller (SDRAMC) registers */
-#define AT91_SDRAMC_MR         (AT91_SDRAMC + 0x00)    /* SDRAM Controller Mode Register */
-#define                AT91_SDRAMC_MODE        (0xf << 0)              /* Command Mode */
-#define                        AT91_SDRAMC_MODE_NORMAL         0
-#define                        AT91_SDRAMC_MODE_NOP            1
-#define                        AT91_SDRAMC_MODE_PRECHARGE      2
-#define                        AT91_SDRAMC_MODE_LMR            3
-#define                        AT91_SDRAMC_MODE_REFRESH        4
-#define                        AT91_SDRAMC_MODE_EXT_LMR        5
-#define                        AT91_SDRAMC_MODE_DEEP           6
-
-#define AT91_SDRAMC_TR         (AT91_SDRAMC + 0x04)    /* SDRAM Controller Refresh Timer Register */
-#define                AT91_SDRAMC_COUNT       (0xfff << 0)            /* Refresh Timer Counter */
-
-#define AT91_SDRAMC_CR         (AT91_SDRAMC + 0x08)    /* SDRAM Controller Configuration Register */
-#define                AT91_SDRAMC_NC          (3 << 0)                /* Number of Column Bits */
-#define                        AT91_SDRAMC_NC_8        (0 << 0)
-#define                        AT91_SDRAMC_NC_9        (1 << 0)
-#define                        AT91_SDRAMC_NC_10       (2 << 0)
-#define                        AT91_SDRAMC_NC_11       (3 << 0)
-#define                AT91_SDRAMC_NR          (3 << 2)                /* Number of Row Bits */
-#define                        AT91_SDRAMC_NR_11       (0 << 2)
-#define                        AT91_SDRAMC_NR_12       (1 << 2)
-#define                        AT91_SDRAMC_NR_13       (2 << 2)
-#define                AT91_SDRAMC_NB          (1 << 4)                /* Number of Banks */
-#define                        AT91_SDRAMC_NB_2        (0 << 4)
-#define                        AT91_SDRAMC_NB_4        (1 << 4)
-#define                AT91_SDRAMC_CAS         (3 << 5)                /* CAS Latency */
-#define                        AT91_SDRAMC_CAS_1       (1 << 5)
-#define                        AT91_SDRAMC_CAS_2       (2 << 5)
-#define                        AT91_SDRAMC_CAS_3       (3 << 5)
-#define                AT91_SDRAMC_DBW         (1 << 7)                /* Data Bus Width */
-#define                        AT91_SDRAMC_DBW_32      (0 << 7)
-#define                        AT91_SDRAMC_DBW_16      (1 << 7)
-#define                AT91_SDRAMC_TWR         (0xf <<  8)             /* Write Recovery Delay */
-#define                AT91_SDRAMC_TRC         (0xf << 12)             /* Row Cycle Delay */
-#define                AT91_SDRAMC_TRP         (0xf << 16)             /* Row Precharge Delay */
-#define                AT91_SDRAMC_TRCD        (0xf << 20)             /* Row to Column Delay */
-#define                AT91_SDRAMC_TRAS        (0xf << 24)             /* Active to Precharge Delay */
-#define                AT91_SDRAMC_TXSR        (0xf << 28)             /* Exit Self Refresh to Active Delay */
-
-#define AT91_SDRAMC_LPR                (AT91_SDRAMC + 0x10)    /* SDRAM Controller Low Power Register */
-#define                AT91_SDRAMC_LPCB                (3 << 0)        /* Low-power Configurations */
-#define                        AT91_SDRAMC_LPCB_DISABLE                0
-#define                        AT91_SDRAMC_LPCB_SELF_REFRESH           1
-#define                        AT91_SDRAMC_LPCB_POWER_DOWN             2
-#define                        AT91_SDRAMC_LPCB_DEEP_POWER_DOWN        3
-#define                AT91_SDRAMC_PASR                (7 << 4)        /* Partial Array Self Refresh */
-#define                AT91_SDRAMC_TCSR                (3 << 8)        /* Temperature Compensated Self Refresh */
-#define                AT91_SDRAMC_DS                  (3 << 10)       /* Drive Strenght */
-#define                AT91_SDRAMC_TIMEOUT             (3 << 12)       /* Time to define when Low Power Mode is enabled */
-#define                        AT91_SDRAMC_TIMEOUT_0_CLK_CYCLES        (0 << 12)
-#define                        AT91_SDRAMC_TIMEOUT_64_CLK_CYCLES       (1 << 12)
-#define                        AT91_SDRAMC_TIMEOUT_128_CLK_CYCLES      (2 << 12)
-
-#define AT91_SDRAMC_IER                (AT91_SDRAMC + 0x14)    /* SDRAM Controller Interrupt Enable Register */
-#define AT91_SDRAMC_IDR                (AT91_SDRAMC + 0x18)    /* SDRAM Controller Interrupt Disable Register */
-#define AT91_SDRAMC_IMR                (AT91_SDRAMC + 0x1C)    /* SDRAM Controller Interrupt Mask Register */
-#define AT91_SDRAMC_ISR                (AT91_SDRAMC + 0x20)    /* SDRAM Controller Interrupt Status Register */
-#define                AT91_SDRAMC_RES         (1 << 0)                /* Refresh Error Status */
-
-#define AT91_SDRAMC_MDR                (AT91_SDRAMC + 0x24)    /* SDRAM Memory Device Register */
-#define                AT91_SDRAMC_MD          (3 << 0)                /* Memory Device Type */
-#define                        AT91_SDRAMC_MD_SDRAM            0
-#define                        AT91_SDRAMC_MD_LOW_POWER_SDRAM  1
-
-/* Static Memory Controller (SMC) registers */
-#define AT91_SMC_SETUP(n)      (AT91_SMC + 0x00 + ((n)*0x10))  /* Setup Register for CS n */
-#define                AT91_SMC_NWESETUP       (0x3f << 0)                     /* NWE Setup Length */
-#define                        AT91_SMC_NWESETUP_(x)   ((x) << 0)
-#define                AT91_SMC_NCS_WRSETUP    (0x3f << 8)                     /* NCS Setup Length in Write Access */
-#define                        AT91_SMC_NCS_WRSETUP_(x)        ((x) << 8)
-#define                AT91_SMC_NRDSETUP       (0x3f << 16)                    /* NRD Setup Length */
-#define                        AT91_SMC_NRDSETUP_(x)   ((x) << 16)
-#define                AT91_SMC_NCS_RDSETUP    (0x3f << 24)                    /* NCS Setup Length in Read Access */
-#define                        AT91_SMC_NCS_RDSETUP_(x)        ((x) << 24)
-
-#define AT91_SMC_PULSE(n)      (AT91_SMC + 0x04 + ((n)*0x10))  /* Pulse Register for CS n */
-#define                AT91_SMC_NWEPULSE       (0x7f <<  0)                    /* NWE Pulse Length */
-#define                        AT91_SMC_NWEPULSE_(x)   ((x) << 0)
-#define                AT91_SMC_NCS_WRPULSE    (0x7f <<  8)                    /* NCS Pulse Length in Write Access */
-#define                        AT91_SMC_NCS_WRPULSE_(x)((x) << 8)
-#define                AT91_SMC_NRDPULSE       (0x7f << 16)                    /* NRD Pulse Length */
-#define                        AT91_SMC_NRDPULSE_(x)   ((x) << 16)
-#define                AT91_SMC_NCS_RDPULSE    (0x7f << 24)                    /* NCS Pulse Length in Read Access */
-#define                        AT91_SMC_NCS_RDPULSE_(x)((x) << 24)
-
-#define AT91_SMC_CYCLE(n)      (AT91_SMC + 0x08 + ((n)*0x10))  /* Cycle Register for CS n */
-#define                AT91_SMC_NWECYCLE       (0x1ff << 0 )                   /* Total Write Cycle Length */
-#define                        AT91_SMC_NWECYCLE_(x)   ((x) << 0)
-#define                AT91_SMC_NRDCYCLE       (0x1ff << 16)                   /* Total Read Cycle Length */
-#define                        AT91_SMC_NRDCYCLE_(x)   ((x) << 16)
-
-#define AT91_SMC_MODE(n)       (AT91_SMC + 0x0c + ((n)*0x10))  /* Mode Register for CS n */
-#define                AT91_SMC_READMODE       (1 <<  0)                       /* Read Mode */
-#define                AT91_SMC_WRITEMODE      (1 <<  1)                       /* Write Mode */
-#define                AT91_SMC_EXNWMODE       (3 <<  4)                       /* NWAIT Mode */
-#define                        AT91_SMC_EXNWMODE_DISABLE       (0 << 4)
-#define                        AT91_SMC_EXNWMODE_FROZEN        (2 << 4)
-#define                        AT91_SMC_EXNWMODE_READY         (3 << 4)
-#define                AT91_SMC_BAT            (1 <<  8)                       /* Byte Access Type */
-#define                        AT91_SMC_BAT_SELECT             (0 << 8)
-#define                        AT91_SMC_BAT_WRITE              (1 << 8)
-#define                AT91_SMC_DBW            (3 << 12)                       /* Data Bus Width */
-#define                        AT91_SMC_DBW_8                  (0 << 12)
-#define                        AT91_SMC_DBW_16                 (1 << 12)
-#define                        AT91_SMC_DBW_32                 (2 << 12)
-#define                AT91_SMC_TDF            (0xf << 16)                     /* Data Float Time. */
-#define                        AT91_SMC_TDF_(x)                ((x) << 16)
-#define                AT91_SMC_TDFMODE        (1 << 20)                       /* TDF Optimization - Enabled */
-#define                AT91_SMC_PMEN           (1 << 24)                       /* Page Mode Enabled */
-#define                AT91_SMC_PS             (3 << 28)                       /* Page Size */
-#define                        AT91_SMC_PS_4                   (0 << 28)
-#define                        AT91_SMC_PS_8                   (1 << 28)
-#define                        AT91_SMC_PS_16                  (2 << 28)
-#define                        AT91_SMC_PS_32                  (3 << 28)
-
-#if defined(AT91_SMC1)         /* The AT91SAM9263 has 2 Static Memory contollers */
-#define AT91_SMC1_SETUP(n)     (AT91_SMC1 + 0x00 + ((n)*0x10)) /* Setup Register for CS n */
-#define AT91_SMC1_PULSE(n)     (AT91_SMC1 + 0x04 + ((n)*0x10)) /* Pulse Register for CS n */
-#define AT91_SMC1_CYCLE(n)     (AT91_SMC1 + 0x08 + ((n)*0x10)) /* Cycle Register for CS n */
-#define AT91_SMC1_MODE(n)      (AT91_SMC1 + 0x0c + ((n)*0x10)) /* Mode Register for CS n */
-#endif
-
-#endif
diff --git a/include/asm-arm/arch-at91sam9/at91sam9_smc.h b/include/asm-arm/arch-at91sam9/at91sam9_smc.h
new file mode 100644 (file)
index 0000000..d64511b
--- /dev/null
@@ -0,0 +1,76 @@
+/*
+ * [origin: Linux kernel include/asm-arm/arch-at91/at91sam9_smc.h]
+ *
+ * Copyright (C) 2007 Andrew Victor
+ * Copyright (C) 2007 Atmel Corporation.
+ *
+ * Static Memory Controllers (SMC) - System peripherals registers.
+ * Based on AT91SAM9261 datasheet revision D.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#ifndef AT91SAM9_SMC_H
+#define AT91SAM9_SMC_H
+
+#define AT91_SMC_SETUP(n)      (AT91_SMC + 0x00 + ((n)*0x10))  /* Setup Register for CS n */
+#define                AT91_SMC_NWESETUP       (0x3f << 0)                     /* NWE Setup Length */
+#define                        AT91_SMC_NWESETUP_(x)   ((x) << 0)
+#define                AT91_SMC_NCS_WRSETUP    (0x3f << 8)                     /* NCS Setup Length in Write Access */
+#define                        AT91_SMC_NCS_WRSETUP_(x)        ((x) << 8)
+#define                AT91_SMC_NRDSETUP       (0x3f << 16)                    /* NRD Setup Length */
+#define                        AT91_SMC_NRDSETUP_(x)   ((x) << 16)
+#define                AT91_SMC_NCS_RDSETUP    (0x3f << 24)                    /* NCS Setup Length in Read Access */
+#define                        AT91_SMC_NCS_RDSETUP_(x)        ((x) << 24)
+
+#define AT91_SMC_PULSE(n)      (AT91_SMC + 0x04 + ((n)*0x10))  /* Pulse Register for CS n */
+#define                AT91_SMC_NWEPULSE       (0x7f <<  0)                    /* NWE Pulse Length */
+#define                        AT91_SMC_NWEPULSE_(x)   ((x) << 0)
+#define                AT91_SMC_NCS_WRPULSE    (0x7f <<  8)                    /* NCS Pulse Length in Write Access */
+#define                        AT91_SMC_NCS_WRPULSE_(x)((x) << 8)
+#define                AT91_SMC_NRDPULSE       (0x7f << 16)                    /* NRD Pulse Length */
+#define                        AT91_SMC_NRDPULSE_(x)   ((x) << 16)
+#define                AT91_SMC_NCS_RDPULSE    (0x7f << 24)                    /* NCS Pulse Length in Read Access */
+#define                        AT91_SMC_NCS_RDPULSE_(x)((x) << 24)
+
+#define AT91_SMC_CYCLE(n)      (AT91_SMC + 0x08 + ((n)*0x10))  /* Cycle Register for CS n */
+#define                AT91_SMC_NWECYCLE       (0x1ff << 0 )                   /* Total Write Cycle Length */
+#define                        AT91_SMC_NWECYCLE_(x)   ((x) << 0)
+#define                AT91_SMC_NRDCYCLE       (0x1ff << 16)                   /* Total Read Cycle Length */
+#define                        AT91_SMC_NRDCYCLE_(x)   ((x) << 16)
+
+#define AT91_SMC_MODE(n)       (AT91_SMC + 0x0c + ((n)*0x10))  /* Mode Register for CS n */
+#define                AT91_SMC_READMODE       (1 <<  0)                       /* Read Mode */
+#define                AT91_SMC_WRITEMODE      (1 <<  1)                       /* Write Mode */
+#define                AT91_SMC_EXNWMODE       (3 <<  4)                       /* NWAIT Mode */
+#define                        AT91_SMC_EXNWMODE_DISABLE       (0 << 4)
+#define                        AT91_SMC_EXNWMODE_FROZEN        (2 << 4)
+#define                        AT91_SMC_EXNWMODE_READY         (3 << 4)
+#define                AT91_SMC_BAT            (1 <<  8)                       /* Byte Access Type */
+#define                        AT91_SMC_BAT_SELECT             (0 << 8)
+#define                        AT91_SMC_BAT_WRITE              (1 << 8)
+#define                AT91_SMC_DBW            (3 << 12)                       /* Data Bus Width */
+#define                        AT91_SMC_DBW_8                  (0 << 12)
+#define                        AT91_SMC_DBW_16                 (1 << 12)
+#define                        AT91_SMC_DBW_32                 (2 << 12)
+#define                AT91_SMC_TDF            (0xf << 16)                     /* Data Float Time. */
+#define                        AT91_SMC_TDF_(x)                ((x) << 16)
+#define                AT91_SMC_TDFMODE        (1 << 20)                       /* TDF Optimization - Enabled */
+#define                AT91_SMC_PMEN           (1 << 24)                       /* Page Mode Enabled */
+#define                AT91_SMC_PS             (3 << 28)                       /* Page Size */
+#define                        AT91_SMC_PS_4                   (0 << 28)
+#define                        AT91_SMC_PS_8                   (1 << 28)
+#define                        AT91_SMC_PS_16                  (2 << 28)
+#define                        AT91_SMC_PS_32                  (3 << 28)
+
+#if defined(AT91_SMC1)         /* The AT91SAM9263 has 2 Static Memory contollers */
+#define AT91_SMC1_SETUP(n)     (AT91_SMC1 + 0x00 + ((n)*0x10)) /* Setup Register for CS n */
+#define AT91_SMC1_PULSE(n)     (AT91_SMC1 + 0x04 + ((n)*0x10)) /* Pulse Register for CS n */
+#define AT91_SMC1_CYCLE(n)     (AT91_SMC1 + 0x08 + ((n)*0x10)) /* Cycle Register for CS n */
+#define AT91_SMC1_MODE(n)      (AT91_SMC1 + 0x0c + ((n)*0x10)) /* Mode Register for CS n */
+#endif
+
+#endif
index 86da9a6e0992fad70c798623733e52da8f4270f9..f67b4356d9b70cc623a6da278c29fe152ba61bfb 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
index 2500eae2a4af1fde4ed2d7cac17e255254ea9a2f..c157e107e14f698ac10d0a237f72421b1ca33f6d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/gpio.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/gpio.h]
  *
  *  Copyright (C) 2005 HP Labs
  *
index 80b334f36e38991b07a8d31d2c11549fb9c8db2d..d2fe45388b3908b5b97334cd1531599437ff01ec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/hardware.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/hardware.h]
  *
  *  Copyright (C) 2003 SAN People
  *  Copyright (C) 2003 ATMEL
index be9e9abe5694b905cd52fa261c7d87883ad8189a..f09b2df0e311a08e3bdf64458cf4434ff3e7b2a9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-at91/io.h
+ * [origin: Linux kernel include/asm-arm/arch-at91/io.h]
  *
  *  Copyright (C) 2003 SAN People
  *
index da9882246177f1c0c7c62fb9743611cc931960b9..8015dad6a9c7769e908f68743e6e4755a7b7f805 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
index f89a401bbcf3f8b9d11d381fabd55b098fcb1d98..0552c27ce655d7facb6cdff93f0433c8c82dfaa8 100644 (file)
@@ -24,9 +24,7 @@
 #ifndef __ASM_ARCH_MX31_H
 #define __ASM_ARCH_MX31_H
 
-u32 mx31_get_mpl_dpdgck_clk(void);
-u32 mx31_get_mcu_main_clk(void);
-u32 mx31_get_ipg_clk(void);
-void mx31_gpio_mux(unsigned long mode);
+extern u32 mx31_get_ipg_clk(void);
+extern void mx31_gpio_mux(unsigned long mode);
 
 #endif /* __ASM_ARCH_MX31_H */
index 8054f62b0604b0fdec35ea92b17feab903e331cd..501ce0e6805aa0d531fec53260ef86209cda6618 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * See file CREDITS for list of people who contributed to this
index 00b7ec57e40968624b87287a8324cd619c8612c5..7cc28bfe3a25c3bc048e46b0aa933b257184de4b 100644 (file)
@@ -251,7 +251,7 @@ extern inline void out_be32(volatile unsigned __iomem *addr, int val)
 static inline void *
 map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
 {
-       return (void *)paddr;
+       return (void *)((unsigned long)paddr);
 }
 
 /*
index 4c049a5e932affad58e690261de1f3cdb17647a5..8bdfb9ddf3938269f211b6f0c8f5db3741857b16 100644 (file)
 #define PVR_405EP_RA   0x51210950
 #define PVR_405GPR_RB  0x50910951
 #define PVR_405EZ_RA   0x41511460
-#define PVR_405EXR1_RA 0x12911473 /* 405EXr rev A with Security */
-#define PVR_405EXR2_RA 0x12911471 /* 405EXr rev A without Security */
-#define PVR_405EX1_RA  0x12911477 /* 405EX rev A with Security */
-#define PVR_405EX2_RA  0x12911475 /* 405EX rev A without Security */
+#define PVR_405EXR1_RA 0x12911473 /* 405EXr rev A/B with Security */
+#define PVR_405EXR2_RA 0x12911471 /* 405EXr rev A/B without Security */
+#define PVR_405EX1_RA  0x12911477 /* 405EX rev A/B with Security */
+#define PVR_405EX2_RA  0x12911475 /* 405EX rev A/B without Security */
+#define PVR_405EXR1_RC 0x1291147B /* 405EXr rev C with Security */
+#define PVR_405EXR2_RC 0x12911479 /* 405EXr rev C without Security */
+#define PVR_405EX1_RC  0x1291147F /* 405EX rev C with Security */
+#define PVR_405EX2_RC  0x1291147D /* 405EX rev C without Security */
 #define PVR_440GP_RB   0x40120440
 #define PVR_440GP_RC   0x40120481
 #define PVR_440EP_RA   0x42221850
index a6c966cde3ef7b065ca71c7aa414750e6927302b..d0f57040ee435c627457711d264fa34682a0816e 100644 (file)
@@ -227,7 +227,6 @@ extern ulong load_addr;             /* Default Load Address */
 /* common/cmd_nvedit.c */
 int    env_init     (void);
 void   env_relocate (void);
-uchar  env_get_char (int);
 int    envmatch     (uchar *, int);
 char   *getenv      (char *);
 int    getenv_r     (char *name, char *buf, unsigned len);
index 6eec240e9f0b6f9e9563a90ecca60cc44adf994c..f9fa535ff740cd897adb1e628201e729cefb32e7 100644 (file)
 
 /*
  * On-board devices
+ *
+ * TSEC1 is VSC switch
+ * TSEC2 is SoC TSEC
  */
 #define CONFIG_VSC7385_ENET
-
+#define CONFIG_TSEC2
 
 #ifdef CFG_66MHZ
 #define CONFIG_83XX_CLKIN      66666667        /* in Hz */
@@ -80,7 +83,7 @@
 
 #ifdef CONFIG_VSC7385_ENET
 
-#define CONFIG_TSEC2
+#define CONFIG_TSEC1
 
 /* The flash address and size of the VSC7385 firmware image */
 #define CONFIG_VSC7385_IMAGE           0xFE7FE000
 /*
  * Local Bus LCRR and LBCR regs
  */
-#define CFG_LCRR       LCRR_EADC_1 | LCRR_CLKDIV_2     /* 0x00010002 */
+#define CFG_LCRR       LCRR_EADC_1 | LCRR_CLKDIV_4
 #define CFG_LBC_LBCR   ( 0x00040000 /* TODO */ \
                        | (0xFF << LBCR_BMT_SHIFT) \
                        | 0xF ) /* 0x0004ff0f */
  */
 #define CONFIG_ENV_OVERWRITE
 
-#ifdef CONFIG_HAS_ETH0
 #define CONFIG_ETHADDR         00:E0:0C:00:95:01
-#endif
-
-#ifdef CONFIG_HAS_ETH1
 #define CONFIG_ETH1ADDR                00:E0:0C:00:95:02
-#endif
 
 #define CONFIG_IPADDR          10.0.0.2
 #define CONFIG_SERVERIP                10.0.0.1
index 364ffac5ea16548997a5d973448d4c768e397260..cf552c2487a7faec8610a55264122b3b8c765bfb 100644 (file)
        HRCWH_TSEC2M_IN_GMII )
 #endif
 
+/*
+ * System performance
+ */
+#define CFG_ACR_PIPE_DEP       3       /* Arbiter pipeline depth (0-3) */
+#define CFG_ACR_RPTCNT         3       /* Arbiter repeat count (0-7) */
+#define CFG_SPCR_TSEC1EP       3       /* TSEC1 emergency priority (0-3) */
+#define CFG_SPCR_TSEC2EP       3       /* TSEC2 emergency priority (0-3) */
+#define CFG_SCCR_TSEC1CM       1       /* TSEC1 clock mode (0-3) */
+#define CFG_SCCR_TSEC2CM       1       /* TSEC2 & I2C0 clock mode (0-3) */
+
 /* System IO Config */
 #define CFG_SICRH SICRH_TSOBI1
 #define CFG_SICRL SICRL_LDP_A
index dab21d0c0a0a214efa3b46a6d549cb24ea51fe22..c891fa80ed4721473840766dd1f1b1be5e8602bf 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * Configuation settings for the AT91CAP9ADK board.
index 96d1b8dff3a0035ed4d86a9fc5b1005b11121faf..41c418f9aba331413c0a9e7314351ac5ca561917 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2007-2008
- * Stelian Pop <stelian.pop <at> leadtechdesign.com>
+ * Stelian Pop <stelian.pop@leadtechdesign.com>
  * Lead Tech Design <www.leadtechdesign.com>
  *
  * Configuation settings for the AT91SAM9260EK board.
index 57cc90a6de75bf0fc4aad95a18b8670401aa8bc7..c7c42a4cdf635d88508249cd4c3f620d1d1bd0f0 100644 (file)
 #define CONFIG_BOOTP_BOOTPATH
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
+#define CONFIG_BOOTP_SUBNETMASK
 
 /*
  * Command line configuration.
index 6556666d27b50c1c89d8c28b6a9baad8b488c0b4..67243d4e40c3dfab2c61b54911c7b5fcf6bf723a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2007
+ * (C) Copyright 2007-2008
  * Stefan Roese, DENX Software Engineering, sr@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
                ":${hostname}:${netdev}:off panic=1\0"                  \
        "addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0"\
        "addmisc=setenv bootargs ${bootargs} rtc-x1205.probe=0,0x6f\0"  \
-       "net_nfs=tftp 200000 ${bootfile};"                              \
+       "flash_self_old=run ramargs addip addtty addmisc;"              \
+               "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
+       "flash_self=run ramargs addip addtty addmisc;"                  \
+               "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0"    \
+       "flash_nfs_old=run nfsargs addip addtty addmisc;"               \
+               "bootm ${kernel_addr}\0"                                \
+       "flash_nfs=run nfsargs addip addtty addmisc;"                   \
+               "bootm ${kernel_addr} - ${fdt_addr}\0"                  \
+       "net_nfs_old=tftp ${kernel_addr_r} ${bootfile};"                \
                "run nfsargs addip addtty addmisc;"                     \
-               "bootm 200000\0"                                        \
-       "net_nfs_fdt=tftp 200000 ${bootfile};"                          \
-               "tftp ${fdt_addr} ${fdt_file};"                         \
+               "bootm ${kernel_addr_r}\0"                              \
+       "net_nfs=tftp ${kernel_addr_r} ${bootfile}; "                   \
+               "tftp ${fdt_addr_r} ${fdt_file}; "                      \
                "run nfsargs addip addtty addmisc;"                     \
-               "bootm 200000 - ${fdt_addr}\0"                          \
-       "flash_nfs=run nfsargs addip addtty addmisc;"                   \
-               "bootm ${kernel_addr}\0"                                \
-       "flash_self=run ramargs addip addtty addmisc;"                  \
-               "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
+               "bootm ${kernel_addr_r} - ${fdt_addr_r}\0"              \
        "rootpath=/opt/eldk/ppc_4xx\0"                                  \
        "bootfile=makalu/uImage\0"                                      \
        "fdt_file=makalu/makalu.dtb\0"                                  \
-       "fdt_addr=400000\0"                                             \
+       "kernel_addr_r=400000\0"                                        \
+       "fdt_addr_r=800000\0"                                           \
        "kernel_addr=fc000000\0"                                        \
+       "fdt_addr=fc1e0000\0"                                           \
        "ramdisk_addr=fc200000\0"                                       \
        "initrd_high=30000000\0"                                        \
        "load=tftp 200000 makalu/u-boot.bin\0"                          \
 #define CONFIG_BOOTP_BOOTPATH
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
+#define CONFIG_BOOTP_SUBNETMASK
 
 /*
  * Command line configuration.
index 360e2e11d2afe31b9c9b2a6c73a3320fdf63d6aa..7e0df870191871e690f31053a437d56473658311 100644 (file)
 /* ethernet */
 #ifdef XILINX_EMAC_BASEADDR
 #define CONFIG_XILINX_EMAC     1
+#define CFG_ENET
 #else
 #ifdef XILINX_EMACLITE_BASEADDR
 #define CONFIG_XILINX_EMACLITE 1
+#define CFG_ENET
 #endif
 #endif
 #undef ET_DEBUG
 #endif
 
 /* interrupt controller */
+#ifdef XILINX_INTC_BASEADDR
 #define        CFG_INTC_0              1
 #define        CFG_INTC_0_ADDR         XILINX_INTC_BASEADDR
 #define        CFG_INTC_0_NUM          XILINX_INTC_NUM_INTR_INPUTS
+#endif
 
 /* timer */
+#ifdef XILINX_TIMER_BASEADDR
+#if (XILINX_TIMER_IRQ != -1)
 #define        CFG_TIMER_0             1
 #define        CFG_TIMER_0_ADDR        XILINX_TIMER_BASEADDR
 #define        CFG_TIMER_0_IRQ         XILINX_TIMER_IRQ
 #define        FREQUENCE               XILINX_CLOCK_FREQ
 #define        CFG_TIMER_0_PRELOAD     ( FREQUENCE/1000 )
+#endif
+#else
+#ifdef XILINX_CLOCK_FREQ
 #define        CONFIG_XILINX_CLOCK_FREQ        XILINX_CLOCK_FREQ
-
+#else
+#error BAD CLOCK FREQ
+#endif
+#endif
 /* FSL */
 /* #define     CFG_FSL_2 */
 /* #define     FSL_INTR_2      1 */
 #define CONFIG_CMD_CACHE
 #define CONFIG_CMD_IRQ
 #define CONFIG_CMD_MFSL
-#define CONFIG_CMD_PING
+
+#ifndef CFG_ENET
+       #undef CONFIG_CMD_NET
+#else
+       #define CONFIG_CMD_PING
+#endif
 
 #if defined(CONFIG_SYSTEMACE)
        #define CONFIG_CMD_EXT2
index 7614b95019d95316a6d090954794d439924fbfcf..2ea48a6da9ace3d03cbf40f78c3c705a386aecf7 100644 (file)
@@ -28,7 +28,7 @@
 #define CONFIG_ARM1136         1               /* This is an arm1136 CPU core */
 #define CONFIG_MX31            1               /* in a mx31 */
 #define CONFIG_MX31_HCLK_FREQ  26000000        /* RedBoot says 26MHz */
-#define CONFIG_MX31_CLK32      32000
+#define CONFIG_MX31_CLK32      32768
 
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
 #define CFG_LOAD_ADDR          CONFIG_LOADADDR
 
-#define CFG_HZ                 32000
+#define CFG_HZ                 CONFIG_MX31_CLK32 /* use 32kHz clock as source */
 
 #define CONFIG_CMDLINE_EDITING 1
 
index 30fb303c9613c01a8167e12fb6dbaea19574d735..c738567a5f4c034ea6cc0d0f4a0d0ee5b3b4b007 100644 (file)
 /* ethernet */
 #ifdef XILINX_EMAC_BASEADDR
 #define CONFIG_XILINX_EMAC     1
+#define CFG_ENET
 #else
 #ifdef XILINX_EMACLITE_BASEADDR
 #define CONFIG_XILINX_EMACLITE 1
+#define CFG_ENET
 #endif
 #endif
 #undef ET_DEBUG
 #endif
 
 /* interrupt controller */
+#ifdef XILINX_INTC_BASEADDR
 #define        CFG_INTC_0              1
 #define        CFG_INTC_0_ADDR         XILINX_INTC_BASEADDR
 #define        CFG_INTC_0_NUM          XILINX_INTC_NUM_INTR_INPUTS
+#endif
 
 /* timer */
+#ifdef XILINX_TIMER_BASEADDR
+#if (XILINX_TIMER_IRQ != -1)
 #define        CFG_TIMER_0             1
 #define        CFG_TIMER_0_ADDR        XILINX_TIMER_BASEADDR
 #define        CFG_TIMER_0_IRQ         XILINX_TIMER_IRQ
 #define        FREQUENCE               XILINX_CLOCK_FREQ
 #define        CFG_TIMER_0_PRELOAD     ( FREQUENCE/1000 )
+#endif
+#else
+#ifdef XILINX_CLOCK_FREQ
 #define        CONFIG_XILINX_CLOCK_FREQ        XILINX_CLOCK_FREQ
-
+#else
+#error BAD CLOCK FREQ
+#endif
+#endif
 /*
  * memory layout - Example
  * TEXT_BASE = 0x3600_0000;
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_CACHE
 #define CONFIG_CMD_IRQ
-#define CONFIG_CMD_PING
+
+#ifndef CFG_ENET
+       #undef CONFIG_CMD_NET
+#else
+       #define CONFIG_CMD_PING
+#endif
 
 #ifdef XILINX_SYSACE_BASEADDR
 #define CONFIG_CMD_EXT2
index c4f7c33be6b868c2daff5a44ea51dfb1ecad7c8e..bf9f669127f9727c8ae15a115ab9bdb496c2f4a2 100644 (file)
@@ -107,4 +107,14 @@ typedef    struct environment_s {
        unsigned char   data[ENV_SIZE]; /* Environment data             */
 } env_t;
 
+/* Pointer to function that returns a character from the environment */
+extern unsigned char (*env_get_char)(int);
+
+/* Function that returns a pointer to a value from the environment */
+unsigned char *env_get_addr(int);
+unsigned char env_get_char_memory (int index);
+
+/* Function that updates CRC of the enironment */
+void env_crc_update (void);
+
 #endif /* _ENVIRONMENT_H_ */
index 8e5dacc0df6cac054670e8b2238a485dbd02bd5f..1c8e21688f6303c699133adbede234a57391c136 100644 (file)
 
 struct pci_region {
        unsigned long bus_start;                /* Start on the bus */
-       unsigned long phys_start;               /* Start in physical address space */
+       phys_addr_t phys_start;                 /* Start in physical address space */
        unsigned long size;                     /* Size */
        unsigned long flags;                    /* Resource flags */
 
@@ -331,7 +331,7 @@ struct pci_region {
 
 extern __inline__ void pci_set_region(struct pci_region *reg,
                                      unsigned long bus_start,
-                                     unsigned long phys_start,
+                                     phys_addr_t phys_start,
                                      unsigned long size,
                                      unsigned long flags) {
        reg->bus_start  = bus_start;
@@ -432,10 +432,10 @@ extern __inline__ void pci_set_ops(struct pci_controller *hose,
 
 extern void pci_setup_indirect(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data);
 
-extern unsigned long pci_hose_bus_to_phys(struct pci_controller* hose,
-                                         unsigned long addr, unsigned long flags);
+extern phys_addr_t pci_hose_bus_to_phys(struct pci_controller* hose,
+                                       unsigned long addr, unsigned long flags);
 extern unsigned long pci_hose_phys_to_bus(struct pci_controller* hose,
-                                         unsigned long addr, unsigned long flags);
+                                         phys_addr_t addr, unsigned long flags);
 
 #define pci_phys_to_bus(dev, addr, flags) \
        pci_hose_phys_to_bus(pci_bus_to_hose(PCI_BUS(dev)), (addr), (flags))
index b56d2e9900b8309c66d3f265ab73b03ebd46137e..a34291adc5d9ae8ace49cd18e8613c91b9420da9 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef        __VERSION_H__
 #define        __VERSION_H__
 
+#ifndef DO_DEPS_ONLY
 #include "version_autogenerated.h"
+#endif
 
 #endif /* __VERSION_H__ */
index 64f66ed6fb176b08b23132927b2e64ade5208145..83d1d1d3a0d180d85a2e6d7af7c73ec15a2f5651 100644 (file)
@@ -14,7 +14,9 @@
 #include <stdint.h>
 #endif
 
+#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
 #include <watchdog.h>
+#endif
 #include "zlib.h"
 
 #define local static
index 107ebaaa67fe7262342cfbea61ff541a40931765..d959107c73b76765da250cdd697624ac92718ac6 100644 (file)
@@ -37,7 +37,6 @@ void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
        void            *base_ptr;
        ulong           os_data, os_len;
        ulong           initrd_start, initrd_end;
-       ulong           ep;
        image_header_t  *hdr;
        int             ret;
 #if defined(CONFIG_FIT)
index 1b8a8721a3e4e0f08b1b7f35d8697f37742272dc..4956403cce8d1439dbd5f41fd10fede6021a107a 100644 (file)
@@ -453,18 +453,7 @@ void board_init_f (ulong bootflag)
         */
        gd->ram_size -= CFG_MEM_TOP_HIDE;
 
-#ifndef CONFIG_MAX_MEM_MAPPED
-#define CONFIG_MAX_MEM_MAPPED (256 << 20)
-#endif
-
-#ifndef        CONFIG_VERY_BIG_RAM
        addr = CFG_SDRAM_BASE + get_effective_memsize();
-#else
-       /* only allow stack below 256M */
-       addr = CFG_SDRAM_BASE +
-               (gd->ram_size > CONFIG_MAX_MEM_MAPPED) ?
-               CONFIG_MAX_MEM_MAPPED : get_effective_memsize();
-#endif
 
 #ifdef CONFIG_LOGBUFFER
 #ifndef CONFIG_ALT_LB_ADDR
index 0328baddcaa3610bb260b73eda4437474994a7d2..9194fd8b0a6aca61ee97316a296f412d7aac0734 100644 (file)
@@ -667,9 +667,8 @@ static int boot_get_fdt (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
                                goto error;
                        }
                } else {
-                       fdt_error ("Did not find a Flattened Device Tree "
-                               "in a legacy multi-component image");
-                       goto error;
+                       debug ("## No Flattened Device Tree\n");
+                       return 0;
                }
        } else {
                debug ("## No Flattened Device Tree\n");
index 1ec1112309703c87dcd9fbf27b8f6e51234e1ecc..47c7d02c3c1f11dc2afb70b3be447f031caba382 100644 (file)
@@ -30,7 +30,7 @@ AFLAGS        += -DCONFIG_NAND_SPL
 CFLAGS += -DCONFIG_NAND_SPL
 
 SOBJS  := start.o
-SOBJS  += init.o resetvec.o
+SOBJS  += init.o
 SOBJS  += resetvec.o
 COBJS  := ddr2_fixed.o
 COBJS  += nand_boot.o
@@ -89,6 +89,12 @@ $(obj)nand_ecc.c:
        @rm -f $(obj)nand_ecc.c
        ln -s $(SRCTREE)/drivers/mtd/nand/nand_ecc.c $(obj)nand_ecc.c
 
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)ddr2_fixed.c:
+       @rm -f $(obj)ddr2_fixed.c
+       ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/ddr2_fixed.c $(obj)ddr2_fixed.c
+endif
+
 #########################################################################
 
 $(obj)%.o:     $(obj)%.S
index 87ecd7c907458ead56ce5014ce597b31f1b23854..f19dc5d3cefb68ec5cedf48d0f12e7990c011e43 100644 (file)
@@ -25,6 +25,12 @@ include $(OBJTREE)/include/autoconf.mk
 LIB    = libpostppc4xx.a
 
 AOBJS-$(CONFIG_HAS_POST)       += cache_4xx.o
-COBJS-$(CONFIG_HAS_POST)       += cache.o denali_ecc.o ether.o fpu.o spr.o uart.o watchdog.o
+COBJS-$(CONFIG_HAS_POST)       += cache.o
+COBJS-$(CONFIG_HAS_POST)       += denali_ecc.o
+COBJS-$(CONFIG_HAS_POST)       += ether.o
+COBJS-$(CONFIG_HAS_POST)       += fpu.o
+COBJS-$(CONFIG_HAS_POST)       += spr.o
+COBJS-$(CONFIG_HAS_POST)       += uart.o
+COBJS-$(CONFIG_HAS_POST)       += watchdog.o
 
 include $(TOPDIR)/post/rules.mk
index ea2d5b5a01b9937e4dd5da492a096b1731bab427..9629ee58ef1298d5ef8edfad8b6e329fb61131fb 100644 (file)
@@ -26,7 +26,7 @@ include $(TOPDIR)/config.mk
 SRCS   := $(obj)crc32.c  fw_env.c  fw_env_main.c
 HEADERS        := fw_env.h
 
-CPPFLAGS := -Wall -DUSE_HOSTCC
+CPPFLAGS := -Wall -DUSE_HOSTCC -I$(SRCTREE)/include
 
 ifeq ($(MTD_VERSION),old)
 CPPFLAGS += -DMTD_OLD
index e083a5b11ebdc10aff14bf1e06697a85cfae51b3..b8bca91c38d969500e6ad7fe9b54539b964adcfe 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000-2003
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
@@ -209,13 +209,14 @@ char *fw_getenv (char *name)
  * Print the current definition of one, or more, or all
  * environment variables
  */
-void fw_printenv (int argc, char *argv[])
+int fw_printenv (int argc, char *argv[])
 {
        char *env, *nxt;
        int i, n_flag;
+       int rc = 0;
 
        if (env_init ())
-               return;
+               return (-1);
 
        if (argc == 1) {                /* Print all env variables  */
                for (env = environment.data; *env; env = nxt + 1) {
@@ -223,13 +224,13 @@ void fw_printenv (int argc, char *argv[])
                                if (nxt >= &environment.data[ENV_SIZE]) {
                                        fprintf (stderr, "## Error: "
                                                "environment not terminated\n");
-                                       return;
+                                       return (-1);
                                }
                        }
 
                        printf ("%s\n", env);
                }
-               return;
+               return (0);
        }
 
        if (strcmp (argv[1], "-n") == 0) {
@@ -239,7 +240,7 @@ void fw_printenv (int argc, char *argv[])
                if (argc != 2) {
                        fprintf (stderr, "## Error: "
                                "`-n' option requires exactly one argument\n");
-                       return;
+                       return (-1);
                }
        } else {
                n_flag = 0;
@@ -255,7 +256,7 @@ void fw_printenv (int argc, char *argv[])
                                if (nxt >= &environment.data[ENV_SIZE]) {
                                        fprintf (stderr, "## Error: "
                                                "environment not terminated\n");
-                                       return;
+                                       return (-1);
                                }
                        }
                        val = envmatch (name, env);
@@ -268,9 +269,13 @@ void fw_printenv (int argc, char *argv[])
                                break;
                        }
                }
-               if (!val)
+               if (!val) {
                        fprintf (stderr, "## Error: \"%s\" not defined\n", name);
+                       rc = -1;
+               }
        }
+
+       return (rc);
 }
 
 /*
index 58607ded5a467a60a4b6afaead8d8734a314d823..248f58c4a004e50d0966844a9461dc60f4ed607a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2002
+ * (C) Copyright 2002-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
@@ -47,7 +47,7 @@
        "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; "   \
        "bootm"
 
-extern void  fw_printenv(int argc, char *argv[]);
+extern int   fw_printenv(int argc, char *argv[]);
 extern char *fw_getenv  (char *name);
 extern int fw_setenv  (int argc, char *argv[]);
 
index 696e30efda4bea6df0959f2ec07eedc10219c8cb..7f631c4494b67839fcf13bc182d2545e3a737b1e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2000
+ * (C) Copyright 2000-2008
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
  * See file CREDITS for list of people who contributed to this
  * Command line user interface to firmware (=U-Boot) environment.
  *
  * Implements:
- *     fw_printenv [ name ... ]
- *             - prints the values of the environment variables
- *               "name", or the whole environment if no names are
- *               specified
+ *     fw_printenv [[ -n name ] | [ name ... ]]
+ *              - prints the value of a single environment variable
+ *                "name", the ``name=value'' pairs of one or more
+ *                environment variables "name", or the whole
+ *                environment if no names are specified.
  *     fw_setenv name [ value ... ]
  *             - If a name without any values is given, the variable
  *               with this name is deleted from the environment;
  *               otherwise, all "value" arguments are concatenated,
- *               separated by sinlge blank characters, and the
+ *               separated by single blank characters, and the
  *               resulting string is assigned to the environment
  *               variable "name"
  */
@@ -58,16 +59,18 @@ main(int argc, char *argv[])
 
        if (strcmp(cmdname, CMD_PRINTENV) == 0) {
 
-                       fw_printenv (argc, argv);
+               if (fw_printenv (argc, argv) != 0)
+                       return (EXIT_FAILURE);
 
-                       return (EXIT_SUCCESS);
+               return (EXIT_SUCCESS);
 
        } else if (strcmp(cmdname, CMD_SETENV) == 0) {
 
-                       if (fw_setenv (argc, argv) != 0)
-                               return (EXIT_FAILURE);
+               if (fw_setenv (argc, argv) != 0)
+                       return (EXIT_FAILURE);
+
+               return (EXIT_SUCCESS);
 
-                       return (EXIT_SUCCESS);
        }
 
        fprintf (stderr,