]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Merge branch 'master' of git://www.denx.de/git/u-boot-usb
authorTom Rini <trini@ti.com>
Fri, 8 Nov 2013 20:25:29 +0000 (15:25 -0500)
committerTom Rini <trini@ti.com>
Fri, 8 Nov 2013 20:25:29 +0000 (15:25 -0500)
117 files changed:
MAKEALL
README
arch/arm/include/asm/arch-pxa/hardware.h
arch/arm/include/asm/arch-s3c24x0/memory.h
arch/arm/include/asm/atomic.h
arch/arm/include/asm/memory.h
arch/arm/include/asm/proc-armv/ptrace.h
arch/arm/include/asm/proc-armv/system.h
arch/arm/lib/_divsi3.S
arch/arm/lib/_modsi3.S
arch/blackfin/include/asm/bitops.h
arch/blackfin/include/asm/clock.h
arch/blackfin/lib/__kgdb.S
arch/m68k/include/asm/bitops.h
arch/microblaze/include/asm/bitops.h
arch/mips/include/asm/bitops.h
arch/mips/include/asm/inca-ip.h
arch/mips/include/asm/io.h
arch/mips/include/asm/processor.h
arch/mips/include/asm/system.h
arch/powerpc/cpu/mpc5xx/start.S
arch/powerpc/include/asm/8xx_immap.h
arch/powerpc/include/asm/atomic.h
arch/powerpc/include/asm/bitops.h
arch/powerpc/include/asm/cache.h
arch/powerpc/include/asm/cpm_8260.h
arch/powerpc/include/asm/cpm_85xx.h
arch/powerpc/include/asm/io.h
arch/powerpc/include/asm/m8260_pci.h
arch/powerpc/include/asm/mmu.h
arch/powerpc/include/asm/ppc4xx-isram.h
arch/powerpc/include/asm/processor.h
arch/powerpc/include/asm/ptrace.h
arch/sparc/cpu/leon3/start.S
arch/sparc/include/asm/cache.h
arch/sparc/include/asm/page.h
arch/x86/include/asm/pci.h
board/LEOX/elpt860/Makefile
board/emk/top5200/Makefile
board/ep88x/Makefile [deleted file]
board/ep88x/ep88x.c [deleted file]
board/ep88x/u-boot.lds [deleted file]
board/esd/adciop/Makefile
board/esd/dasa_sim/Makefile
board/esd/mecp5200/Makefile
board/esd/pf5200/Makefile
board/freescale/mpc8260ads/Makefile
board/gaisler/gr_cpci_ax2000/Makefile
board/gaisler/gr_ep2s60/Makefile
board/gaisler/gr_xc3s_1500/Makefile
board/hymod/hymod.h
board/icecube/Makefile
board/intercontrol/digsy_mtc/Makefile
board/jupiter/Makefile
board/kup/Makefile [deleted file]
board/lubbock/Makefile
board/mousse/Makefile
board/mpl/pati/pci_eeprom.h
board/pm520/Makefile
board/pxa255_idp/Makefile
board/sandbox/sandbox/sandbox.c
board/zipitz2/Makefile
boards.cfg
common/cmd_bootm.c
common/cmd_gpt.c
common/cmd_nvedit.c
common/cmd_reiser.c
common/cmd_ubifs.c
common/cmd_zfs.c
common/main.c
config.mk
doc/README.autoboot
doc/README.scrapyard
doc/driver-model/UDM-block.txt
doc/driver-model/UDM-gpio.txt
doc/driver-model/UDM-hwmon.txt
doc/driver-model/UDM-keyboard.txt
doc/driver-model/UDM-mmc.txt
doc/driver-model/UDM-net.txt
doc/driver-model/UDM-pci.txt
doc/driver-model/UDM-pcmcia.txt
doc/driver-model/UDM-power.txt
doc/driver-model/UDM-rtc.txt
doc/driver-model/UDM-serial.txt
doc/driver-model/UDM-spi.txt
doc/driver-model/UDM-stdio.txt
doc/driver-model/UDM-twserial.txt
doc/driver-model/UDM-video.txt
doc/driver-model/UDM-watchdog.txt
drivers/gpio/Makefile
drivers/gpio/sx151x.c [new file with mode: 0644]
drivers/hwmon/ds1722.c
drivers/net/netconsole.c
drivers/net/npe/include/IxAtmdAcc.h
drivers/net/npe/include/IxAtmdAccCtrl.h
drivers/serial/mxs_auart.c
drivers/serial/serial_s5p.c
drivers/serial/serial_xuartlite.c
examples/standalone/82559_eeprom.c
fs/fat/fat_write.c
include/at45.h
include/commproc.h
include/config_fallbacks.h
include/configs/EP88x.h [deleted file]
include/configs/highbank.h
include/configs/sandbox.h
include/linux/config.h [deleted file]
include/linux/linkage.h
include/linux/types.h
include/sx151x.h [new file with mode: 0644]
include/video_font_4x6.h
lib/hashtable.c
lib/time.c
mkconfig
tools/Makefile
tools/env/Makefile
tools/imls/Makefile

diff --git a/MAKEALL b/MAKEALL
index a9253d3490a3d5cf32526c91b20800b1fcc5b715..80cd4f83e9bda5583b5522120c39e2fd52dbf86d 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -224,86 +224,84 @@ OLDEST_IDX=1
 RC=0
 
 # Helper funcs for parsing boards.cfg
-boards_by_field()
+targets_by_field()
 {
-       FS="[ \t]+"
-       [ -n "$3" ] && FS="$3"
-       awk \
-               -v field="$1" \
-               -v select="$2" \
-               -F "$FS" \
-               '($1 !~ /^#/ && $field == select) { print $7 }' \
-               boards.cfg
+       field=$1
+       regexp=$2
+
+       awk '($1 !~ /^#/ && $'"$field"' ~ /^'"$regexp"'$/) { print $7 }' \
+                                                               boards.cfg
 }
-boards_by_arch() { boards_by_field 2 "$@" ; }
-boards_by_cpu()  { boards_by_field 3 "$@" "[: \t]+" ; }
-boards_by_soc()  { boards_by_field 4 "$@" ; }
+
+targets_by_arch() { targets_by_field 2 "$@" ; }
+targets_by_cpu()  { targets_by_field 3 "$@" ; targets_by_field 3 "$@:.*" ; }
+targets_by_soc()  { targets_by_field 4 "$@" ; }
 
 #########################################################################
 ## MPC5xx Systems
 #########################################################################
 
-LIST_5xx="$(boards_by_cpu mpc5xx)"
+LIST_5xx="$(targets_by_cpu mpc5xx)"
 
 #########################################################################
 ## MPC5xxx Systems
 #########################################################################
 
-LIST_5xxx="$(boards_by_cpu mpc5xxx)"
+LIST_5xxx="$(targets_by_cpu mpc5xxx)"
 
 #########################################################################
 ## MPC512x Systems
 #########################################################################
 
-LIST_512x="$(boards_by_cpu mpc512x)"
+LIST_512x="$(targets_by_cpu mpc512x)"
 
 #########################################################################
 ## MPC8xx Systems
 #########################################################################
 
-LIST_8xx="$(boards_by_cpu mpc8xx)"
+LIST_8xx="$(targets_by_cpu mpc8xx)"
 
 #########################################################################
 ## PPC4xx Systems
 #########################################################################
 
-LIST_4xx="$(boards_by_cpu ppc4xx)"
+LIST_4xx="$(targets_by_cpu ppc4xx)"
 
 #########################################################################
 ## MPC824x Systems
 #########################################################################
 
-LIST_824x="$(boards_by_cpu mpc824x)"
+LIST_824x="$(targets_by_cpu mpc824x)"
 
 #########################################################################
 ## MPC8260 Systems (includes 8250, 8255 etc.)
 #########################################################################
 
-LIST_8260="$(boards_by_cpu mpc8260)"
+LIST_8260="$(targets_by_cpu mpc8260)"
 
 #########################################################################
 ## MPC83xx Systems (includes 8349, etc.)
 #########################################################################
 
-LIST_83xx="$(boards_by_cpu mpc83xx)"
+LIST_83xx="$(targets_by_cpu mpc83xx)"
 
 #########################################################################
 ## MPC85xx Systems (includes 8540, 8560 etc.)
 #########################################################################
 
-LIST_85xx="$(boards_by_cpu mpc85xx)"
+LIST_85xx="$(targets_by_cpu mpc85xx)"
 
 #########################################################################
 ## MPC86xx Systems
 #########################################################################
 
-LIST_86xx="$(boards_by_cpu mpc86xx)"
+LIST_86xx="$(targets_by_cpu mpc86xx)"
 
 #########################################################################
 ## 74xx/7xx Systems
 #########################################################################
 
-LIST_74xx_7xx="$(boards_by_cpu 74xx_7xx)"
+LIST_74xx_7xx="$(targets_by_cpu 74xx_7xx)"
 
 #########################################################################
 ## PowerPC groups
@@ -339,61 +337,61 @@ LIST_ppc="                \
 ## StrongARM Systems
 #########################################################################
 
-LIST_SA="$(boards_by_cpu sa1100)"
+LIST_SA="$(targets_by_cpu sa1100)"
 
 #########################################################################
 ## ARM7 Systems
 #########################################################################
 
-LIST_ARM7="$(boards_by_cpu arm720t)"
+LIST_ARM7="$(targets_by_cpu arm720t)"
 
 #########################################################################
 ## ARM9 Systems
 #########################################################################
 
-LIST_ARM9="$(boards_by_cpu arm920t)    \
-       $(boards_by_cpu arm926ejs)      \
-       $(boards_by_cpu arm946es)       \
+LIST_ARM9="$(targets_by_cpu arm920t)   \
+       $(targets_by_cpu arm926ejs)     \
+       $(targets_by_cpu arm946es)      \
 "
 
 #########################################################################
 ## ARM11 Systems
 #########################################################################
-LIST_ARM11="$(boards_by_cpu arm1136)   \
-       $(boards_by_cpu arm1176)        \
+LIST_ARM11="$(targets_by_cpu arm1136)  \
+       $(targets_by_cpu arm1176)       \
 "
 
 #########################################################################
 ## ARMV7 Systems
 #########################################################################
 
-LIST_ARMV7="$(boards_by_cpu armv7)"
+LIST_ARMV7="$(targets_by_cpu armv7)"
 
 #########################################################################
 ## AT91 Systems
 #########################################################################
 
-LIST_at91="$(boards_by_soc at91)"
+LIST_at91="$(targets_by_soc at91)"
 
 #########################################################################
 ## Xscale Systems
 #########################################################################
 
-LIST_pxa="$(boards_by_cpu pxa)"
+LIST_pxa="$(targets_by_cpu pxa)"
 
-LIST_ixp="$(boards_by_cpu ixp)"
+LIST_ixp="$(targets_by_cpu ixp)"
 
 #########################################################################
 ## SPEAr Systems
 #########################################################################
 
-LIST_spear="$(boards_by_soc spear)"
+LIST_spear="$(targets_by_soc spear)"
 
 #########################################################################
 ## ARM groups
 #########################################################################
 
-LIST_arm="$(boards_by_arch arm)"
+LIST_arm="$(targets_by_arch arm)"
 
 #########################################################################
 ## MIPS Systems                (default = big endian)
@@ -447,66 +445,66 @@ LIST_mips_el="                    \
 ## OpenRISC Systems
 #########################################################################
 
-LIST_openrisc="$(boards_by_arch openrisc)"
+LIST_openrisc="$(targets_by_arch openrisc)"
 
 #########################################################################
 ## x86 Systems
 #########################################################################
 
-LIST_x86="$(boards_by_arch x86)"
+LIST_x86="$(targets_by_arch x86)"
 
 #########################################################################
 ## Nios-II Systems
 #########################################################################
 
-LIST_nios2="$(boards_by_arch nios2)"
+LIST_nios2="$(targets_by_arch nios2)"
 
 #########################################################################
 ## MicroBlaze Systems
 #########################################################################
 
-LIST_microblaze="$(boards_by_arch microblaze)"
+LIST_microblaze="$(targets_by_arch microblaze)"
 
 #########################################################################
 ## ColdFire Systems
 #########################################################################
 
-LIST_m68k="$(boards_by_arch m68k)"
+LIST_m68k="$(targets_by_arch m68k)"
 LIST_coldfire=${LIST_m68k}
 
 #########################################################################
 ## AVR32 Systems
 #########################################################################
 
-LIST_avr32="$(boards_by_arch avr32)"
+LIST_avr32="$(targets_by_arch avr32)"
 
 #########################################################################
 ## Blackfin Systems
 #########################################################################
 
-LIST_blackfin="$(boards_by_arch blackfin)"
+LIST_blackfin="$(targets_by_arch blackfin)"
 
 #########################################################################
 ## SH Systems
 #########################################################################
 
-LIST_sh2="$(boards_by_cpu sh2)"
-LIST_sh3="$(boards_by_cpu sh3)"
-LIST_sh4="$(boards_by_cpu sh4)"
+LIST_sh2="$(targets_by_cpu sh2)"
+LIST_sh3="$(targets_by_cpu sh3)"
+LIST_sh4="$(targets_by_cpu sh4)"
 
-LIST_sh="$(boards_by_arch sh)"
+LIST_sh="$(targets_by_arch sh)"
 
 #########################################################################
 ## SPARC Systems
 #########################################################################
 
-LIST_sparc="$(boards_by_arch sparc)"
+LIST_sparc="$(targets_by_arch sparc)"
 
 #########################################################################
 ## NDS32 Systems
 #########################################################################
 
-LIST_nds32="$(boards_by_arch nds32)"
+LIST_nds32="$(targets_by_arch nds32)"
 
 #-----------------------------------------------------------------------
 
@@ -518,7 +516,7 @@ get_target_location() {
        local vendor=""
 
        # Automatic mode
-       local line=`awk -F '\ +' '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
+       local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
        if [ -z "${line}" ] ; then echo "" ; return ; fi
 
        set ${line}
@@ -556,7 +554,7 @@ get_target_location() {
 get_target_maintainers() {
        local name=`echo $1 | cut -d : -f 3`
 
-       local line=`awk -F '\ +' '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
+       local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
        if [ -z "${line}" ]; then
                echo ""
                return ;
@@ -571,7 +569,7 @@ get_target_arch() {
        local target=$1
 
        # Automatic mode
-       local line=`egrep -i "^[[:space:]]*${target}[[:space:]]" boards.cfg`
+       local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
 
        if [ -z "${line}" ] ; then echo "" ; return ; fi
 
diff --git a/README b/README
index b0c2fdc73de47c1ef774093caea4f6b156703af2..a70475fb05f024e1b580317c0e8723ad4a574c73 100644 (file)
--- a/README
+++ b/README
@@ -848,6 +848,7 @@ The following options need to be configured:
                CONFIG_CMD_ELF          * bootelf, bootvx
                CONFIG_CMD_ENV_CALLBACK * display details about env callbacks
                CONFIG_CMD_ENV_FLAGS    * display details about env flags
+               CONFIG_CMD_ENV_EXISTS   * check existence of env variable
                CONFIG_CMD_EXPORTENV    * export the environment
                CONFIG_CMD_EXT2         * ext2 command support
                CONFIG_CMD_EXT4         * ext4 command support
@@ -1032,7 +1033,6 @@ The following options need to be configured:
 
 - GPIO Support:
                CONFIG_PCA953X          - use NXP's PCA953X series I2C GPIO
-               CONFIG_PCA953X_INFO     - enable pca953x info command
 
                The CONFIG_SYS_I2C_PCA953X_WIDTH option specifies a list of
                chip-ngpio pairs that tell the PCA953X driver the number of
index 2397bcef0dee4d87bc809603ef91e4f4ecbdf89f..e671c143ac11590c901e94fe7df7704f479d16e1 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef __ASM_ARCH_HARDWARE_H
 #define __ASM_ARCH_HARDWARE_H
 
-#include <linux/config.h>
 #include <asm/mach-types.h>
 
 /*
index 61d62707c7d0aca937bc30adb7fd14d9b9bde1cf..d6a787b66369d76b4293383c5ebc864804c017b3 100644 (file)
@@ -32,9 +32,6 @@
  */
 #define PHYS_OFFSET    (0x0c000000UL)
 
-#include <linux/config.h>
-
-
 /* Modified for S3C2400, by chc, 20010509 */
 #define RAM_IN_BANK_0  32*1024*1024
 #define RAM_IN_BANK_1  0
index ba9e4b72d8214d6a87f23ef89721a90759069539..1b22eeb5fc242cdbbfabea683efee6b1e5976bc0 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef __ASM_ARM_ATOMIC_H
 #define __ASM_ARM_ATOMIC_H
 
-#include <linux/config.h>
-
 #ifdef CONFIG_SMP
 #error SMP not supported
 #endif
index c3b2afd907761ddf73805f06cb783be319728830..1864ab9fb55ec18d2a3be8da88722f93d19ede58 100644 (file)
@@ -14,7 +14,6 @@
 
 #if 0  /* XXX###XXX */
 
-#include <linux/config.h>
 #include <asm/arch/memory.h>
 
 /*
index 79cc6443f439f67cb54042e806ec0f238d561815..a060ee67e34ac4f5b8f78831cbb45aaeab92960f 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef __ASM_PROC_PTRACE_H
 #define __ASM_PROC_PTRACE_H
 
-#include <linux/config.h>
-
 #define USR26_MODE     0x00
 #define FIQ26_MODE     0x01
 #define IRQ26_MODE     0x02
index b4cfa68ca38ed8787cbb37455f9bbe491ba5f10b..cda8976b6a254877f2c19c6de70b040ddcb60d63 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef __ASM_PROC_SYSTEM_H
 #define __ASM_PROC_SYSTEM_H
 
-#include <linux/config.h>
-
 /*
  * Save the current interrupt enable state & disable IRQs
  */
index cfbadb2ab99f094d88bb81b4a4194187d660b195..601549304e00d177b02ec9c491a1deb9dd0c5893 100644 (file)
@@ -1,4 +1,3 @@
-
 .macro ARM_DIV_BODY dividend, divisor, result, curbit
 
 #if __LINUX_ARM_ARCH__ >= 5
index 539c5849970c1fa256af9c1c8408854b038720b7..3d31a559f84e36be442729b5e49ab5b64324ef28 100644 (file)
@@ -1,4 +1,3 @@
-
 .macro ARM_MOD_BODY dividend, divisor, order, spare
 
 #if __LINUX_ARM_ARCH__ >= 5
index b58b0050ce3d96c189b79e4abf2ceb6b45503cdb..cd7e3564595e2ba1bb8eec13e78394024091cdd5 100644 (file)
@@ -13,7 +13,6 @@
  * Copyright 1992, Linus Torvalds.
  */
 
-#include <linux/config.h>
 #include <asm/byteorder.h>
 #include <asm/system.h>
 
index f1fcd404993de3c70bef6d188a3fb91fc4909d73..fc84fe43f12be1977ecd6afdcb54ce379cb9a951 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * Copyright (C) 2012 Analog Devices Inc.
  * Licensed under the GPL-2 or later.
index 4ccde8f104e1118cfab413a0c5f6f5bb5a2ce205..4e7b6a4eb5d4cef64d5c9ccbaaf305e8368c6a11 100644 (file)
@@ -1,4 +1,3 @@
-
 #include <linux/linkage.h>
 
 /* save stack context for non-local goto
index 525d90ccb02c2d47234cd92beb8a904be362d1ed..f9c434b4a3a4f67cfe7b6ce4f5555d952310192a 100644 (file)
@@ -5,7 +5,6 @@
 #ifndef _M68K_BITOPS_H
 #define _M68K_BITOPS_H
 
-#include <linux/config.h>
 #include <asm/byteorder.h>
 
 extern void set_bit(int nr, volatile void *addr);
index eafa2b576bcf6a24fb010d12f5f53bbbfd7114ae..0ac78d76f9c387288c02f260034bdb10844d3ad6 100644 (file)
@@ -5,7 +5,6 @@
  * Copyright 1992, Linus Torvalds.
  */
 
-#include <linux/config.h>
 #include <asm/byteorder.h>     /* swab32 */
 #include <asm/system.h>                /* save_flags */
 
index f2dc5335690de97517c58ff5bbaf7627fbc3636f..b5c2a6367d913125d648ffeb605ed2198bd6b0b9 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <asm/sgidefs.h>
 #include <asm/system.h>
-#include <linux/config.h>
 
 /*
  * clear_bit() doesn't provide any barrier for the compiler.
index 26f100290c0f483c5df4235cfb6c9cd6a3f3ee35..5f03e2aa20194ac3bff0b54192a538d3b1e22b36 100644 (file)
@@ -1,4 +1,3 @@
-
 /******************************************************************************
        Copyright (c) 2002, Infineon Technologies.  All rights reserved.
 
index 50a882ca5a2df44036ab92d469162a5a9899e5aa..3fa37f5dd2b03886baff2c22d17e72a34eaaa279 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef _ASM_IO_H
 #define _ASM_IO_H
 
-#include <linux/config.h>
 #if 0
 #include <linux/pagemap.h>
 #endif
index 24858ddda527fcd6c38c8299c7bc40b3166f2d2d..ba7f5381a3aa586213a7ce15d793a4964e1b3230 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef _ASM_PROCESSOR_H
 #define _ASM_PROCESSOR_H
 
-#include <linux/config.h>
-
 #include <asm/isadep.h>
 
 #include <asm/cachectl.h>
index b6d50e2f04ed5c52b5d70f22005e89b11abd7122..7a2895284ed0d519d92ad0a82d0beef91a7d9537 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef _ASM_SYSTEM_H
 #define _ASM_SYSTEM_H
 
-#include <linux/config.h>
 #include <asm/sgidefs.h>
 #include <asm/ptrace.h>
 #if 0
index bdd46d955dc9876274aeea27195e79ca8328225b..92f956db8da07bad3b11d6b4dfe23f8e02d47eca 100644 (file)
@@ -25,7 +25,6 @@
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 
-#include <linux/config.h>
 #include <asm/processor.h>
 #include <asm/u-boot.h>
 
index 01129ed4f0e745aeea3bd56808abaf0b787ddbc7..dfaddb6f1d4c32851d38567de4da9fb5bb25b548 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * MPC8xx Internal Memory Map
  * Copyright (c) 1997 Dan Malek (dmalek@jlc.net)
index 23f22df1b750eeabc6d025587ff4528870555c68..43a2bb2b3e4446df9e51ec151f5f8ce6335265a5 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_PPC_ATOMIC_H_
 #define _ASM_PPC_ATOMIC_H_
 
-#include <linux/config.h>
-
 #ifdef CONFIG_SMP
 typedef struct { volatile int counter; } atomic_t;
 #else
index adaf0914921c41278c3cd49380244ed8843611cf..a6bcf3c3febab5000390b523dfaf4e0fefc27eb5 100644 (file)
@@ -5,7 +5,6 @@
 #ifndef _PPC_BITOPS_H
 #define _PPC_BITOPS_H
 
-#include <linux/config.h>
 #include <asm/byteorder.h>
 
 extern void set_bit(int nr, volatile void *addr);
index 5f9c640aa2aff83a4d43cb1a62e1d65b464b7075..cdc1f108728be352a2ad473b202ac9a216131d7e 100644 (file)
@@ -4,7 +4,6 @@
 #ifndef __ARCH_PPC_CACHE_H
 #define __ARCH_PPC_CACHE_H
 
-#include <linux/config.h>
 #include <asm/processor.h>
 
 /* bytes per L1 cache line */
index 6a4a51a9aa09c96c720756b3131633f058d6e557..4f78186d9df40e2f8995e7205df4d11519e095af 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * MPC8260 Communication Processor Module.
  * Copyright (c) 1999 Dan Malek (dmalek@jlc.net)
index 1681ecd507933e4ee144f00858c001f58547bb9e..b137a71450d4e50591a7211d3236fde539f099e4 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * MPC85xx Communication Processor Module
  * Copyright (c) 2003,Motorola Inc.
index 1f12c29ba8351584974052d97d292de57c786cd4..d8b7b974d417b678626a07381fc7ca7393b6267a 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef _PPC_IO_H
 #define _PPC_IO_H
 
-#include <linux/config.h>
 #include <asm/byteorder.h>
 
 #ifdef CONFIG_ADDR_MAP
index 45f01de820c7fb50f628b5b7bef2c0daec2a2726..6daca4f99b37aa85834bccf30e602e91ef6d6873 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef _PPC_KERNEL_M8260_PCI_H
 #define _PPC_KERNEL_M8260_PCI_H
 
index b700a3a0bec55025a7067cfbaa0d65a89ca28c7a..cadaeef85a5a170780fb4925a949eb4515a0a85a 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _PPC_MMU_H_
 #define _PPC_MMU_H_
 
-#include <linux/config.h>
-
 #ifndef __ASSEMBLY__
 /* Hardware Page Table Entry */
 typedef struct _PTE {
index 04fc8916eb191715b17a0df6df605495dc741540..4d1106b1242974cb846903c383e8f1addba9b540 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * SPDX-License-Identifier:    GPL-2.0+
  */
index c0fb51993e2899804d79ad3d73d6f9557573db6c..81f9d38e79fc28ed974fe96b65310e48eae9031d 100644 (file)
@@ -7,8 +7,6 @@
  */
 #define current_text_addr() ({ __label__ _l; _l: &&_l;})
 
-#include <linux/config.h>
-
 #include <asm/ptrace.h>
 #include <asm/types.h>
 
index cf09edf1560917f936fb416633f1980ab2be341d..2d56de61d1cca7e6c91dc0adf0287816e7f98256 100644 (file)
@@ -17,8 +17,6 @@
  * the PT_* values below.  This simplifies arch/powerpc/kernel/ptrace.c.
  */
 
-#include <linux/config.h>
-
 #ifndef __ASSEMBLY__
 #ifdef CONFIG_PPC64BRIDGE
 #define PPC_REG unsigned long /*long*/
index 70aee78054a3e5a09ea5532fad197f28753c2d14..bbc1b3476c78a46d5d5a4df14a9d190ee0d35bf0 100644 (file)
@@ -1,3 +1,5 @@
+#include <config.h>
+
 TRAP ta 0; nop; nop; nop;
 
 /* Software trap. Treat as BAD_TRAP for the time being... */
index 8ee0976659cce7924057d76f9d3133478d2caf58..d9671d1c7497d39093aa7a6d57f4049535fb9fce 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef __SPARC_CACHE_H__
 #define __SPARC_CACHE_H__
 
-#include <linux/config.h>
 #include <asm/processor.h>
 
 /*
index ecc0dc565755b767201feed0be60d23f477f9c4f..181d1c19527633b0a0da7c1a5ef612fcaa8f3284 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _SPARC_PAGE_H
 #define _SPARC_PAGE_H
 
-#include <linux/config.h>
 #ifdef CONFIG_SUN4
 #define PAGE_SHIFT   13
 #else
index cbc4a9e2e9b0cf677f90960287fa87fd569cc59d..6b161881e74513aa6169673266dd66ac6de11808 100644 (file)
@@ -1,5 +1,4 @@
 
-
 /*
  * (C) Copyright 2002
  * Daniel Engström, Omicron Ceti AB, daniel@omicron.se
index 80f5efe481ad7dc5e98ccff81566430b29ebd137..b811adbf00775ebec857b85acea5b1e2b7155e49 100644 (file)
@@ -1,4 +1,3 @@
-
 #######################################################################
 #
 # Copyright (C) 2000, 2001, 2002, 2003
index eb626a6a2c9a4ed34bc5fb2fcdb4f2e2deba8ddd..0930d484fb24d00047d1b007271743c622d07c80 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
diff --git a/board/ep88x/Makefile b/board/ep88x/Makefile
deleted file mode 100644 (file)
index 07fa3f3..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# (C) Copyright 2006
-# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-#
-# Copyright (C) 2004 Arabella Software Ltd.
-# Yuli Barcohen <yuli@arabellasw.com>
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
-
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(BOARD).o
-
-COBJS  := $(BOARD).o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
-
-$(LIB):        $(obj).depend $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
diff --git a/board/ep88x/ep88x.c b/board/ep88x/ep88x.c
deleted file mode 100644 (file)
index cad0bfc..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * Copyright (C) 2005 Arabella Software Ltd.
- * Yuli Barcohen <yuli@arabellasw.com>
- *
- * Support for Embedded Planet EP88x boards.
- * Tested on EP88xC with MPC885 CPU, 64MB SDRAM and 16MB flash.
- *
- * SPDX-License-Identifier:    GPL-2.0+
- */
-
-#include <common.h>
-#include <mpc8xx.h>
-
-/*
- * SDRAM uses two Micron chips.
- * Minimal CPU frequency is 40MHz.
- */
-static uint sdram_table[] = {
-       /* Single read  (offset 0x00 in UPM RAM) */
-       0xEFCBCC04, 0x0F37C804, 0x0EEEC004, 0x01B98404,
-       0x1FF74C00, 0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05,
-
-       /* Burst read   (offset 0x08 in UPM RAM) */
-       0xEFCBCC04, 0x0F37C804, 0x0EEEC004, 0x00BDC404,
-       0x00FFCC00, 0x00FFCC00, 0x01FB8C00, 0x1FF74C00,
-       0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05,
-       0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05,
-
-       /* Single write (offset 0x18 in UPM RAM) */
-       0xEFCBCC04, 0x0F37C804, 0x0EEE8002, 0x01B90404,
-       0x1FF74C05, 0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05,
-
-       /* Burst write  (offset 0x20 in UPM RAM) */
-       0xEFCBCC04, 0x0F37C804, 0x0EEE8000, 0x00BD4400,
-       0x00FFCC00, 0x00FFCC02, 0x01FB8C04, 0x1FF74C05,
-       0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05,
-       0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05, 0xFFFFCC05,
-
-       /* Refresh      (offset 0x30 in UPM RAM) */
-       0xEFFACC04, 0x0FF5CC04, 0x0FFFCC04, 0x1FFFCC04,
-       0xFFFFCC05, 0xFFFFCC05, 0xEFFB8C34, 0x0FF74C34,
-       0x0FFACCB4, 0x0FF5CC34, 0x0FFFC034, 0x0FFFC0B4,
-
-       /* Exception    (offset 0x3C in UPM RAM) */
-       0x0FEA8034, 0x1FB54034, 0xFFFFCC34, 0xFFFFCC05
-};
-
-int board_early_init_f (void)
-{
-       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
-
-       bcsr[0] |= 0x0C; /* Turn the LEDs off */
-       bcsr[2] |= 0x08; /* Enable flash WE# line - necessary for
-                           flash detection by CFI driver
-                        */
-
-#if defined(CONFIG_8xx_CONS_SMC1)
-       bcsr[6] |= 0x10; /* Enables RS-232 transceiver */
-#endif
-#if defined(CONFIG_8xx_CONS_SCC2)
-       bcsr[7] |= 0x10; /* Enables RS-232 transceiver */
-#endif
-#ifdef CONFIG_ETHER_ON_FEC1
-       bcsr[8] |= 0xC0; /* Enable Ethernet 1 PHY */
-#endif
-#ifdef CONFIG_ETHER_ON_FEC2
-       bcsr[8] |= 0x30; /* Enable Ethernet 2 PHY */
-#endif
-
-       return 0;
-}
-
-phys_size_t initdram (int board_type)
-{
-       long int msize;
-       volatile immap_t     *immap  = (volatile immap_t *)CONFIG_SYS_IMMR;
-       volatile memctl8xx_t *memctl = &immap->im_memctl;
-
-       upmconfig(UPMA, sdram_table, sizeof(sdram_table) / sizeof(uint));
-
-       /* Configure SDRAM refresh */
-       memctl->memc_mptpr = MPTPR_PTP_DIV2; /* BRGCLK/2 */
-
-       memctl->memc_mamr = (65 << 24) | CONFIG_SYS_MAMR; /* No refresh */
-       udelay(100);
-
-       /* Run MRS pattern from location 0x36 */
-       memctl->memc_mar = 0x88;
-       memctl->memc_mcr = 0x80002236;
-       udelay(100);
-
-       memctl->memc_mamr |=  MAMR_PTAE; /* Enable refresh */
-       memctl->memc_or1   = ~(CONFIG_SYS_SDRAM_MAX_SIZE - 1) | OR_CSNT_SAM;
-       memctl->memc_br1   =  CONFIG_SYS_SDRAM_BASE | BR_PS_32 | BR_MS_UPMA | BR_V;
-
-       msize = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_SDRAM_MAX_SIZE);
-       memctl->memc_or1  |= ~(msize - 1);
-
-       return msize;
-}
-
-int checkboard( void )
-{
-       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
-
-       puts("Board: ");
-       switch (bcsr[15]) {
-       case 0xE7:
-               puts("EP88xC 1.0");
-               break;
-       default:
-               printf("unknown ID=%02X", bcsr[15]);
-       }
-       printf("  CPLD revision %d\n", bcsr[14]);
-
-       return 0;
-}
diff --git a/board/ep88x/u-boot.lds b/board/ep88x/u-boot.lds
deleted file mode 100644 (file)
index cbb17d1..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * (C) Copyright 2001-2010
- * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * Modified by Yuli Barcohen <yuli@arabellasw.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
- */
-
-OUTPUT_ARCH(powerpc)
-SECTIONS
-{
-  /* Read-only sections, merged into text segment: */
-  . = + SIZEOF_HEADERS;
-  .text          :
-  {
-    arch/powerpc/cpu/mpc8xx/start.o    (.text*)
-    arch/powerpc/cpu/mpc8xx/traps.o    (.text*)
-    *(.text*)
-    . = ALIGN(16);
-    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
-  }
-
-  /* Read-write section, merged into data segment: */
-  . = (. + 0x0FFF) & 0xFFFFF000;
-  _erotext = .;
-  PROVIDE (erotext = .);
-  .reloc   :
-  {
-    _GOT2_TABLE_ = .;
-    KEEP(*(.got2))
-    KEEP(*(.got))
-    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
-    _FIXUP_TABLE_ = .;
-    KEEP(*(.fixup))
-  }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
-  __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
-
-  .data    :
-  {
-    *(.data*)
-    *(.sdata*)
-  }
-  _edata  =  .;
-  PROVIDE (edata = .);
-
-  . = .;
-
-  . = ALIGN(4);
-  .u_boot_list : {
-       KEEP(*(SORT(.u_boot_list*)));
-  }
-
-
-  . = .;
-  __start___ex_table = .;
-  __ex_table : { *(__ex_table) }
-  __stop___ex_table = .;
-
-  . = ALIGN(4096);
-  __init_begin = .;
-  .text.init : { *(.text.init) }
-  .data.init : { *(.data.init) }
-  . = ALIGN(4096);
-  __init_end = .;
-
-  __bss_start = .;
-  .bss (NOLOAD)       :
-  {
-   *(.bss*)
-   *(.sbss*)
-   *(COMMON)
-   . = ALIGN(4);
-  }
-  __bss_end = . ;
-  PROVIDE (end = .);
-}
-ENTRY(_start)
index 9635189185a4e56ca54244c01a76a6227dd71941..a096e444181ad615da258c8b70057801b377f843 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2000-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 7dc48ba6946cb17447deaae593022d8d3f4f78ea..f0a5a8f09b9a1a889108c55d8995626c4d4c80aa 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2000-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 19f0055850cb959f1f64fecba0fb09dd406c9bf6..3d66c9f53ddecb54111ae3a0e942842033e1e820 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 24abbaf868a1f9749afa0cafc365d267ab4d0235..a9d20c90b1c8c3619223564b199d9685e0bd3d5a 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 9b7e287f8dae7d65d1c54bfe76f491f2ed00c283..007d9580aee33230bdc32c08653a00092e663733 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2001-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 1cef4d5eb616abbd395dbff283df08b6b5198acb..a08e04dbe8bc470ec231f3ceb39b7b7de66732c9 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index a8b3e6a52aecc4f59326e53d763803f293a25403..059a9c03c4cbcc6283b311dbcb2f631ec827328d 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 2ca473d1a59f46229e7d7bdcdf1bd1c9d2f42c23..302c4611e0950501d847b39abb5c0e13c2e015a2 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 2c58bfb6e0dd8849bff89d62568734e533967139..3ab3794901b6873679146cda1904635b13f0eb74 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef _HYMOD_H_
 #define _HYMOD_H_
 
-#include <linux/config.h>
 #ifdef CONFIG_8260
 #include <asm/iopin_8260.h>
 #endif
index 373f753e36bd0747d939b152e5e003081add4a4b..c3c2cd1c3e0b425ce09a969a6017591f2089b185 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index be216d5a5c2d785e09d590ceaf5548217251fb01..44b7c0ae43c2d6cafd37246126c62ba7d7e695a3 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # Author: Grzegorz Bernacki, Semihalf, gjb@semihalf.com
 #
index 49dff994ef2bdb55a171c46b1c89602cc3452434..4d3ef9ed7a5e89c3c5d99758ca363e311525effd 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
diff --git a/board/kup/Makefile b/board/kup/Makefile
deleted file mode 100644 (file)
index 05be72f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
-
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(BOARD).o
-
-COBJS  = $(BOARD).o flash.o kup.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
-
-$(LIB):        $(obj).depend $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
index 264838001d336e83068dbd3850f2989c9b32a956..8aa513ac44fc002bf370612067a3ecd961854424 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2000-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 0a2eb103aba8e1d1389b048ee621a4f89d901993..e2951d54ad924709cf498007ccbafc0d9aaae623 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2001-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index af34b86c315617695b0cfb7777a30f0803816d7f..459c14381d1d0a1c89eb5278d8b0152bf26fa1ba 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef __PCI_EEPROM_H_
 #define __PCI_EEPROM_H_        1
 
index 3bcba23ae32ca651d761bd5592b4840ad3738070..8b5a7eba7177b39858c591d17491b5d23ec7f3f1 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2003-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index 7b063bde191225e71bbd158b869c7264c7003f70..59d696741da9fbe77ae2909b4e572fb1a703aca5 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # (C) Copyright 2000-2006
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
index f471cb72125648d341d8003c8c1ca4a0cf78c53a..65dcce804bb6adc9d41ada2548152fabf4d0fa03 100644 (file)
@@ -18,19 +18,9 @@ void flush_cache(unsigned long start, unsigned long size)
 {
 }
 
-ulong get_tbclk(void)
+unsigned long timer_read_counter(void)
 {
-       return CONFIG_SYS_HZ;
-}
-
-unsigned long long get_ticks(void)
-{
-       return get_timer(0);
-}
-
-ulong get_timer(ulong base)
-{
-       return (os_get_nsec() / 1000000) - base;
+       return os_get_nsec() / 1000;
 }
 
 int timer_init(void)
index 1f7614d86d38d4f66d8d1fa26ffd622c423c6a32..855f6bcda860b6a3e6dbaeb2108d87c6c901e6a9 100644 (file)
@@ -1,4 +1,3 @@
-
 #
 # Copyright (C) 2009
 # Marek Vasut <marek.vasut@gmail.com>
index 5e101253fc4f452c28916544de2c8a398216f6de..375f2d4718d315bdf6d3ca2eda6040fa79f8d2f9 100644 (file)
@@ -43,7 +43,6 @@
 # Status, Arch, CPU:SPLCPU, SoC, Vendor, Board name, Target, Options, Maintainers
 ###########################################################################################################
 
-<<<<<<< HEAD
 Active  arm         arm1136        -           armltd          integrator          integratorcp_cm1136                  integratorcp:CM1136                                                                                                               Linus Walleij <linus.walleij@linaro.org>
 Active  arm         arm1136        mx31        -               -                   imx31_phycore                        -                                                                                                                                 -
 Active  arm         arm1136        mx31        davedenx        -                   qong                                 -                                                                                                                                 Wolfgang Denk <wd@denx.de>
@@ -197,7 +196,7 @@ Active  arm         arm926ejs      mb86r0x     syteco          jadecpu
 Active  arm         arm926ejs      mx25        freescale       mx25pdk             mx25pdk                              mx25pdk:IMX_CONFIG=board/freescale/mx25pdk/imximage.cfg                                                                           Fabio Estevam <fabio.estevam@freescale.com>
 Active  arm         arm926ejs      mx25        karo            tx25                tx25                                 -                                                                                                                                 John Rigby <jcrigby@gmail.com>
 Active  arm         arm926ejs      mx25        syteco          zmx25               zmx25                                -                                                                                                                                 Matthias Weisser <weisserm@arcor.de>
-Active  arm         arm926ejs      mx27        armadeus        apf27               apf27                                -                                                                                                                                 Philippe Reynes <tremyfr@yahoo.fr>:Eric Jarrige <eric.jarrige@armadeus.org> 
+Active  arm         arm926ejs      mx27        armadeus        apf27               apf27                                -                                                                                                                                 Philippe Reynes <tremyfr@yahoo.fr>:Eric Jarrige <eric.jarrige@armadeus.org>
 Active  arm         arm926ejs      mx27        logicpd         imx27lite           imx27lite                            -                                                                                                                                 Wolfgang Denk <wd@denx.de>
 Active  arm         arm926ejs      mx27        logicpd         imx27lite           magnesium                            -                                                                                                                                 Heiko Schocher <hs@denx.de>
 Active  arm         arm926ejs      mxs         bluegiga        apx4devkit          apx4devkit                           apx4devkit                                                                                                                        Lauri Hintsala <lauri.hintsala@bluegiga.com>
index 166b901d76f3dbb386f1952287b345868f01d3c9..ba73f5781a92258c306907f15fc83c37e40278d0 100644 (file)
@@ -1469,10 +1469,8 @@ static int do_bootm_netbsd(int flag, int argc, char * const argv[],
        char *consdev;
        char *cmdline;
 
-       if (flag & BOOTM_STATE_OS_PREP)
+       if (flag != BOOTM_STATE_OS_GO)
                return 0;
-       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
-               return 1;
 
 #if defined(CONFIG_FIT)
        if (!images->legacy_hdr_valid) {
@@ -1550,10 +1548,8 @@ static int do_bootm_lynxkdi(int flag, int argc, char * const argv[],
 {
        image_header_t *hdr = &images->legacy_hdr_os_copy;
 
-       if (flag & BOOTM_STATE_OS_PREP)
+       if (flag != BOOTM_STATE_OS_GO)
                return 0;
-       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
-               return 1;
 
 #if defined(CONFIG_FIT)
        if (!images->legacy_hdr_valid) {
@@ -1574,10 +1570,8 @@ static int do_bootm_rtems(int flag, int argc, char * const argv[],
 {
        void (*entry_point)(bd_t *);
 
-       if (flag & BOOTM_STATE_OS_PREP)
+       if (flag != BOOTM_STATE_OS_GO)
                return 0;
-       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
-               return 1;
 
 #if defined(CONFIG_FIT)
        if (!images->legacy_hdr_valid) {
@@ -1609,10 +1603,8 @@ static int do_bootm_ose(int flag, int argc, char * const argv[],
 {
        void (*entry_point)(void);
 
-       if (flag & BOOTM_STATE_OS_PREP)
+       if (flag != BOOTM_STATE_OS_GO)
                return 0;
-       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
-               return 1;
 
 #if defined(CONFIG_FIT)
        if (!images->legacy_hdr_valid) {
@@ -1645,10 +1637,8 @@ static int do_bootm_plan9(int flag, int argc, char * const argv[],
        void (*entry_point)(void);
        char *s;
 
-       if (flag & BOOTM_STATE_OS_PREP)
+       if (flag != BOOTM_STATE_OS_GO)
                return 0;
-       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
-               return 1;
 
 #if defined(CONFIG_FIT)
        if (!images->legacy_hdr_valid) {
@@ -1694,10 +1684,8 @@ static int do_bootm_vxworks(int flag, int argc, char * const argv[],
 {
        char str[80];
 
-       if (flag & BOOTM_STATE_OS_PREP)
+       if (flag != BOOTM_STATE_OS_GO)
                return 0;
-       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
-               return 1;
 
 #if defined(CONFIG_FIT)
        if (!images->legacy_hdr_valid) {
@@ -1719,10 +1707,8 @@ static int do_bootm_qnxelf(int flag, int argc, char * const argv[],
        char *local_args[2];
        char str[16];
 
-       if (flag & BOOTM_STATE_OS_PREP)
+       if (flag != BOOTM_STATE_OS_GO)
                return 0;
-       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
-               return 1;
 
 #if defined(CONFIG_FIT)
        if (!images->legacy_hdr_valid) {
@@ -1746,10 +1732,8 @@ static int do_bootm_integrity(int flag, int argc, char * const argv[],
 {
        void (*entry_point)(void);
 
-       if (flag & BOOTM_STATE_OS_PREP)
+       if (flag != BOOTM_STATE_OS_GO)
                return 0;
-       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
-               return 1;
 
 #if defined(CONFIG_FIT)
        if (!images->legacy_hdr_valid) {
index a46f5cc3431a1b3e386247952aa227db06460622..1f12e6deb63f0d34bf5083a1df744ae55d74bcbd 100644 (file)
@@ -11,7 +11,6 @@
 #include <common.h>
 #include <malloc.h>
 #include <command.h>
-#include <mmc.h>
 #include <part_efi.h>
 #include <exports.h>
 #include <linux/ctype.h>
@@ -122,7 +121,7 @@ static int set_gpt_info(block_dev_desc_t *dev_desc,
        int errno = 0;
        uint64_t size_ll, start_ll;
 
-       debug("%s: MMC lba num: 0x%x %d\n", __func__,
+       debug("%s:  lba num: 0x%x %d\n", __func__,
              (unsigned int)dev_desc->lba, (unsigned int)dev_desc->lba);
 
        if (str_part == NULL)
@@ -235,25 +234,18 @@ err:
        return errno;
 }
 
-static int gpt_mmc_default(int dev, const char *str_part)
+static int gpt_default(block_dev_desc_t *blk_dev_desc, const char *str_part)
 {
        int ret;
        char *str_disk_guid;
        u8 part_count = 0;
        disk_partition_t *partitions = NULL;
 
-       struct mmc *mmc = find_mmc_device(dev);
-
-       if (mmc == NULL) {
-               printf("%s: mmc dev %d NOT available\n", __func__, dev);
-               return CMD_RET_FAILURE;
-       }
-
        if (!str_part)
                return -1;
 
        /* fill partitions */
-       ret = set_gpt_info(&mmc->block_dev, str_part,
+       ret = set_gpt_info(blk_dev_desc, str_part,
                        &str_disk_guid, &partitions, &part_count);
        if (ret) {
                if (ret == -1)
@@ -266,7 +258,7 @@ static int gpt_mmc_default(int dev, const char *str_part)
        }
 
        /* save partitions layout to disk */
-       gpt_restore(&mmc->block_dev, str_disk_guid, partitions, part_count);
+       gpt_restore(blk_dev_desc, str_disk_guid, partitions, part_count);
        free(str_disk_guid);
        free(partitions);
 
@@ -287,27 +279,28 @@ static int do_gpt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        int ret = CMD_RET_SUCCESS;
        int dev = 0;
-       char *pstr;
+       char *ep;
+       block_dev_desc_t *blk_dev_desc;
 
        if (argc < 5)
                return CMD_RET_USAGE;
 
        /* command: 'write' */
        if ((strcmp(argv[1], "write") == 0) && (argc == 5)) {
-               /* device: 'mmc' */
-               if (strcmp(argv[2], "mmc") == 0) {
-                       /* check if 'dev' is a number */
-                       for (pstr = argv[3]; *pstr != '\0'; pstr++)
-                               if (!isdigit(*pstr)) {
-                                       printf("'%s' is not a number\n",
-                                               argv[3]);
-                                       return CMD_RET_USAGE;
-                               }
-                       dev = (int)simple_strtoul(argv[3], NULL, 10);
-                       /* write to mmc */
-                       if (gpt_mmc_default(dev, argv[4]))
-                               return CMD_RET_FAILURE;
+               dev = (int)simple_strtoul(argv[3], &ep, 10);
+               if (!ep || ep[0] != '\0') {
+                       printf("'%s' is not a number\n", argv[3]);
+                       return CMD_RET_USAGE;
                }
+               blk_dev_desc = get_dev(argv[2], dev);
+               if (!blk_dev_desc) {
+                       printf("%s: %s dev %d NOT available\n",
+                              __func__, argv[2], dev);
+                       return CMD_RET_FAILURE;
+               }
+
+               if (gpt_default(blk_dev_desc, argv[4]))
+                       return CMD_RET_FAILURE;
        } else {
                return CMD_RET_USAGE;
        }
index ba9ba16972cda0c3502fd24399f2666f20544046..5bcc324675eb7535c9e103cd473134122b83e376 100644 (file)
@@ -157,10 +157,8 @@ static int do_env_grep(cmd_tbl_t *cmdtp, int flag,
        grep_how  = H_MATCH_SUBSTR;     /* default: substring search    */
        grep_what = H_MATCH_BOTH;       /* default: grep names and values */
 
-       while (argc > 1 && **(argv + 1) == '-') {
-               char *arg = *++argv;
-
-               --argc;
+       while (--argc > 0 && **++argv == '-') {
+               char *arg = *argv;
                while (*++arg) {
                        switch (*arg) {
 #ifdef CONFIG_REGEX
@@ -1059,6 +1057,23 @@ sep_err:
 }
 #endif
 
+#if defined(CONFIG_CMD_ENV_EXISTS)
+static int do_env_exists(cmd_tbl_t *cmdtp, int flag, int argc,
+                      char * const argv[])
+{
+       ENTRY e, *ep;
+
+       if (argc < 2)
+               return CMD_RET_USAGE;
+
+       e.key = argv[1];
+       e.data = NULL;
+       hsearch_r(e, FIND, &ep, &env_htab, 0);
+
+       return (ep == NULL) ? 1 : 0;
+}
+#endif
+
 /*
  * New command line interface: "env" command with subcommands
  */
@@ -1094,6 +1109,9 @@ static cmd_tbl_t cmd_env_sub[] = {
        U_BOOT_CMD_MKENT(save, 1, 0, do_env_save, "", ""),
 #endif
        U_BOOT_CMD_MKENT(set, CONFIG_SYS_MAXARGS, 0, do_env_set, "", ""),
+#if defined(CONFIG_CMD_ENV_EXISTS)
+       U_BOOT_CMD_MKENT(exists, 2, 0, do_env_exists, "", ""),
+#endif
 };
 
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
@@ -1136,6 +1154,9 @@ static char env_help_text[] =
 #if defined(CONFIG_CMD_EDITENV)
        "env edit name - edit environment variable\n"
 #endif
+#if defined(CONFIG_CMD_ENV_EXISTS)
+       "env exists name - tests for existence of variable\n"
+#endif
 #if defined(CONFIG_CMD_EXPORTENV)
        "env export [-t | -b | -c] [-s size] addr [var ...] - export environment\n"
 #endif
index b9d2449e332055b904f2afa4956c3217367544c6..887156486a136af8235e8d25b54f582c0ecd7ca4 100644 (file)
@@ -141,7 +141,7 @@ int do_reiserload (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        filelen = reiserfs_open(filename);
        if (filelen < 0) {
-               printf("** File not found %s\n", filename);
+               printf("** File not found %s **\n", filename);
                return 1;
        }
        if ((count < filelen) && (count != 0)) {
index eba54fd004c64924759089024b2da9b6bec1f400..d9af023d703d08319bc196cf76b3585ea5b54196 100644 (file)
@@ -104,8 +104,10 @@ int do_ubifs_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        debug("Using filename %s\n", filename);
 
        ret = ubifs_ls(filename);
-       if (ret)
-               printf("%s not found!\n", filename);
+       if (ret) {
+               printf("** File not found %s **\n", filename);
+               ret = CMD_RET_FAILURE;
+       }
 
        return ret;
 }
@@ -140,8 +142,10 @@ int do_ubifs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        debug("Loading file '%s' to address 0x%08x (size %d)\n", filename, addr, size);
 
        ret = ubifs_load(filename, addr, size);
-       if (ret)
-               printf("%s not found!\n", filename);
+       if (ret) {
+               printf("** File not found %s **\n", filename);
+               ret = CMD_RET_FAILURE;
+       }
 
        return ret;
 }
index 911086809baebb4294c2303017da7312f9af84e8..0aed29e9b2c8989d86c3ff14fad67feca692b1f8 100644 (file)
@@ -95,7 +95,7 @@ static int do_zfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
        memset(&zfile, 0, sizeof(zfile));
        zfile.device = &vdev;
        if (zfs_open(&zfile, filename)) {
-               printf("** File not found %s\n", filename);
+               printf("** File not found %s **\n", filename);
                return 1;
        }
 
index 6f475f0cca812ea8b69d5b3842819f1d9fa04ff3..8b6f274fa25f723fd2553c1c61a2a32606a90f1a 100644 (file)
@@ -392,13 +392,13 @@ static void process_boot_delay(void)
        debug ("### main_loop: bootcmd=\"%s\"\n", s ? s : "<UNDEFINED>");
 
        if (bootdelay != -1 && s && !abortboot(bootdelay)) {
-#ifdef CONFIG_AUTOBOOT_KEYED
+#if defined(CONFIG_AUTOBOOT_KEYED) && !defined(CONFIG_AUTOBOOT_KEYED_CTRLC)
                int prev = disable_ctrlc(1);    /* disable Control C checking */
 #endif
 
                run_command_list(s, -1, 0);
 
-#ifdef CONFIG_AUTOBOOT_KEYED
+#if defined(CONFIG_AUTOBOOT_KEYED) && !defined(CONFIG_AUTOBOOT_KEYED_CTRLC)
                disable_ctrlc(prev);    /* restore Control C checking */
 #endif
        }
index 91a8f2406b56d505413f2b3be7be17560ad73b35..344138759ca9381bdadbe02323f55fafcf76c9d5 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -257,10 +257,10 @@ endif
 endif
 
 ifneq ($(OBJTREE),$(SRCTREE))
-CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include
+CPPFLAGS += -I$(OBJTREE)/include
 endif
 
-CPPFLAGS += -I$(TOPDIR)/include
+CPPFLAGS += -I$(TOPDIR)/include -I$(SRCTREE)/arch/$(ARCH)/include
 CPPFLAGS += -fno-builtin -ffreestanding -nostdinc      \
        -isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS)
 
index ff58a79e490a94502f4951cf0792ec97f80a8a48..14e3660dd8d7634e058d280bed1e457de8838066 100644 (file)
@@ -74,6 +74,7 @@ What they do
        "bootretry" is >= 0.
 
   CONFIG_AUTOBOOT_KEYED
+  CONFIG_AUTOBOOT_KEYED_CTRLC
   CONFIG_AUTOBOOT_PROMPT
   CONFIG_AUTOBOOT_DELAY_STR
   CONFIG_AUTOBOOT_STOP_STR
@@ -135,6 +136,13 @@ What they do
        environment variable you can specify a second, alternate
        string (which allows you to have two "password" strings).
 
+       The CONFIG_AUTOBOOT_KEYED_CTRLC #define allows for the boot
+       sequence to be interrupted by ctrl-c, in addition to the
+       "bootdelaykey" and "bootstopkey". Setting this variable
+       provides an escape sequence from the limited "password"
+       strings.
+
+
   CONFIG_ZERO_BOOTDELAY_CHECK
 
        If this option is defined, you can stop the autoboot process
index 0f9a486185f1178cece6b9e0efaa27bb74b5ce98..7cfb3a3772a3e82638d32676e806fcc6aa12a047 100644 (file)
@@ -16,10 +16,11 @@ CANBT            powerpc     405CR          fb8f4fd     2013-08-07  Matthias Fuc
 Alaska8220       powerpc     mpc8220        d6ed322     2013-05-11
 Yukon8220        powerpc     mpc8220        d6ed322     2013-05-11
 sorcery          powerpc     mpc8220        d6ed322     2013-05-11
-smdk6400         arm         arm1176        52587f1    2013-04-12  Zhong Hongbo <bocui107@gmail.com>
-ns9750dev        arm         arm926ejs      4cfc611    2013-02-28  Markus Pietrek <mpietrek@fsforth.de>
+smdk6400         arm         arm1176        52587f1     2013-04-12  Zhong Hongbo <bocui107@gmail.com>
+ns9750dev        arm         arm926ejs      4cfc611     2013-02-28  Markus Pietrek <mpietrek@fsforth.de>
 AMX860           powerpc     mpc860         1b0757e     2012-10-28  Wolfgang Denk <wd@denx.de>
 c2mon            powerpc     mpc855         1b0757e     2012-10-28  Wolfgang Denk <wd@denx.de>
+EP88x            powerpc     mpc885         1b0757e     2012-10-28
 ETX094           powerpc     mpc850         1b0757e     2012-10-28  Wolfgang Denk <wd@denx.de>
 IAD210           powerpc     mpc860         1b0757e     2012-10-28  -
 LANTEC           powerpc     mpc850         1b0757e     2012-10-28  Wolfgang Denk <wd@denx.de>
@@ -97,5 +98,5 @@ adsvix           ARM         PXA27x         7610db1     2008-07-30  Adrian Filip
 R5200            ColdFire    -              48ead7a     2008-03-31  Zachary P. Landau <zachary.landau@labxtechnologies.com>
 CPCI440          powerpc     440GP          b568fd2     2007-12-27  Matthias Fuchs <matthias.fuchs@esd-electronics.com>
 PCIPPC2          powerpc     MPC740/MPC750  7c9e89b     2013-02-07  Wolfgang Denk <wd@denx.de>
-PCIPPC6        powerpc MPC740/MPC750 -   -             Wolfgang Denk <wd@denx.de>
+PCIPPC6          powerpc     MPC740/MPC750  -           -           Wolfgang Denk <wd@denx.de>
 omap2420h4       arm         omap24xx       -           2013-06-04  Richard Woodruff <r-woodruff2@ti.com>
index ffbbdf3a7a1112541c8727be15ced6afc58e5500..0437d9bb9c0e5c9095cb871c9c4007729d9b585a 100644 (file)
@@ -221,58 +221,58 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) ahci.c
-  ---------
+  ahci.c
+  ------
     SCSI API, will be rewritten for a different API.
 
-  2) ata_piix.c
-  -------------
+  ata_piix.c
+  ----------
     SATA API, easy to port.
 
-  3) fsl_sata.c
-  -------------
+  fsl_sata.c
+  ----------
     SATA API, few CONFIG macros, easy to port.
 
-  4) ftide020.c
-  -------------
+  ftide020.c
+  ----------
     IDE API, defines CONFIG_IDE_AHB and ide_preinit hook functions.
 
-  5) mg_disk.c
-  ------------
+  mg_disk.c
+  ---------
     Single driver with mg_disk API, not much to change, easy to port.
 
-  6) mvsata_ide.c
-  ---------------
+  mvsata_ide.c
+  ------------
     IDE API, only defines ide_preinit hook function.
 
-  7) mxc_ata.c
-  ------------
+  mxc_ata.c
+  ---------
     IDE API, only defines ide_preinit hook function.
 
-  8) pata_bfin.c
-  --------------
+  pata_bfin.c
+  -----------
     SATA API, easy to port.
 
-  9) sata_dwc.c
-  -------------
+  sata_dwc.c
+  ----------
     SATA API, easy to port.
 
-  10) sata_sil3114.c
-  ------------------
+  sata_sil3114.c
+  --------------
     SATA API, easy to port.
 
-  11) sata_sil.c
-  --------------
+  sata_sil.c
+  ----------
     SATA API, easy to port.
 
-  12) sil680.c
-  ------------
+  sil680.c
+  --------
     IDE API, only defines ide_preinit hook function.
 
-  13) sym53c8xx.c
-  ---------------
+  sym53c8xx.c
+  -----------
     SCSI API, may be merged with code from cmd_scsi.
 
-  14) systemace.c
-  ---------------
+  systemace.c
+  -----------
     Single driver with systemace API, not much to change, easy to port.
index 87554dde68f47e270e769cc7732cba87a1b4bde5..585d45868c4e4b747234c1b804f410fa2704d621 100644 (file)
@@ -68,39 +68,39 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) altera_pio.c
-  ---------------
+  altera_pio.c
+  ------------
   Meets standard API. Implements gpio_request() properly. Simple conversion
   possible.
 
-  2) at91_gpio.c
-  --------------
+  at91_gpio.c
+  -----------
   Don't meet standard API. Need some other methods to implement.
 
-  3) da8xx_gpio.c
-  ---------------
+  da8xx_gpio.c
+  ------------
   Meets standard API. Implements gpio_request() properly. Simple conversion
   possible.
 
-  4) kw_gpio.c
-  ------------
+  kw_gpio.c
+  ---------
   Doesn't meet standard API. Needs some other methods to implement and move some
   methods to another file.
 
-  5) mpc83xx_gpio.c
-  -----------------
+  mpc83xx_gpio.c
+  --------------
   Meets standard API. Doesn't implement gpio_request() properly (only checks
   if the pin is valid). Simple conversion possible.
 
-  6) mvgpio.c
-  -----------
+  mvgpio.c
+  --------
   Meets standard API. Doesn't implement gpio_request() properly (only checks
   if the pin is valid). Simple conversion possible.
 
-  7) mvgpio.h
-  -----------
+  mvgpio.h
+  --------
   Wrong placement. Will be moved to another location.
 
-  8) mvmfp.c
-  ----------
+  mvmfp.c
+  -------
   Wrong placement. Will be moved to another location.
index 9048cc0f005a9a44b01cebd8788edd2c4f641b59..03a96a057a0bf7980811b9621b5b472fc9e81135 100644 (file)
@@ -71,48 +71,48 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) drivers/hwmon/lm81.c
-  -----------------------
+  drivers/hwmon/lm81.c
+  --------------------
   The driver is standard dtt. Simple conversion is possible.
 
 
-  2) drivers/hwmon/ds1722.c
-  -------------------------
+  drivers/hwmon/ds1722.c
+  ----------------------
   The driver is not standard dtt, but interface is similar to dtt.
   The interface has to be changed in order to comply to above mentioned
   specification.
 
 
-  3) drivers/hwmon/ds1775.c
-  -------------------------
+  drivers/hwmon/ds1775.c
+  ----------------------
   The driver is standard dtt. Simple conversion is possible.
 
 
-  4) drivers/hwmon/lm73.c
-  -----------------------
+  drivers/hwmon/lm73.c
+  --------------------
   The driver is standard dtt. Simple conversion is possible.
 
 
-  5) drivers/hwmon/lm63.c
-  -----------------------
+  drivers/hwmon/lm63.c
+  --------------------
   The driver is standard dtt. Simple conversion is possible.
 
 
-  6) drivers/hwmon/adt7460.c
-  --------------------------
+  drivers/hwmon/adt7460.c
+  -----------------------
   The driver is standard dtt. Simple conversion is possible.
 
 
-  7) drivers/hwmon/lm75.c
-  -----------------------
+  drivers/hwmon/lm75.c
+  --------------------
   The driver is standard dtt. Simple conversion is possible.
 
 
-  8) drivers/hwmon/ds1621.c
-  -------------------------
+  drivers/hwmon/ds1621.c
+  ----------------------
   The driver is standard dtt. Simple conversion is possible.
 
 
-  9) drivers/hwmon/adm1021.c
-  --------------------------
+  drivers/hwmon/adm1021.c
+  -----------------------
   The driver is standard dtt. Simple conversion is possible.
index ef3761dc248494b869dc1ecc4cc8da011e693f3c..5babfc55f19c8315968f9d9125d5ff2a540d4fdb 100644 (file)
@@ -28,18 +28,18 @@ be converted into driver's private data.
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) board/mpl/common/kbd.c
-  -------------------------
+  board/mpl/common/kbd.c
+  ----------------------
   This driver is a classic STDIO driver, no problem with conversion is expected.
   Only necessary change will be to move this driver to a proper location.
 
-  2) board/rbc823/kbd.c
-  ---------------------
+  board/rbc823/kbd.c
+  ------------------
   This driver is a classic STDIO driver, no problem with conversion is expected.
   Only necessary change will be to move this driver to a proper location.
 
-  3) drivers/input/keyboard.c
-  ---------------------------
+  drivers/input/keyboard.c
+  ------------------------
   This driver is special in many ways. Firstly because this is a universal stub
   driver for converting scancodes from i8042 and the likes. Secondly because the
   buffer is filled by various other ad-hoc implementations of keyboard input by
index 1f07d874ea2b7e492039f064d9ddd742cede912b..97f83a77764e34d65bca79c271b2c9c27dc5e971 100644 (file)
@@ -220,100 +220,100 @@ As for the legacy drivers, these will either be converted or removed altogether.
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) arm_pl180_mmci.c
-  -------------------
+  arm_pl180_mmci.c
+  ----------------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  2) atmel_mci.c
-  --------------
+  atmel_mci.c
+  -----------
   This driver uses the legacy API and should be removed unless converted. It is
   probably possbible to replace this driver with gen_atmel_mci.c . No conversion
   will be done on this driver.
 
-  3) bfin_sdh.c
-  -------------
+  bfin_sdh.c
+  ----------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  4) davinci_mmc.c
-  ----------------
+  davinci_mmc.c
+  -------------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  5) fsl_esdhc.c
-  --------------
+  fsl_esdhc.c
+  -----------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple, unless some problem appears due to the FDT
   component of the driver.
 
-  6) ftsdc010_esdhc.c
-  -------------------
+  ftsdc010_esdhc.c
+  ----------------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  7) gen_atmel_mci.c
-  ------------------
+  gen_atmel_mci.c
+  ---------------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  8) mmc_spi.c
-  ------------
+  mmc_spi.c
+  ---------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  9) mv_sdhci.c
-  -------------
+  mv_sdhci.c
+  ----------
   This is a component of the SDHCI support, allowing it to run on Marvell
   Kirkwood chip. It is probable the SDHCI support will have to be modified to
   allow calling functions from this file based on information passed via
   platform_data.
 
-  10) mxcmmc.c
-  ------------
+  mxcmmc.c
+  --------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  11) mxsmmc.c
-  ------------
+  mxsmmc.c
+  --------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  12) omap_hsmmc.c
-  ----------------
+  omap_hsmmc.c
+  ------------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  13) pxa_mmc.c
-  -------------
+  pxa_mmc.c
+  ---------
   This driver uses the legacy API and is written in a severely ad-hoc manner.
   This driver will be removed in favor of pxa_mmc_gen.c, which is proved to work
   better and is already well tested. No conversion will be done on this driver
   anymore.
 
-  14) pxa_mmc_gen.c
-  -----------------
+  pxa_mmc_gen.c
+  -------------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  15) s5p_mmc.c
-  -------------
+  s5p_mmc.c
+  ---------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  16) sdhci.c
-  -----------
+  sdhci.c
+  -------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple, though it'd be necessary to modify this driver
   to also support the Kirkwood series and probably also Tegra series of CPUs.
   See the respective parts of this section for details.
 
-  17) sh_mmcif.c
-  --------------
+  sh_mmcif.c
+  ----------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
 
-  18) tegra2_mmc.c
-  ----------------
+  tegra2_mmc.c
+  ------------
   Follows the new API and also has a good encapsulation of the whole driver. The
   conversion here will be simple.
index e2ea8f5a601bca9607859be55b7eb05fa070fd3d..097ed69600ea43a684a66445892986a819dbdb85 100644 (file)
@@ -108,327 +108,321 @@ replacement of per-driver initialization functions and removal of
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) drivers/net/4xx_enet.c
-  -------------------------
+  drivers/net/4xx_enet.c
+  ----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  2) drivers/net/altera_tse.c
-  ---------------------------
+  drivers/net/altera_tse.c
+  ------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  3) drivers/net/armada100_fec.c
-  ------------------------------
+  drivers/net/armada100_fec.c
+  ---------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  4) drivers/net/at91_emac.c
-  --------------------------
+  drivers/net/at91_emac.c
+  -----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  5) drivers/net/ax88180.c
-  ------------------------
+  drivers/net/ax88180.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  6) drivers/net/ax88796.c
-  ------------------------
+  drivers/net/ax88796.c
+  ---------------------
 
   This file contains a components of the NE2000 driver, implementing only
   different parts on the NE2000 clone AX88796. This being no standalone driver,
   no conversion will be done here.
 
-  7) drivers/net/bfin_mac.c
-  -------------------------
+  drivers/net/bfin_mac.c
+  ----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  8) drivers/net/calxedaxgmac.c
-  -----------------------------
+  drivers/net/calxedaxgmac.c
+  --------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  9) drivers/net/cs8900.c
-  -----------------------
+  drivers/net/cs8900.c
+  --------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  10) drivers/net/davinci_emac.c
-  ------------------------------
+  drivers/net/davinci_emac.c
+  --------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  11) drivers/net/dc2114x.c
-  -------------------------
+  drivers/net/dc2114x.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  12) drivers/net/designware.c
-  ----------------------------
+  drivers/net/designware.c
+  ------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  13) drivers/net/dm9000x.c
-  -------------------------
+  drivers/net/dm9000x.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  14) drivers/net/dnet.c
-  ----------------------
+  drivers/net/dnet.c
+  ------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  15) drivers/net/e1000.c
-  -----------------------
+  drivers/net/e1000.c
+  -------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  16) drivers/net/e1000_spi.c
-  ---------------------------
+  drivers/net/e1000_spi.c
+  -----------------------
 
   Driver for the SPI bus integrated on the Intel E1000. This is not part of the
   network stack.
 
-  17) drivers/net/eepro100.c
-  --------------------------
+  drivers/net/eepro100.c
+  ----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  18) drivers/net/enc28j60.c
-  --------------------------
+  drivers/net/enc28j60.c
+  ----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  19) drivers/net/ep93xx_eth.c
-  ----------------------------
+  drivers/net/ep93xx_eth.c
+  ------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  20) drivers/net/ethoc.c
-  -----------------------
+  drivers/net/ethoc.c
+  -------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  21) drivers/net/fec_mxc.c
-  -------------------------
+  drivers/net/fec_mxc.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  22) drivers/net/fsl_mcdmafec.c
-  ------------------------------
+  drivers/net/fsl_mcdmafec.c
+  --------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  23) drivers/net/fsl_mdio.c
-  --------------------------
+  drivers/net/fsl_mdio.c
+  ----------------------
 
   This file contains driver for FSL MDIO interface, which is not part of the
   networking stack.
 
-  24) drivers/net/ftgmac100.c
-  ---------------------------
+  drivers/net/ftgmac100.c
+  -----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  25) drivers/net/ftmac100.c
-  --------------------------
+  drivers/net/ftmac100.c
+  ----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  26) drivers/net/greth.c
-  -----------------------
+  drivers/net/greth.c
+  -------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  27) drivers/net/inca-ip_sw.c
-  ----------------------------
+  drivers/net/inca-ip_sw.c
+  ------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  28) drivers/net/ks8695eth.c
-  ---------------------------
+  drivers/net/ks8695eth.c
+  -----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  29) drivers/net/lan91c96.c
-  --------------------------
+  drivers/net/lan91c96.c
+  ----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  30) drivers/net/macb.c
-  ----------------------
+  drivers/net/macb.c
+  ------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  31) drivers/net/mcffec.c
-  ------------------------
+  drivers/net/mcffec.c
+  --------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  32) drivers/net/mcfmii.c
-  ------------------------
+  drivers/net/mcfmii.c
+  --------------------
 
   This file contains MII interface driver for MCF FEC.
 
-  33) drivers/net/mpc512x_fec.c
-  -----------------------------
+  drivers/net/mpc512x_fec.c
+  -------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  34) drivers/net/mpc5xxx_fec.c
-  -----------------------------
+  drivers/net/mpc5xxx_fec.c
+  -------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  35) drivers/net/mvgbe.c
-  -----------------------
+  drivers/net/mvgbe.c
+  -------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  36) drivers/net/natsemi.c
-  -------------------------
+  drivers/net/natsemi.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  37) drivers/net/ne2000_base.c
-  -----------------------------
+  drivers/net/ne2000_base.c
+  -------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process. This driver contains the core
   implementation of NE2000, which needs a few external functions, implemented by
   AX88796, NE2000 etc.
 
-  38) drivers/net/ne2000.c
-  ------------------------
+  drivers/net/ne2000.c
+  --------------------
 
   This file implements external functions necessary for native NE2000 compatible
   networking card to work.
 
-  39) drivers/net/netarm_eth.c
-  ----------------------------
-
-  This driver uses the old, legacy, network API and will either have to be
-  converted or removed.
-
-  40) drivers/net/netconsole.c
-  ----------------------------
+  drivers/net/netconsole.c
+  ------------------------
 
   This is actually an STDIO driver.
 
-  41) drivers/net/ns8382x.c
-  -------------------------
+  drivers/net/ns8382x.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  42) drivers/net/pcnet.c
-  -----------------------
+  drivers/net/pcnet.c
+  -------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  43) drivers/net/plb2800_eth.c
-  -----------------------------
+  drivers/net/plb2800_eth.c
+  -------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  44) drivers/net/rtl8139.c
-  -------------------------
+  drivers/net/rtl8139.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  45) drivers/net/rtl8169.c
-  -------------------------
+  drivers/net/rtl8169.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  46) drivers/net/sh_eth.c
-  ------------------------
+  drivers/net/sh_eth.c
+  --------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  47) drivers/net/smc91111.c
-  --------------------------
+  drivers/net/smc91111.c
+  ----------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  48) drivers/net/smc911x.c
-  -------------------------
+  drivers/net/smc911x.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  49) drivers/net/tsec.c
-  ----------------------
+  drivers/net/tsec.c
+  ------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  50) drivers/net/tsi108_eth.c
-  ----------------------------
+  drivers/net/tsi108_eth.c
+  ------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  51) drivers/net/uli526x.c
-  -------------------------
+  drivers/net/uli526x.c
+  ---------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  52) drivers/net/vsc7385.c
-  -------------------------
+  drivers/net/vsc7385.c
+  ---------------------
 
   This is a driver that only uploads firmware to a switch. This is not subject
   of conversion.
 
-  53) drivers/net/xilinx_axi_emac.c
-  ---------------------------------
+  drivers/net/xilinx_axi_emac.c
+  -----------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
 
-  54) drivers/net/xilinx_emaclite.c
-  ---------------------------------
+  drivers/net/xilinx_emaclite.c
+  -----------------------------
 
   This driver uses the standard new networking API, therefore there should be no
   obstacles throughout the conversion process.
index 6a592b336887bea079747ece7ba453d6dde63948..059a4329fb935d52c95be11766f3df38c4574490 100644 (file)
@@ -120,136 +120,136 @@ III) Analysis of in-tree drivers
   A) drivers in drivers/pci/
   --------------------------
 
-    1) pci_indirect.c
-    -----------------
+    pci_indirect.c
+    --------------
       Shared driver for indirect PCI bridges, several CONFIG macros - will
       require significant cleanup.
 
-    2) pci_ixp.c
-    ------------
+    pci_ixp.c
+    ---------
       Standard driver, specifies all read/write functions separately.
 
-    3) pci_sh4.c
-    ------------
+    pci_sh4.c
+    ---------
       Shared init function for SH4 drivers, uses dword for read/write ops.
 
-    4) pci_sh7751.c
-    ---------------
+    pci_sh7751.c
+    ------------
       Standard driver, uses SH4 shared init.
 
-    5) pci_sh7780.c
-    ---------------
+    pci_sh7780.c
+    ------------
       Standard driver, uses SH4 shared init.
 
-    6) tsi108_pci.c
-    ---------------
+    tsi108_pci.c
+    ------------
       Standard driver, uses dword for read/write ops.
 
-    7) fsl_pci_init.c
-    -----------------
+    fsl_pci_init.c
+    --------------
       Driver for PCI and PCI-e, uses indirect functions.
 
-    8) pci_ftpci100.c
-    -----------------
+    pci_ftpci100.c
+    --------------
       Standard driver, uses indirect functions, has separate scan/setup
       functions.
 
   B) driver in arch/
   ------------------
 
-    1) x86/lib/pci_type1.c
-    ----------------------
+    x86/lib/pci_type1.c
+    -------------------
       Standard driver, specifies all read/write functions separately.
 
-    2) m68k/cpu/mcf5445x/pci.c
-    --------------------------
+    m68k/cpu/mcf5445x/pci.c
+    -----------------------
       Standard driver, specifies all read/write functions separately.
 
-    3) m68k/cpu/mcf547x_8x/pci.c
-    ----------------------------
+    m68k/cpu/mcf547x_8x/pci.c
+    -------------------------
       Standard driver, specifies all read/write functions separately.
 
-    4) powerpc/cpu/mpc824x/pci.c
-    ----------------------------
+    powerpc/cpu/mpc824x/pci.c
+    -------------------------
       Standard driver, uses indirect functions, does not setup HW.
 
-    5) powerpc/cpu/mpc8260/pci.c
-    ----------------------------
+    powerpc/cpu/mpc8260/pci.c
+    -------------------------
       Standard driver, uses indirect functions.
 
-    6) powerpc/cpu/ppc4xx/4xx_pci.c
-    -------------------------------
+    powerpc/cpu/ppc4xx/4xx_pci.c
+    ----------------------------
       Standard driver, uses indirect functions.
 
-    7) powerpc/cpu/ppc4xx/4xx_pcie.c
-    --------------------------------
+    powerpc/cpu/ppc4xx/4xx_pcie.c
+    -----------------------------
       PCI-e driver, specifies all read/write functions separately.
 
-    8) powerpc/cpu/mpc83xx/pci.c
-    ----------------------------
+    powerpc/cpu/mpc83xx/pci.c
+    -------------------------
       Standard driver, uses indirect functions.
 
-    9) powerpc/cpu/mpc83xx/pcie.c
-    -----------------------------
+    powerpc/cpu/mpc83xx/pcie.c
+    --------------------------
       PCI-e driver, specifies all read/write functions separately.
 
-    10) powerpc/cpu/mpc5xxx/pci_mpc5200.c
-    -------------------------------------
+    powerpc/cpu/mpc5xxx/pci_mpc5200.c
+    ---------------------------------
       Standard driver, uses dword for read/write ops.
 
-    11) powerpc/cpu/mpc512x/pci.c
-    -----------------------------
+    powerpc/cpu/mpc512x/pci.c
+    -------------------------
       Standard driver, uses indirect functions.
 
-    12) powerpc/cpu/mpc85xx/pci.c
-    -----------------------------
+    powerpc/cpu/mpc85xx/pci.c
+    -------------------------
       Standard driver, uses indirect functions, has two busses.
 
   C) drivers in board/
   --------------------
 
-    1) eltec/elppc/pci.c
-    --------------------
+    eltec/elppc/pci.c
+    -----------------
       Standard driver, uses indirect functions.
 
-    2) amirix/ap1000/pci.c
-    ----------------------
+    amirix/ap1000/pci.c
+    -------------------
       Standard driver, specifies all read/write functions separately.
 
-    3) prodrive/p3mx/pci.c
-    ----------------------
+    prodrive/p3mx/pci.c
+    -------------------
       Standard driver, uses dword for read/write ops, has two busses.
 
-    4) esd/cpci750/pci.c
-    --------------------
+    esd/cpci750/pci.c
+    -----------------
       Standard driver, uses dword for read/write ops, has two busses.
 
-    5) esd/common/pci.c
-    -------------------
+    esd/common/pci.c
+    ----------------
       Standard driver, uses dword for read/write ops.
 
-    6) dave/common/pci.c
-    --------------------
+    dave/common/pci.c
+    -----------------
       Standard driver, uses dword for read/write ops.
 
-    7) ppmc7xx/pci.c
-    ----------------
+    ppmc7xx/pci.c
+    -------------
       Standard driver, uses indirect functions.
 
-    9) Marvell/db64360/pci.c
-    ------------------------
+    Marvell/db64360/pci.c
+    ---------------------
       Standard driver, uses dword for read/write ops, has two busses.
 
-    10) Marvell/db64460/pci.c
-    -------------------------
+    Marvell/db64460/pci.c
+    ---------------------
       Standard driver, uses dword for read/write ops, has two busses.
 
-    11) evb64260/pci.c
-    ------------------
+    evb64260/pci.c
+    --------------
       Standard driver, uses dword for read/write ops, has two busses.
 
-    12) armltd/integrator/pci.c
-    ---------------------------
+    armltd/integrator/pci.c
+    -----------------------
       Standard driver, specifies all read/write functions separately.
 
   All drivers will be moved to drivers/pci. Several drivers seem
index fc31461ca7229873b78d7ce7ff87e38e3d2c882e..d55e89df6a71cb15f9461a030c868aeb79acffe4 100644 (file)
@@ -47,32 +47,32 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) i82365.c
-  -----------
+  i82365.c
+  --------
     Driver methods have different name i82365_init() and i82365_exit but
     all functionality is the same. Board files board/atc/ti113x.c and
     board/cpc45/pd67290.c use their own implementation of these method.
     In this case all methods in driver behave only as wrappers.
 
-  2) marubun_pcmcia.c
-  -------------------
+  marubun_pcmcia.c
+  ----------------
     Meets standard API behaviour. Simple conversion.
 
-  3) mpc8xx_pcmcia.c
-  ------------------
+  mpc8xx_pcmcia.c
+  ---------------
     Meets standard API behaviour. Simple conversion.
 
-  4) rpx_pcmcia.c
-  ---------------
+  rpx_pcmcia.c
+  ------------
     Implements only internal API used in other drivers. Non of methods
     implemented here are used outside driver model.
 
-  5) ti_pci1410a.c
-  ----------------
+  ti_pci1410a.c
+  -------------
     Has different API but methods in this file are never called. Probably
     dead code.
 
-  6)tqm8xx_pcmcia.c
-  -----------------
+  tqm8xx_pcmcia.c
+  ---------------
     Implements only internal API used in other drivers. Non of methods
     implemented here are used outside driver model.
index 015c7737f6a23ffd3d55c76b58babb0c92db1ac6..666d55305f4448453cdc052d32ea78e391d0da99 100644 (file)
@@ -52,8 +52,8 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) ftpmu010.c
-  -------------
+  ftpmu010.c
+  ----------
   All methods of this file are moved to another location.
     void ftpmu010_32768osc_enable(void): Move to boards hacks
     void ftpmu010_mfpsr_select_dev(unsigned int dev): Move to board file
@@ -65,8 +65,8 @@ III) Analysis of in-tree drivers
     void ftpmu010_sdramhtc_set(unsigned int val): Move to board file
                                                  arch/nds32/lib/board.c
 
-  2) twl4030.c
-  ------------
+  twl4030.c
+  ---------
   All methods of this file are moved to another location.
     void twl4030_power_reset_init(void): Move to board hacks
     void twl4030_pmrecv_vsel_cfg(u8 vsel_reg, u8 vsel_val, u8 dev_grp,
@@ -74,8 +74,8 @@ III) Analysis of in-tree drivers
     void twl4030_power_init(void): Move to board hacks
     void twl4030_power_mmc_init(void): Move to board hacks
 
-  3) twl6030.c
-  ------------
+  twl6030.c
+  ---------
   Some methods are converted to new API and rest are moved to another location.
     void twl6030_stop_usb_charging(void): Convert to new API
     void twl6030_start_usb_charging(void): Convert to new API
index 8391f387236ce4821bbffcc73153cbed1ff5349c..3640d24c2847197dea82c7a79308fa4128b9a584 100644 (file)
@@ -62,192 +62,192 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) drivers/rtc/rv3029.c
-  -----------------------
+  drivers/rtc/rv3029.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  2) drivers/rtc/s3c24x0_rtc.c
-  ----------------------------
+  drivers/rtc/s3c24x0_rtc.c
+  -------------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  3) drivers/rtc/pt7c4338.c
-  -------------------------
+  drivers/rtc/pt7c4338.c
+  ----------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  4) drivers/rtc/mvrtc.c
-  ----------------------
+  drivers/rtc/mvrtc.c
+  -------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  5) drivers/rtc/ftrtc010.c
-  -------------------------
+  drivers/rtc/ftrtc010.c
+  ----------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  6) drivers/rtc/mpc5xxx.c
-  ------------------------
+  drivers/rtc/mpc5xxx.c
+  ---------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  7) drivers/rtc/ds164x.c
-  -----------------------
+  drivers/rtc/ds164x.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  8) drivers/rtc/rs5c372.c
-  ------------------------
+  drivers/rtc/rs5c372.c
+  ---------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  9) drivers/rtc/m41t94.c
-  -----------------------
+  drivers/rtc/m41t94.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  10) drivers/rtc/mc13xxx-rtc.c
-  -----------------------------
+  drivers/rtc/mc13xxx-rtc.c
+  -------------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  11) drivers/rtc/mcfrtc.c
-  ------------------------
+  drivers/rtc/mcfrtc.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  12) drivers/rtc/davinci.c
-  -------------------------
+  drivers/rtc/davinci.c
+  ---------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  13) drivers/rtc/rx8025.c
-  ------------------------
+  drivers/rtc/rx8025.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  14) drivers/rtc/bfin_rtc.c
-  --------------------------
+  drivers/rtc/bfin_rtc.c
+  ----------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  15) drivers/rtc/m41t62.c
-  ------------------------
+  drivers/rtc/m41t62.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  16) drivers/rtc/ds1306.c
-  ------------------------
+  drivers/rtc/ds1306.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  17) drivers/rtc/mpc8xx.c
-  ------------------------
+  drivers/rtc/mpc8xx.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  18) drivers/rtc/ds3231.c
-  ------------------------
+  drivers/rtc/ds3231.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  19) drivers/rtc/ds12887.c
-  -------------------------
+  drivers/rtc/ds12887.c
+  ---------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  20) drivers/rtc/ds1302.c
-  ------------------------
+  drivers/rtc/ds1302.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  21) drivers/rtc/ds1374.c
-  ------------------------
+  drivers/rtc/ds1374.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  22) drivers/rtc/ds174x.c
-  ------------------------
+  drivers/rtc/ds174x.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  23) drivers/rtc/m41t60.c
-  ------------------------
+  drivers/rtc/m41t60.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  24) drivers/rtc/m48t35ax.c
-  --------------------------
+  drivers/rtc/m48t35ax.c
+  ----------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  25) drivers/rtc/pl031.c
-  -----------------------
+  drivers/rtc/pl031.c
+  -------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  26) drivers/rtc/x1205.c
-  -----------------------
+  drivers/rtc/x1205.c
+  -------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  27) drivers/rtc/m41t11.c
-  ------------------------
+  drivers/rtc/m41t11.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  28) drivers/rtc/pcf8563.c
-  -------------------------
+  drivers/rtc/pcf8563.c
+  ---------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  29) drivers/rtc/mk48t59.c
-  -------------------------
+  drivers/rtc/mk48t59.c
+  ---------------------
   Macros needs cleanup. Besides that the driver is standard rtc.
   Simple conversion is possible.
 
 
-  30) drivers/rtc/mxsrtc.c
-  ------------------------
+  drivers/rtc/mxsrtc.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  31) drivers/rtc/ds1307.c
-  ------------------------
+  drivers/rtc/ds1307.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  32) drivers/rtc/ds1556.c
-  ------------------------
+  drivers/rtc/ds1556.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  33) drivers/rtc/rtc4543.c
-  -------------------------
+  drivers/rtc/rtc4543.c
+  ---------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  34) drivers/rtc/ds1337.c
-  ------------------------
+  drivers/rtc/ds1337.c
+  --------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  35) drivers/rtc/isl1208.c
-  -------------------------
+  drivers/rtc/isl1208.c
+  ---------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  36) drivers/rtc/max6900.c
-  -------------------------
+  drivers/rtc/max6900.c
+  ---------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  37) drivers/rtc/mc146818.c
-  --------------------------
+  drivers/rtc/mc146818.c
+  ----------------------
   The driver is standard rtc. Simple conversion is possible.
 
 
-  38) drivers/rtc/at91sam9_rtt.c
-  ------------------------------
+  drivers/rtc/at91sam9_rtt.c
+  --------------------------
   The driver is standard rtc. Simple conversion is possible.
index 54f853e0e402ae603de69b33d6b51acb0c813463..279e941fc03b69d43f368add25c45711c1f0c874 100644 (file)
@@ -57,119 +57,103 @@ call, with STDIO_CONFIG_SERIAL_BAUDRATE argument.
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) altera_jtag_uart.c
-  ---------------------
+  altera_jtag_uart.c
+  ------------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  2) altera_uart.c
-  ----------------
+  altera_uart.c
+  -------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  3) arm_dcc.c
-  ------------
+  arm_dcc.c
+  ---------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible, unless used
   with CONFIG_ARM_DCC_MULTI. Then it registers another separate IOMUX.
 
-  4) atmel_usart.c
-  ----------------
+  atmel_usart.c
+  -------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  5) mcfuart.c
-  ------------
+  mcfuart.c
+  ---------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  6) ns16550.c
-  ------------
+  ns16550.c
+  ---------
   This driver seems complicated and certain consideration will need to be made
   during conversion. This driver is implemented in very universal manner,
   therefore it'll be necessary to properly design it's platform_data.
 
-  7) ns9750_serial.c
-  ------------------
-  Unmaintained port. Code got removed.
-
-  8) opencores_yanu.c
-  -------------------
+  opencores_yanu.c
+  ----------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  9) s3c4510b_uart.c
-  ------------------
+  sandbox.c
+  ---------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  10) sandbox.c
-  -------------
-  No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
-
-  11) serial.c
-  ------------
+  serial.c
+  --------
   This is a complementary part of NS16550 UART driver, see above.
 
-  12) serial_clps7111.c
-  ---------------------
-  No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
-
-  13) serial_imx.c
-  ----------------
+  serial_imx.c
+  ------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible. This driver
   might be removed in favor of serial_mxc.c .
 
-  14) serial_ixp.c
-  ----------------
-  No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
-
-  15) serial_ks8695.c
-  -------------------
+  serial_ixp.c
+  ------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  16) serial_max3100.c
-  --------------------
+  serial_ks8695.c
+  ---------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  17) serial_mxc.c
+  serial_max3100.c
   ----------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  18) serial_netarm.c
-  -------------------
+  serial_mxc.c
+  ------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  19) serial_pl01x.c
-  ------------------
+  serial_pl01x.c
+  --------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible, though this
   driver in fact contains two drivers in total.
 
-  20) serial_pxa.c
-  ----------------
+  serial_pxa.c
+  ------------
   This driver is a bit complicated, but due to clean support for
   CONFIG_SERIAL_MULTI, there are no expected obstructions throughout the
   conversion process.
 
-  21) serial_s3c24x0.c
-  --------------------
+  serial_s3c24x0.c
+  ----------------
   This driver, being quite ad-hoc might need some work to bring back to shape.
 
-  22) serial_s5p.c
-  ----------------
+  serial_s5p.c
+  ------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  23) serial_sa1100.c
-  -------------------
+  serial_sa1100.c
+  ---------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  24) serial_sh.c
-  ---------------
+  serial_sh.c
+  -----------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  25) serial_xuartlite.c
-  ----------------------
+  serial_xuartlite.c
+  ------------------
   No support for CONFIG_SERIAL_MULTI. Simple conversion possible.
 
-  26) usbtty.c
-  ------------
+  usbtty.c
+  --------
   This driver seems very complicated and entangled with USB framework. The
   conversion might be complicated here.
 
-  27) arch/powerpc/cpu/mpc512x/serial.c
-  -------------------------------------
+  arch/powerpc/cpu/mpc512x/serial.c
+  ---------------------------------
   This driver supports CONFIG_SERIAL_MULTI. This driver will need to be moved to
   proper place.
index 6e6acc8787163ace4329c85093cd2b4ff5be134e..9ba0f841efacf3cd4cf4d746e76c5362027eae7a 100644 (file)
@@ -103,98 +103,98 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) altera_spi.c
-  ---------------
+  altera_spi.c
+  ------------
   All methods have designated structure. Simple conversion possible.
 
-  2) andes_spi.c
-  --------------
+  andes_spi.c
+  -----------
   All methods have designated structure. Simple conversion possible.
 
-  3) andes_spi.h
-  --------------
+  andes_spi.h
+  -----------
   Support file for andes_spi.c. No conversion is needed.
 
-  4) armada100_spi.c
-  ------------------
+  armada100_spi.c
+  ---------------
   All methods have designated structure. Simple conversion possible.
 
-  5) atmel_dataflash_spi.c
-  ------------------------
+  atmel_dataflash_spi.c
+  ---------------------
   Wrong placement. Will be moved to another location.
 
-  6) atmel_spi.c
-  --------------
+  atmel_spi.c
+  -----------
   Supports more than one bus. Need some minor change.
 
-  7) atmel_spi.h
-  --------------
+  atmel_spi.h
+  -----------
   Support file for andes_spi.c. No conversion is needed.
 
-  8) bfin_spi.c
-  -------------
+  bfin_spi.c
+  ----------
   Supports more than one bus. Need some minor change.
 
-  9) cf_spi.c
-  -----------
+  cf_spi.c
+  --------
   Cooperate with some cpu specific methods from other files. Hard conversion.
 
-  10) davinci_spi.c
-  -----------------
+  davinci_spi.c
+  -------------
   All methods have designated structure. Simple conversion possible.
 
-  11) davinci_spi.h
-  -----------------
+  davinci_spi.h
+  -------------
   Support file for davinci_spi.h. No conversion is needed.
 
-  12) fsl_espi.c
-  --------------
+  fsl_espi.c
+  ----------
   All methods have designated structure. Simple conversion possible.
 
-  13) kirkwood_spi.c
-  ------------------
+  kirkwood_spi.c
+  --------------
   All methods have designated structure. Simple conversion possible.
 
-  14) mpc8xxx_spi.c
-  -----------------
+  mpc8xxx_spi.c
+  -------------
   All methods have designated structure. Simple conversion possible.
 
-  15) mpc52xx_spi.c
-  -----------------
+  mpc52xx_spi.c
+  -------------
   All methods have designated structure. Simple conversion possible.
 
-  16) mxc_spi.c
-  -------------
+  mxc_spi.c
+  ---------
   All methods have designated structure. Simple conversion possible.
 
-  17) mxs_spi.c
-  -------------
+  mxs_spi.c
+  ---------
   All methods have designated structure. Simple conversion possible.
 
-  18) oc_tiny_spi.c
-  -----------------
+  oc_tiny_spi.c
+  -------------
   Supports more than one bus. Need some minor change.
 
-  19) omap3_spi.c
-  ---------------
+  omap3_spi.c
+  -----------
   Supports more than one bus. Need some minor change.
 
-  20) omap3_spi.h
-  ---------------
+  omap3_spi.h
+  -----------
   Support file for omap3_spi.c. No conversion is needed.
 
-  21) sh_spi.c
-  ------------
+  sh_spi.c
+  --------
   All methods have designated structure. Simple conversion possible.
 
-  22) sh_spi.h
-  ------------
+  sh_spi.h
+  --------
   Support file for sh_spi.h. No conversion is needed.
 
-  23) soft_spi.c
-  --------------
+  soft_spi.c
+  ----------
   Use many board specific method linked from other files. Need careful debugging.
 
-  24) tegra2_spi.c
-  ----------------
+  tegra2_spi.c
+  ------------
   Some hardware specific problem when releasing bus.
index c0b1c90b29603dbd1e6b4fb55a5b1d539f01937d..156627b515e69d19a85d79cb65a153a57128c481 100644 (file)
@@ -158,21 +158,21 @@ For in-depth analysis of serial port drivers, refer to [ UDM-serial.txt ].
 For in-depth analysis of keyboard drivers, refer to [ UDM-keyboard.txt ].
 For in-depth analysis of video drivers, refer to [ UDM-video.txt ].
 
-  1) arch/blackfin/cpu/jtag-console.c
-  -----------------------------------
+  arch/blackfin/cpu/jtag-console.c
+  --------------------------------
   This driver is a classic STDIO driver, no problem with conversion is expected.
 
-  2) board/mpl/pati/pati.c
-  ------------------------
+  board/mpl/pati/pati.c
+  ---------------------
   This driver registers with the STDIO framework, though it uses a lot of ad-hoc
   stuff which will need to be sorted out.
 
-  3) board/netphone/phone_console.c
-  ---------------------------------
+  board/netphone/phone_console.c
+  ------------------------------
   This driver is a classic STDIO driver, no problem with conversion is expected.
 
-  4) drivers/net/netconsole.c
-  ---------------------------
+  drivers/net/netconsole.c
+  ------------------------
   This driver is a classic STDIO driver, no problem with conversion is expected.
 
 IV) Other involved files (To be removed)
index 289416acde7219391324b8e267a0467ea2fa68de..5f2c5a3d40ae45c84617e7313d68576be7890b94 100644 (file)
@@ -40,8 +40,8 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) drivers/twserial/soft_tws.c
-  ------------------------------
+  drivers/twserial/soft_tws.c
+  ---------------------------
   The driver is the only TWserial driver. The ad-hoc part in
   include/configs/inka4x0.h and the core soft_tws driver should be consolidated
   to one compact driver and moved to misc/ .
index 342aeee4853d48c6e86c2d785e17841b0b0e899d..e67e9e41b42983073282bea5c7f2d3b5c5937b79 100644 (file)
@@ -36,39 +36,39 @@ static struct stdio_device_ops handling the character output.
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) arch/powerpc/cpu/mpc8xx/video.c
-  ----------------------------------
+  arch/powerpc/cpu/mpc8xx/video.c
+  -------------------------------
   This driver copies the cfb_console [ see drivers/video/cfb_console.c ]
   approach and acts only as a STDIO device. Therefore there are currently two
   possible approaches, first being the conversion of this driver to usual STDIO
   device and second, long-term one, being conversion of this driver to video
   driver that provides console.
 
-  2) arch/x86/lib/video.c
-  -----------------------
+  arch/x86/lib/video.c
+  --------------------
   This driver registers two separate STDIO devices and should be therefore
   converted as such.
 
-  3) board/bf527-ezkit/video.c
-  ----------------------------
+  board/bf527-ezkit/video.c
+  -------------------------
   This driver seems bogus as it behaves as STDIO device, but provides no input
   or output capabilities. It relies on DEV_EXT_VIDEO, which is no longer in use
   or present otherwise than as a dead code/define.
 
-  4) board/bf533-stamp/video.c
-  ----------------------------
+  board/bf533-stamp/video.c
+  -------------------------
   This driver seems bogus as it behaves as STDIO device, but provides no input
   or output capabilities. It relies on DEV_EXT_VIDEO, which is no longer in use
   or present otherwise than as a dead code/define.
 
-  5) board/bf548-ezkit/video.c
-  ----------------------------
+  board/bf548-ezkit/video.c
+  -------------------------
   This driver seems bogus as it behaves as STDIO device, but provides no input
   or output capabilities. It relies on DEV_EXT_VIDEO, which is no longer in use
   or present otherwise than as a dead code/define.
 
-  6) board/cm-bf548/video.c
-  ----------------------------
+  board/cm-bf548/video.c
+  ----------------------
   This driver seems bogus as it behaves as STDIO device, but provides no input
   or output capabilities. It relies on DEV_EXT_VIDEO, which is no longer in use
   or present otherwise than as a dead code/define.
index 7948e5926053886e9797e7bfd485d50e861f602c..3f130635dc201ec6f044c3c51c48ae18f0112a8a 100644 (file)
@@ -64,266 +64,266 @@ II) Approach
 III) Analysis of in-tree drivers
 --------------------------------
 
-  1) drivers/watchdog/at91sam9_wdt.c
-  ----------------------------------
+  drivers/watchdog/at91sam9_wdt.c
+  -------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  2) drivers/watchdog/ftwdt010_wdt.c
-  ----------------------------------
+  drivers/watchdog/ftwdt010_wdt.c
+  -------------------------------
   The driver is ad-hoc HW watchdog. Conversion has to take into account
   driver parts spread in include/faraday/*. Restructuring the driver and
   code cleanup has to be considered.
 
 
-  3) arch/arm/cpu/arm1136/mx31/timer.c
-  ------------------------------------
+  arch/arm/cpu/arm1136/mx31/timer.c
+  ---------------------------------
   The driver is semi-standard ad-hoc HW watchdog. Conversion has to take
   into account driver parts spread in the timer.c file.
 
 
-  4) arch/arm/cpu/arm926ejs/davinci/timer.c
-  -----------------------------------------
+  arch/arm/cpu/arm926ejs/davinci/timer.c
+  --------------------------------------
   The driver is ad-hoc semi-standard HW watchdog. Conversion has to take
   into account driver parts spread in the timer.c file.
 
 
-  5) arch/arm/cpu/armv7/omap-common/hwinit-common.c
-  -------------------------------------------------
+  arch/arm/cpu/armv7/omap-common/hwinit-common.c
+  ----------------------------------------------
   The driver is non-standard ad-hoc HW watchdog. Conversion is possible
   but functions has to be renamed and constants moved to another places.
 
 
-  6) arch/arm/cpu/armv7/omap3/board.c
-  -----------------------------------
+  arch/arm/cpu/armv7/omap3/board.c
+  --------------------------------
   The driver is non-standard ad-hoc HW watchdog. Conversion is possible
   but functions has to be renamed and constants moved to another places.
 
 
-  7) arch/blackfin/cpu/watchdog.c
-  -------------------------------
+  arch/blackfin/cpu/watchdog.c
+  ----------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  8) arch/m68k/cpu/mcf523x/cpu.c
-  ------------------------------
+  arch/m68k/cpu/mcf523x/cpu.c
+  ---------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  9) arch/m68k/cpu/mcf52x2/cpu.c
-  ------------------------------
+  arch/m68k/cpu/mcf52x2/cpu.c
+  ---------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  10) arch/m68k/cpu/mcf532x/cpu.c
-  -------------------------------
+  arch/m68k/cpu/mcf532x/cpu.c
+  ---------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  11) arch/m68k/cpu/mcf547x_8x/cpu.c
-  ----------------------------------
+  arch/m68k/cpu/mcf547x_8x/cpu.c
+  ------------------------------
   The driver is standard HW watchdog (there is slight naming convention
   violation that has to be rectified). Simple conversion is possible.
 
 
-  12) arch/powerpc/cpu/74xx_7xx/cpu.c
-  -----------------------------------
+  arch/powerpc/cpu/74xx_7xx/cpu.c
+  -------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  13) arch/powerpc/cpu/mpc512x/cpu.c
-  ----------------------------------
+  arch/powerpc/cpu/mpc512x/cpu.c
+  ------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  14) arch/powerpc/cpu/mpc5xx/cpu.c
-  ---------------------------------
+  arch/powerpc/cpu/mpc5xx/cpu.c
+  -----------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  15) arch/powerpc/cpu/mpc5xxx/cpu.c
-  ----------------------------------
+  arch/powerpc/cpu/mpc5xxx/cpu.c
+  ------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  16) arch/powerpc/cpu/mpc8260/cpu.c
-  ----------------------------------
+  arch/powerpc/cpu/mpc8260/cpu.c
+  ------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  17) arch/powerpc/cpu/mpc83xx/cpu.c
-  ----------------------------------
+  arch/powerpc/cpu/mpc83xx/cpu.c
+  ------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  18) arch/powerpc/cpu/mpc85xx/cpu.c
-  ----------------------------------
+  arch/powerpc/cpu/mpc85xx/cpu.c
+  ------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  19) arch/powerpc/cpu/mpc86xx/cpu.c
-  ----------------------------------
+  arch/powerpc/cpu/mpc86xx/cpu.c
+  ------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  20) arch/powerpc/cpu/mpc8xx/cpu.c
-
+  arch/powerpc/cpu/mpc8xx/cpu.c
+  -----------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  21) arch/powerpc/cpu/ppc4xx/cpu.c
-  ---------------------------------
+  arch/powerpc/cpu/ppc4xx/cpu.c
+  -----------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  22) arch/sh/cpu/sh2/watchdog.c
-  ------------------------------
+  arch/sh/cpu/sh2/watchdog.c
+  --------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  23) arch/sh/cpu/sh3/watchdog.c
-  ------------------------------
+  arch/sh/cpu/sh3/watchdog.c
+  --------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  24) arch/sh/cpu/sh4/watchdog.c
-  ------------------------------
+  arch/sh/cpu/sh4/watchdog.c
+  --------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  25) board/amcc/luan/luan.c
-  --------------------------
+  board/amcc/luan/luan.c
+  ----------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  26) board/amcc/yosemite/yosemite.c
-  ----------------------------------
+  board/amcc/yosemite/yosemite.c
+  ------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  27) board/apollon/apollon.c
-  ---------------------------
+  board/apollon/apollon.c
+  -----------------------
   The driver is standard HW watchdog however the watchdog_init()
   function is called in early initialization. Simple conversion is possible.
 
 
-  28) board/bmw/m48t59y.c
-  -----------------------
+  board/bmw/m48t59y.c
+  -------------------
   Special watchdog driver. Dead code. To be removed.
 
 
-  29) board/davedenx/qong/qong.c
-  ------------------------------
+  board/davedenx/qong/qong.c
+  --------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  30) board/dvlhost/watchdog.c
-  ----------------------------
+  board/dvlhost/watchdog.c
+  ------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  31) board/eNET/eNET.c
-  ---------------------
+  board/eNET/eNET.c
+  -----------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  32) board/eltec/elppc/elppc.c
-  -----------------------------
+  board/eltec/elppc/elppc.c
+  -------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  33) board/enbw/enbw_cmc/enbw_cmc.c
-  ----------------------------------
+  board/enbw/enbw_cmc/enbw_cmc.c
+  ------------------------------
   Only function proxy call. Code cleanup needed.
 
 
-  34) board/freescale/mx31pdk/mx31pdk.c
-  -------------------------------------
+  board/freescale/mx31pdk/mx31pdk.c
+  ---------------------------------
   Only function proxy call. Code cleanup needed.
 
 
-  35) board/gth2/gth2.c
-  ---------------------
+  board/gth2/gth2.c
+  -----------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  36) board/lwmon5/lwmon5.c
-  -------------------------
+  board/lwmon5/lwmon5.c
+  ---------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  37) board/manroland/mucmc52/mucmc52.c
-  -------------------------------------
+  board/manroland/mucmc52/mucmc52.c
+  ---------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  38) board/manroland/uc101/uc101.c
-  ---------------------------------
+  board/manroland/uc101/uc101.c
+  -----------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  39) board/mousse/m48t59y.c
-  --------------------------
+  board/mousse/m48t59y.c
+  ----------------------
   Special watchdog driver. Dead code. To be removed.
 
 
-  40) board/mvblue/mvblue.c
-  -------------------------
+  board/mvblue/mvblue.c
+  ---------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  41) board/netphone/netphone.c
-  -----------------------------
+  board/netphone/netphone.c
+  -------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  42) board/netta/netta.c
-  -----------------------
+  board/netta/netta.c
+  -------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  43) board/netta2/netta2.c
-  -------------------------
+  board/netta2/netta2.c
+  ---------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  44) board/omicron/calimain/calimain.c
-  -------------------------------------
+  board/omicron/calimain/calimain.c
+  ---------------------------------
   Only function proxy call. Code cleanup needed.
 
 
-  46) board/pcs440ep/pcs440ep.c
-  -----------------------------
+  board/pcs440ep/pcs440ep.c
+  -------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  47) board/stx/stxxtc/stxxtc.c
-  -----------------------------
+  board/stx/stxxtc/stxxtc.c
+  -------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  48) board/ti/omap2420h4/omap2420h4.c
-  ------------------------------------
+  board/ti/omap2420h4/omap2420h4.c
+  --------------------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  49) board/ttcontrol/vision2/vision2.c
-  -------------------------------------
+  board/ttcontrol/vision2/vision2.c
+  ---------------------------------
   The driver is standard HW watchdog but namespace is polluted by
   non-standard macros. Simple conversion is possible, code cleanup
   needed.
 
 
-  50) board/v38b/v38b.c
-  ---------------------
+  board/v38b/v38b.c
+  -----------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  51) board/ve8313/ve8313.c
-  -------------------------
+  board/ve8313/ve8313.c
+  ---------------------
   The driver is standard HW watchdog. Simple conversion is possible.
 
 
-  52) board/w7o/watchdog.c
-  ------------------------
+  board/w7o/watchdog.c
+  --------------------
   The driver is standard HW watchdog. Simple conversion is possible.
index 1165793b5e8bd48d3bc6e96a7fbe3e2e05a21a2f..b903c45c5249fe0e67f289fba4f788bc63f471c8 100644 (file)
@@ -30,3 +30,4 @@ obj-$(CONFIG_S3C2440_GPIO)    += s3c2440_gpio.o
 obj-$(CONFIG_XILINX_GPIO)      += xilinx_gpio.o
 obj-$(CONFIG_ADI_GPIO2)        += adi_gpio2.o
 obj-$(CONFIG_TCA642X)          += tca642x.o
+oby-$(CONFIG_SX151X)           += sx151x.o
diff --git a/drivers/gpio/sx151x.c b/drivers/gpio/sx151x.c
new file mode 100644 (file)
index 0000000..167cf40
--- /dev/null
@@ -0,0 +1,242 @@
+/*
+ * (C) Copyright 2013
+ * Viktar Palstsiuk, Promwad, viktar.palstsiuk@promwad.com
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+/*
+ * Driver for Semtech SX151x SPI GPIO Expanders
+ */
+
+#include <common.h>
+#include <spi.h>
+#include <sx151x.h>
+
+#ifndef CONFIG_SX151X_SPI_BUS
+#define CONFIG_SX151X_SPI_BUS 0
+#endif
+
+/*
+ * The SX151x registers
+ */
+
+#ifdef CONFIG_SX151X_GPIO_COUNT_8
+/* 8bit: SX1511 */
+#define SX151X_REG_DIR         0x07
+#define SX151X_REG_DATA                0x08
+#else
+/* 16bit: SX1512 */
+#define SX151X_REG_DIR         0x0F
+#define SX151X_REG_DATA                0x11
+#endif
+#define SX151X_REG_RESET       0x7D
+
+static int sx151x_spi_write(int chip, unsigned char reg, unsigned char val)
+{
+       struct spi_slave *slave;
+       unsigned char buf[2];
+       int ret;
+
+       slave = spi_setup_slave(CONFIG_SX151X_SPI_BUS, chip, 1000000,
+                               SPI_MODE_0);
+       if (!slave)
+               return 0;
+
+       spi_claim_bus(slave);
+
+       buf[0] = reg;
+       buf[1] = val;
+
+       ret = spi_xfer(slave, 16, buf, NULL, SPI_XFER_BEGIN | SPI_XFER_END);
+       if (ret < 0)
+               printf("spi%d.%d write fail: can't write %02x to %02x: %d\n",
+                       CONFIG_SX151X_SPI_BUS, chip, val, reg, ret);
+       else
+               printf("spi%d.%d write 0x%02x to register 0x%02x\n",
+                      CONFIG_SX151X_SPI_BUS, chip, val, reg);
+       spi_release_bus(slave);
+       spi_free_slave(slave);
+
+       return ret;
+}
+
+static int sx151x_spi_read(int chip, unsigned char reg)
+{
+       struct spi_slave *slave;
+       int ret;
+
+       slave = spi_setup_slave(CONFIG_SX151X_SPI_BUS, chip, 1000000,
+                               SPI_MODE_0);
+       if (!slave)
+               return 0;
+
+       spi_claim_bus(slave);
+
+       ret = spi_w8r8(slave, reg | 0x80);
+       if (ret < 0)
+               printf("spi%d.%d read fail: can't read %02x: %d\n",
+                       CONFIG_SX151X_SPI_BUS, chip, reg, ret);
+       else
+               printf("spi%d.%d read register 0x%02x: 0x%02x\n",
+                      CONFIG_SX151X_SPI_BUS, chip, reg, ret);
+
+       spi_release_bus(slave);
+       spi_free_slave(slave);
+
+       return ret;
+}
+
+static inline void sx151x_find_cfg(int gpio, unsigned char *reg, unsigned char *mask)
+{
+       *reg   -= gpio / 8;
+       *mask   = 1 << (gpio % 8);
+}
+
+static int sx151x_write_cfg(int chip, unsigned char gpio, unsigned char reg, int val)
+{
+       unsigned char  mask;
+       unsigned char  data;
+       int ret;
+
+       sx151x_find_cfg(gpio, &reg, &mask);
+       ret = sx151x_spi_read(chip, reg);
+       if (ret < 0)
+               return ret;
+       else
+               data = ret;
+       data &= ~mask;
+       data |= (val << (gpio % 8)) & mask;
+       return sx151x_spi_write(chip, reg, data);
+}
+
+int sx151x_get_value(int chip, int gpio)
+{
+       unsigned char  reg = SX151X_REG_DATA;
+       unsigned char  mask;
+       int ret;
+
+       sx151x_find_cfg(gpio, &reg, &mask);
+       ret = sx151x_spi_read(chip, reg);
+       if (ret >= 0)
+               ret = (ret & mask) != 0 ? 1 : 0;
+
+       return ret;
+}
+
+int sx151x_set_value(int chip, int gpio, int val)
+{
+       return sx151x_write_cfg(chip, gpio, SX151X_REG_DATA, (val ? 1 : 0));
+}
+
+int sx151x_direction_input(int chip, int gpio)
+{
+       return sx151x_write_cfg(chip, gpio, SX151X_REG_DIR, 1);
+}
+
+int sx151x_direction_output(int chip, int gpio)
+{
+       return sx151x_write_cfg(chip, gpio, SX151X_REG_DIR, 0);
+}
+
+int sx151x_reset(int chip)
+{
+       int err;
+
+       err = sx151x_spi_write(chip, SX151X_REG_RESET, 0x12);
+       if (err < 0)
+               return err;
+
+       err = sx151x_spi_write(chip, SX151X_REG_RESET, 0x34);
+       return err;
+}
+
+#ifdef CONFIG_CMD_SX151X
+
+int do_sx151x(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+{
+       int ret = CMD_RET_USAGE, chip = 0, gpio = 0, val = 0;
+
+       if (argc < 3)
+               return CMD_RET_USAGE;
+
+       /* arg2 used as chip number */
+       chip = simple_strtoul(argv[2], NULL, 10);
+
+       if (strcmp(argv[1], "reset") == 0) {
+               ret = sx151x_reset(chip);
+               if (!ret) {
+                       printf("Device at spi%d.%d was reset\n",
+                              CONFIG_SX151X_SPI_BUS, chip);
+               }
+               return ret;
+       }
+
+       if (argc < 4)
+               return CMD_RET_USAGE;
+
+       /* arg3 used as gpio number */
+       gpio = simple_strtoul(argv[3], NULL, 10);
+
+       if (strcmp(argv[1], "get") == 0) {
+               ret = sx151x_get_value(chip, gpio);
+               if (ret < 0)
+                       printf("Failed to get value at spi%d.%d gpio %d\n",
+                              CONFIG_SX151X_SPI_BUS, chip, gpio);
+               else {
+                       printf("Value at spi%d.%d gpio %d is %d\n",
+                              CONFIG_SX151X_SPI_BUS, chip, gpio, ret);
+                       ret = 0;
+               }
+               return ret;
+       }
+
+       if (argc < 5)
+               return CMD_RET_USAGE;
+
+       /* arg4 used as value or direction */
+       val = simple_strtoul(argv[4], NULL, 10);
+
+       if (strcmp(argv[1], "set") == 0) {
+               ret = sx151x_set_value(chip, gpio, val);
+               if (ret < 0)
+                       printf("Failed to set value at spi%d.%d gpio %d\n",
+                              CONFIG_SX151X_SPI_BUS, chip, gpio);
+               else
+                       printf("New value at spi%d.%d gpio %d is %d\n",
+                              CONFIG_SX151X_SPI_BUS, chip, gpio, val);
+               return ret;
+       } else if (strcmp(argv[1], "dir") == 0) {
+               if (val == 0)
+                       ret = sx151x_direction_output(chip, gpio);
+               else
+                       ret = sx151x_direction_input(chip, gpio);
+
+               if (ret < 0)
+                       printf("Failed to set direction of spi%d.%d gpio %d\n",
+                              CONFIG_SX151X_SPI_BUS, chip, gpio);
+               else
+                       printf("New direction of spi%d.%d gpio %d is %d\n",
+                              CONFIG_SX151X_SPI_BUS, chip, gpio, val);
+               return ret;
+       }
+
+       printf("Please see usage\n");
+
+       return ret;
+}
+
+U_BOOT_CMD(
+       sx151x, 5,      1,      do_sx151x,
+       "sx151x gpio access",
+       "dir chip gpio 0|1\n"
+       "       - set gpio direction (0 for output, 1 for input)\n"
+       "sx151x get chip gpio\n"
+       "       - get gpio value\n"
+       "sx151x set chip gpio 0|1\n"
+       "       - set gpio value\n"
+       "sx151x reset chip\n"
+       "       - reset chip"
+);
+
+#endif /* CONFIG_CMD_SX151X */
index a46cd4dfb5a03a2d3642863382c6c787dbaaed0f..c46958846c7132c05f5af4d3630188768aedcc30 100644 (file)
@@ -1,4 +1,3 @@
-
 #include <common.h>
 #include <asm/ic/ssi.h>
 #include <ds1722.h>
index df8ab07b945f6c317308cc516359d7b3e72994fd..65c747e14b774ce502bdd6184a2c3fde307a4ea7 100644 (file)
@@ -184,7 +184,9 @@ static void nc_send_packet(const char *buf, int len)
                        return; /* inside net loop */
                output_packet = buf;
                output_packet_len = len;
+               input_recursion = 1;
                NetLoop(NETCONS); /* wait for arp reply and send packet */
+               input_recursion = 0;
                output_packet_len = 0;
                return;
        }
index 291b66215155ab82b514343d3a68e710ba6a8d11..b37c6150297cc4dee30ada969e31a15971f44300 100644 (file)
@@ -1,4 +1,3 @@
-
 /**
  * @file    IxAtmdAcc.h
  *
index 1a696b0e66e9f6a889ce628b8f3303521bca423d..ecbb0059f54cbcea8f09b916aa6d1379ad749cd9 100644 (file)
@@ -1,4 +1,3 @@
-
 /**
  * @file    IxAtmdAccCtrl.h
  *
index 7cfe5bccf73246910c5516abbc7b1f9a63102e27..fc0fa96a0e2e156c48d53dac049341b3580cdfbc 100644 (file)
@@ -40,7 +40,7 @@ static struct mxs_uartapp_regs *get_uartapp_registers(void)
  * Sets the baud rate and settings.
  * The settings are: 8 data bits, no parit and 1 stop bit.
  */
-void mxs_auart_setbrg(void)
+static void mxs_auart_setbrg(void)
 {
        u32 div;
        u32 linectrl = 0;
@@ -77,7 +77,7 @@ void mxs_auart_setbrg(void)
        writel(linectrl, &regs->hw_uartapp_linectrl);
 }
 
-int mxs_auart_init(void)
+static int mxs_auart_init(void)
 {
        struct mxs_uartapp_regs *regs = get_uartapp_registers();
        /* Reset everything */
@@ -99,7 +99,7 @@ int mxs_auart_init(void)
        return 0;
 }
 
-void mxs_auart_putc(const char c)
+static void mxs_auart_putc(const char c)
 {
        struct mxs_uartapp_regs *regs = get_uartapp_registers();
        /* Wait in loop while the transmit FIFO is full */
@@ -112,14 +112,14 @@ void mxs_auart_putc(const char c)
                mxs_auart_putc('\r');
 }
 
-int mxs_auart_tstc(void)
+static int mxs_auart_tstc(void)
 {
        struct mxs_uartapp_regs *regs = get_uartapp_registers();
        /* Checks if receive FIFO is empty */
        return !(readl(&regs->hw_uartapp_stat) & UARTAPP_STAT_RXFE_MASK);
 }
 
-int mxs_auart_getc(void)
+static int mxs_auart_getc(void)
 {
        struct mxs_uartapp_regs *regs = get_uartapp_registers();
        /* Wait until a character is available to read */
index f98b42263296ce416e1153f1f8bf2d76b70aaeee..89f5d68dd0897ce0886b9eaf00f0f5e92f45c8ac 100644 (file)
@@ -65,7 +65,7 @@ static const int udivslot[] = {
        0xffdf,
 };
 
-void serial_setbrg_dev(const int dev_index)
+static void serial_setbrg_dev(const int dev_index)
 {
        struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
        u32 uclk = get_uart_clk(dev_index);
@@ -96,7 +96,7 @@ void serial_setbrg_dev(const int dev_index)
  * Initialise the serial port with the given baudrate. The settings
  * are always 8 data bits, no parity, 1 stop bit, no start bits.
  */
-int serial_init_dev(const int dev_index)
+static int serial_init_dev(const int dev_index)
 {
        struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
 
@@ -138,7 +138,7 @@ static int serial_err_check(const int dev_index, int op)
  * otherwise. When the function is succesfull, the character read is
  * written into its argument c.
  */
-int serial_getc_dev(const int dev_index)
+static int serial_getc_dev(const int dev_index)
 {
        struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
 
@@ -158,7 +158,7 @@ int serial_getc_dev(const int dev_index)
 /*
  * Output a single byte to the serial port.
  */
-void serial_putc_dev(const char c, const int dev_index)
+static void serial_putc_dev(const char c, const int dev_index)
 {
        struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
 
@@ -181,7 +181,7 @@ void serial_putc_dev(const char c, const int dev_index)
 /*
  * Test whether a character is in the RX buffer
  */
-int serial_tstc_dev(const int dev_index)
+static int serial_tstc_dev(const int dev_index)
 {
        struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
 
@@ -191,7 +191,7 @@ int serial_tstc_dev(const int dev_index)
        return (int)(readl(&uart->utrstat) & 0x1);
 }
 
-void serial_puts_dev(const char *s, const int dev_index)
+static void serial_puts_dev(const char *s, const int dev_index)
 {
        while (*s)
                serial_putc_dev(*s++, dev_index);
@@ -199,12 +199,12 @@ void serial_puts_dev(const char *s, const int dev_index)
 
 /* Multi serial device functions */
 #define DECLARE_S5P_SERIAL_FUNCTIONS(port) \
-int s5p_serial##port##_init(void) { return serial_init_dev(port); } \
-void s5p_serial##port##_setbrg(void) { serial_setbrg_dev(port); } \
-int s5p_serial##port##_getc(void) { return serial_getc_dev(port); } \
-int s5p_serial##port##_tstc(void) { return serial_tstc_dev(port); } \
-void s5p_serial##port##_putc(const char c) { serial_putc_dev(c, port); } \
-void s5p_serial##port##_puts(const char *s) { serial_puts_dev(s, port); }
+static int s5p_serial##port##_init(void) { return serial_init_dev(port); } \
+static void s5p_serial##port##_setbrg(void) { serial_setbrg_dev(port); } \
+static int s5p_serial##port##_getc(void) { return serial_getc_dev(port); } \
+static int s5p_serial##port##_tstc(void) { return serial_tstc_dev(port); } \
+static void s5p_serial##port##_putc(const char c) { serial_putc_dev(c, port); } \
+static void s5p_serial##port##_puts(const char *s) { serial_puts_dev(s, port); }
 
 #define INIT_S5P_SERIAL_STRUCTURE(port, __name) {      \
        .name   = __name,                               \
index 9c1d025c404753e473302496572e8ac2d724d8c7..e6139943ba2506586c768e923efb66497c9f7bc5 100644 (file)
@@ -39,7 +39,7 @@ static struct uartlite *userial_ports[4] = {
 #endif
 };
 
-void uartlite_serial_putc(const char c, const int port)
+static void uartlite_serial_putc(const char c, const int port)
 {
        struct uartlite *regs = userial_ports[port];
 
@@ -51,13 +51,13 @@ void uartlite_serial_putc(const char c, const int port)
        out_be32(&regs->tx_fifo, c & 0xff);
 }
 
-void uartlite_serial_puts(const char *s, const int port)
+static void uartlite_serial_puts(const char *s, const int port)
 {
        while (*s)
                uartlite_serial_putc(*s++, port);
 }
 
-int uartlite_serial_getc(const int port)
+static int uartlite_serial_getc(const int port)
 {
        struct uartlite *regs = userial_ports[port];
 
@@ -66,7 +66,7 @@ int uartlite_serial_getc(const int port)
        return in_be32(&regs->rx_fifo) & 0xff;
 }
 
-int uartlite_serial_tstc(const int port)
+static int uartlite_serial_tstc(const int port)
 {
        struct uartlite *regs = userial_ports[port];
 
@@ -82,16 +82,16 @@ static int uartlite_serial_init(const int port)
 
 /* Multi serial device functions */
 #define DECLARE_ESERIAL_FUNCTIONS(port) \
-       int userial##port##_init(void) \
+       static int userial##port##_init(void) \
                                { return uartlite_serial_init(port); } \
-       void userial##port##_setbrg(void) {} \
-       int userial##port##_getc(void) \
+       static void userial##port##_setbrg(void) {} \
+       static int userial##port##_getc(void) \
                                { return uartlite_serial_getc(port); } \
-       int userial##port##_tstc(void) \
+       static int userial##port##_tstc(void) \
                                { return uartlite_serial_tstc(port); } \
-       void userial##port##_putc(const char c) \
+       static void userial##port##_putc(const char c) \
                                { uartlite_serial_putc(c, port); } \
-       void userial##port##_puts(const char *s) \
+       static void userial##port##_puts(const char *s) \
                                { uartlite_serial_puts(s, port); }
 
 /* Serial device descriptor */
index 8dd7079ae7f222610efd2f0e335ddcdec406f326..c253055c0f3eb02d87c2741242c796cc79edd903 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * Copyright 1998-2001 by Donald Becker.
  * This software may be used and distributed according to the terms of
index b7a21e05bf77754f223e96451260ee95471329a2..9f5e9118522e8dd371da428cf4fb1593a6af0af7 100644 (file)
@@ -57,7 +57,7 @@ static void set_name(dir_entry *dirent, const char *filename)
        if (len == 0)
                return;
 
-       memcpy(s_name, filename, len);
+       strcpy(s_name, filename);
        uppercase(s_name, len);
 
        period = strchr(s_name, '.');
index e7e3711e3b5c02bd9a4b4082d1c4b77adf8589f1..df649ba971b3415842d116a2084bc13af2f21ecc 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef        _AT45_H_
 #define        _AT45_H_
 #ifdef CONFIG_DATAFLASH_MMC_SELECT
index 6959905efe8f1665561f699b6cd71b925577ab58..c10a79c83930bde4c8e4d451b4a879fd6c0c41f9 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef __CPM_8XX__
 #define __CPM_8XX__
 
-#include <linux/config.h>
 #include <asm/8xx_immap.h>
 
 /* CPM Command register.
index 46dfccb82e008e7c41bd32616bc71ad19877a5f6..3633b09aa9122bf64ad2621705420203223295fb 100644 (file)
@@ -48,6 +48,7 @@
        defined(CONFIG_CMD_SCSI) || \
        defined(CONFIG_CMD_USB) || \
        defined(CONFIG_CMD_PART) || \
+       defined(CONFIG_CMD_GPT) || \
        defined(CONFIG_MMC) || \
        defined(CONFIG_SYSTEMACE)
 #define HAVE_BLOCK_DEVICE
diff --git a/include/configs/EP88x.h b/include/configs/EP88x.h
deleted file mode 100644 (file)
index e6d1385..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-/*
- * Copyright (C) 2005 Arabella Software Ltd.
- * Yuli Barcohen <yuli@arabellasw.com>
- *
- * Support for Embedded Planet EP88x boards.
- * Tested on EP88xC with MPC885 CPU, 64MB SDRAM and 16MB flash.
- *
- * SPDX-License-Identifier:    GPL-2.0+
- */
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#define CONFIG_MPC885
-
-#define CONFIG_EP88X                           /* Embedded Planet EP88x board  */
-
-#define        CONFIG_SYS_TEXT_BASE    0xFC000000
-
-#define CONFIG_BOARD_EARLY_INIT_F              /* Call board_early_init_f      */
-
-/* Allow serial number (serial#) and MAC address (ethaddr) to be overwritten */
-#define CONFIG_ENV_OVERWRITE
-
-#define        CONFIG_8xx_CONS_SMC1    1               /* Console is on SMC1           */
-#define CONFIG_BAUDRATE                38400
-
-#define        CONFIG_ETHER_ON_FEC1                    /* Enable Ethernet on FEC1      */
-#define        CONFIG_ETHER_ON_FEC2                    /* Enable Ethernet on FEC2      */
-#if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
-#define CONFIG_SYS_DISCOVER_PHY
-#define CONFIG_MII_INIT                1
-#define FEC_ENET
-#endif /* CONFIG_FEC_ENET */
-
-#define CONFIG_8xx_OSCLK               10000000 /* 10 MHz oscillator on EXTCLK */
-#define CONFIG_8xx_CPUCLK_DEFAULT      100000000
-#define CONFIG_SYS_8xx_CPUCLK_MIN              40000000
-#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000
-
-/*
- * BOOTP options
- */
-#define CONFIG_BOOTP_BOOTFILESIZE
-#define CONFIG_BOOTP_BOOTPATH
-#define CONFIG_BOOTP_GATEWAY
-#define CONFIG_BOOTP_HOSTNAME
-
-
-/*
- * Command line configuration.
- */
-#include <config_cmd_default.h>
-
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_IMMAP
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_PING
-
-
-#define CONFIG_BOOTDELAY       5               /* Autoboot after 5 seconds     */
-#define CONFIG_BOOTCOMMAND     "bootm fe060000"        /* Autoboot command     */
-#define CONFIG_BOOTARGS                "root=/dev/mtdblock1 rw mtdparts=phys:2M(ROM)ro,-(root)"
-
-#define CONFIG_BZIP2           /* Include support for bzip2 compressed images  */
-#undef CONFIG_WATCHDOG         /* Disable platform specific watchdog           */
-
-/*-----------------------------------------------------------------------
- * Miscellaneous configurable options
- */
-#define CONFIG_SYS_HUSH_PARSER
-#define CONFIG_SYS_LONGHELP                            /* #undef to save memory        */
-#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
-#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)  /* Print Buffer Size */
-#define CONFIG_SYS_MAXARGS             16              /* Max number of command args   */
-#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
-
-#define CONFIG_SYS_LOAD_ADDR           0x400000        /* Default load address         */
-
-/*-----------------------------------------------------------------------
- * RAM configuration (note that CONFIG_SYS_SDRAM_BASE must be zero)
- */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
-#define CONFIG_SYS_SDRAM_MAX_SIZE      0x08000000      /* Up to 128 Mbyte              */
-
-#define CONFIG_SYS_MAMR                0x00805000
-
-/*
- * 4096        Up to 4096 SDRAM rows
- * 1000        factor s -> ms
- * 32  PTP (pre-divider from MPTPR)
- * 4   Number of refresh cycles per period
- * 64  Refresh cycle in ms per number of rows
- */
-#define CONFIG_SYS_PTA_PER_CLK         ((4096 * 32 * 1000) / (4 * 64))
-
-#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on             */
-#define CONFIG_SYS_MEMTEST_END         0x00500000      /* 1 ... 5 MB in SDRAM          */
-
-#define CONFIG_SYS_RESET_ADDRESS       0x09900000
-
-/*-----------------------------------------------------------------------
- * For booting Linux, the board info and command line data
- * have to be in the first 8 MB of memory, since this is
- * the maximum mapped by the Linux kernel during initialization.
- */
-#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
-
-#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_TEXT_BASE
-#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 KB for Monitor   */
-#ifdef CONFIG_BZIP2
-#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve ~4 MB for malloc()   */
-#else
-#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 KB for malloc()  */
-#endif /* CONFIG_BZIP2 */
-
-/*-----------------------------------------------------------------------
- * Flash organisation
- */
-#define CONFIG_SYS_FLASH_BASE          0xFC000000
-#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
-#define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
-#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max number of flash banks    */
-#define CONFIG_SYS_MAX_FLASH_SECT      512             /* Max num of sects on one chip */
-
-/* Environment is in flash */
-#define CONFIG_ENV_IS_IN_FLASH
-#define CONFIG_ENV_SECT_SIZE   0x20000         /* We use one complete sector   */
-#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
-
-#define CONFIG_SYS_OR0_PRELIM          0xFC000160
-#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BR_PS_32 | BR_MS_GPCM | BR_V)
-
-#define        CONFIG_SYS_DIRECT_FLASH_TFTP
-
-/*-----------------------------------------------------------------------
- * BCSR
- */
-#define CONFIG_SYS_OR3_PRELIM          0xFF0005B0
-#define CONFIG_SYS_BR3_PRELIM          (0xFA000000 |BR_PS_16 | BR_MS_GPCM | BR_V)
-
-#define CONFIG_SYS_BCSR                0xFA400000
-
-/*-----------------------------------------------------------------------
- * Internal Memory Map Register
- */
-#define CONFIG_SYS_IMMR                0xF0000000
-
-/*-----------------------------------------------------------------------
- * Definitions for initial stack pointer and data area (in DPRAM)
- */
-#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
-#define CONFIG_SYS_INIT_RAM_SIZE       0x2F00          /* Size of used area in DPRAM   */
-#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
-
-/*-----------------------------------------------------------------------
- * Configuration registers
- */
-#ifdef CONFIG_WATCHDOG
-#define CONFIG_SYS_SYPCR               (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
-                                SYPCR_SWF  | SYPCR_SWE | SYPCR_SWRI | \
-                                SYPCR_SWP)
-#else
-#define CONFIG_SYS_SYPCR               (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
-                                SYPCR_SWF  | SYPCR_SWP)
-#endif /* CONFIG_WATCHDOG */
-
-#define CONFIG_SYS_SIUMCR              (SIUMCR_MLRC01 | SIUMCR_DBGC11)
-
-/* TBSCR - Time Base Status and Control Register */
-#define CONFIG_SYS_TBSCR               (TBSCR_TBF | TBSCR_TBE)
-
-/* PISCR - Periodic Interrupt Status and Control */
-#define CONFIG_SYS_PISCR               PISCR_PS
-
-/* SCCR - System Clock and reset Control Register */
-#define SCCR_MASK              SCCR_EBDF11
-#define CONFIG_SYS_SCCR                SCCR_RTSEL
-
-#define CONFIG_SYS_DER                 0
-
-/*-----------------------------------------------------------------------
- * Cache Configuration
- */
-#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx chips                 */
-
-#endif /* __CONFIG_H */
index 44a8f931bc200c580c47435999e1089bd5aa604e..b86eb430a15d4699a0b5e8766d8362cc21feaf76 100644 (file)
@@ -82,7 +82,7 @@
 #define CONFIG_RESET_TO_RETRY
 #define CONFIG_AUTOBOOT_KEYED
 #define CONFIG_AUTOBOOT_PROMPT "Autobooting in %d seconds...\nPress <s> to stop or <d> to delay\n", bootdelay
-
+#define CONFIG_AUTOBOOT_KEYED_CTRLC
 /*
  * Miscellaneous configurable options
  */
index 279abbcae58deacea4ec83297f3614bd06ba572e..0884ad3a0237046ac2c23747ac671a3950ab2301 100644 (file)
@@ -16,6 +16,8 @@
 
 #endif
 
+#define CONFIG_SYS_TIMER_RATE          1000000
+
 #define CONFIG_BOOTSTAGE
 #define CONFIG_BOOTSTAGE_REPORT
 
 #define CONFIG_SANDBOX_GPIO
 #define CONFIG_SANDBOX_GPIO_COUNT      20
 
+#define CONFIG_CMD_GPT
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+
 /*
  * Size of malloc() pool, although we don't actually use this yet.
  */
diff --git a/include/linux/config.h b/include/linux/config.h
deleted file mode 100644 (file)
index a0194cb..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _LINUX_CONFIG_H
-#define _LINUX_CONFIG_H
-
-/* #include <linux/autoconf.h> */
-
-#endif
index 9ddf83028465806345e8e6e1177a4caab0337064..39c712eac5b912b6cd2bd1ece7abf17213125552 100644 (file)
@@ -10,7 +10,6 @@
 #define _LINUX_LINKAGE_H
 
 #include <asm/linkage.h>
-#include <linux/config.h>
 
 #ifdef __cplusplus
 #define CPP_ASMLINKAGE         extern "C"
index f07ba41b72cc632999760643afdf79e74f1eef41..9aebc4e8cf0540d5e71c99b311ea3160d33e0692 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef _LINUX_TYPES_H
 #define _LINUX_TYPES_H
 
-#ifdef __KERNEL__
-#include <linux/config.h>
-#endif
-
 #include <linux/posix_types.h>
 #include <asm/types.h>
 #include <stdbool.h>
diff --git a/include/sx151x.h b/include/sx151x.h
new file mode 100644 (file)
index 0000000..be42b06
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * (C) Copyright 2013
+ * Viktar Palstsiuk, Promwad, viktar.palstsiuk@promwad.com
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#ifndef __SX151X_H_
+#define __SX151X_H_
+
+int sx151x_get_value(int chip, int gpio);
+int sx151x_set_value(int chip, int gpio, int val);
+int sx151x_direction_input(int chip, int gpio);
+int sx151x_direction_output(int chip, int gpio);
+int sx151x_reset(int chip);
+
+#endif /* __SX151X_H_ */
index 0dcd2debcbdcc8d9c4d3e813e93d3507b360137a..6aeed092ad476642b79b049eca697f34a7ee6e00 100644 (file)
@@ -1,4 +1,3 @@
-
 /* Hand composed "Minuscule" 4x6 font, with binary data generated using
  * Perl stub.
  *
index c5a2b08becf4e9e0ebfac9708f178b8575812ffe..4356b234ececa2ec586da0198d5306f5de6114f9 100644 (file)
@@ -564,7 +564,7 @@ static int match_entry(ENTRY *ep, int flag,
        int arg;
        void *priv = NULL;
 
-       for (arg = 1; arg < argc; ++arg) {
+       for (arg = 0; arg < argc; ++arg) {
 #ifdef CONFIG_REGEX
                struct slre slre;
 
index 8361ddd69b648e1874a8e41302717da7202cef7a..111b493a420d65c462e70747b5830aa51c45da0e 100644 (file)
@@ -37,7 +37,7 @@ unsigned long notrace timer_read_counter(void)
 #endif
 }
 #else
-extern unsigned long timer_read_counter(void);
+extern unsigned long __weak timer_read_counter(void);
 #endif
 
 unsigned long long __weak notrace get_ticks(void)
index 1d06c8ebfed872da5ba35aad364c764376d5c098..40db9910081de9b0ae21c63f58b00ae6b2e23c20 100755 (executable)
--- a/mkconfig
+++ b/mkconfig
@@ -96,17 +96,11 @@ fi
 #
 if [ "$SRCTREE" != "$OBJTREE" ] ; then
        mkdir -p ${OBJTREE}/include
-       mkdir -p ${OBJTREE}/include2
-       cd ${OBJTREE}/include2
-       rm -f asm
-       ln -s ${SRCTREE}/arch/${arch}/include/asm asm
        LNPREFIX=${SRCTREE}/arch/${arch}/include/asm/
-       cd ../include
+       cd ${OBJTREE}/include
        mkdir -p asm
 else
-       cd ./include
-       rm -f asm
-       ln -s ../arch/${arch}/include/asm asm
+       cd arch/${arch}/include
 fi
 
 rm -f asm/arch
@@ -122,6 +116,10 @@ if [ "${arch}" = "arm" ] ; then
        ln -s ${LNPREFIX}proc-armv asm/proc
 fi
 
+if [ "$SRCTREE" = "$OBJTREE" ] ; then
+       cd ${SRCTREE}/include
+fi
+
 #
 # Create include file for Make
 #
index ca76f947e5d323830f2573085b0d3120be88df8e..14d94e39a0db45b6783002b590b06e4bf944b035 100644 (file)
@@ -160,7 +160,7 @@ NOPEDOBJS := $(addprefix $(obj),$(NOPED_OBJ_FILES-y))
 #
 HOSTCPPFLAGS = -include $(SRCTREE)/include/libfdt_env.h \
                -idirafter $(SRCTREE)/include \
-               -idirafter $(OBJTREE)/include2 \
+               -idirafter $(SRCTREE)/arch/$(ARCH)/include \
                -idirafter $(OBJTREE)/include \
                -I $(SRCTREE)/lib/libfdt \
                -I $(SRCTREE)/tools \
index 14d131b7b8111af6714eae958f6a987861968735..27892f74d096b56c8440c898e0af73e876b8cf4e 100644 (file)
@@ -14,7 +14,7 @@ HEADERS       := fw_env.h $(OBJTREE)/include/config.h
 
 # Compile for a hosted environment on the target
 HOSTCPPFLAGS  = -idirafter $(SRCTREE)/include \
-               -idirafter $(OBJTREE)/include2 \
+               -idirafter $(SRCTREE)/arch/$(ARCH)/include \
                -idirafter $(OBJTREE)/include \
                -idirafter $(SRCTREE)/tools/env \
                -DUSE_HOSTCC \
index e371983275433f8a1cc155701dd8836c7aca96ca..b045df2df01b260108d69318e4b20c21a3d1f7d2 100644 (file)
@@ -37,7 +37,7 @@ LIBFDT_OBJS   := $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
 # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps
 #
 HOSTCPPFLAGS  = -idirafter $(SRCTREE)/include \
-               -idirafter $(OBJTREE)/include2 \
+               -idirafter $(SRCTREE)/arch/$(ARCH)/include \
                -idirafter $(OBJTREE)/include \
                -I $(SRCTREE)/lib/libfdt \
                -I $(SRCTREE)/tools \