- Oct 17, 2011
-
-
Jason Hobbs authored
Existing ctype checks are implemented using a 256 byte lookup table, allowing each character to be in any of 8 character classes. Since there are 8 existing character classes without the blank class, I implemented isblank without using the lookup table. Since there are only two blank characters - tab and space - this is a more reasonable approach than doubling the size of the lookup table to accommodate one more class. Signed-off-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
- Oct 03, 2011
-
-
Marek Vasut authored
Signed-off-by:
Marek Vasut <marek.vasut@gmail.com> Cc: Scott Wood <scottwood@freescale.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de> [scottwood@freescale.com: use chip instead of redundant priv_nand] Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Oct 01, 2011
-
-
Scott McNutt authored
When include/linux/compiler.h is included, the associated gcc3 header is required for older build environments. Signed-off-by:
Scott McNutt <smcnutt@psyent.com> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Sep 11, 2011
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Aug 04, 2011
-
-
Albert ARIBAUD authored
There was a mix of UTF-8 and ISO-8859 files in the U-Boot source tree, which could cause issues with the patchwork review system. This commit converts all ISO-8859 files to UTF-8. Signed-off-by:
Albert ARIBAUD <albert.u.boot@aribaud.net>
-
- Jul 27, 2011
-
-
Andy Fleming authored
gen10g_startup() had 2 bugs: 1) It had a boolean logic error in checking the MMD mask, and always checked all of them. 2) It checked devices which don't actually report link state, which meant that it would never believe the link was fully up. Fix the boolean logic, and then mask the MMD mask so only link-reporting devices are checked. Signed-off-by:
Andy Fleming <afleming@freescale.com> Reported-by:
Ed Swarthout <Ed.Swarthout@freescale.com>
-
- Apr 20, 2011
-
-
Andy Fleming authored
Extends the mii_dev structure to participate in a full-blown MDIO and PHY driver scheme. The mii_dev structure and miiphy calls are modified in such a way to allow the original mii command and miiphy infrastructure to work as before, but also to support a new set of APIs which allow (among other things) sharing of PHY driver code and 10G support The mii command will continue to support normal PHY management functions (Clause 22 of 802.3), but will not be changed to support 10G (Clause 45). The basic design is similar to PHY Lib from Linux, but simplified for U-Boot's network and driver infrastructure. We now have MDIO drivers and PHY drivers An MDIO driver provides: read write reset A PHY driver provides: (optionally): probe config - initial setup, starting of auto-negotiation startup - waiting for AN, and reading link state shutdown - any cleanup needed The ethernet drivers interact with the PHY Lib using these functions: phy_connect() phy_config() phy_startup() phy_shutdown() Each PHY driver can be configured separately, or all at once using config_phylib_all_drivers.h (added in the patch which adds the drivers) We also provide generic drivers for Clause 22 (10/100/1000), and Clause 45 (10G) PHYs. We also implement phy_reset(), and call it in phy_connect(). Because phy_reset() is essentially the same as miiphy_reset, but: a) must support 10G PHYs, and b) should use the phylib primitives, we implement miiphy_reset, using phy_reset(), but only when CONFIG_PHYLIB is set. Otherwise, we just use the old version. In this way, we save on compile size, even if we don't manage to save code size. Pulled ethtool.h and mdio.h from: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 782d640afd15af7a1faf01cfe566ca4ac511319d With many, many deletions so as to enable compilation under u-boot Signed-off-by:
Andy Fleming <afleming@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Detlev Zundel <dzu@denx.de>
-
- Apr 01, 2011
-
-
Florian Fainelli authored
This patch adds support for reading an ONFI page parameter from a NAND device supporting it. If this is the case, struct nand_chip onfi_version member contains the supported ONFI version, 0 otherwise. This allows NAND drivers past nand_scan_ident to set the best timings for the NAND chip. Signed-off-by:
Florian Fainelli <florian@openwrt.org> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Feb 19, 2011
-
-
Vitaly Kuzmichev authored
Port USB gadget RNDIS protocol support from linux-2.6.26 (.27 gadget stack actually has composite drivers). Signed-off-by:
Vitaly Kuzmichev <vkuzmichev@mvista.com>
-
Vitaly Kuzmichev authored
Port struct net_device_stats and statistics collecting needed for RNDIS protocol. Signed-off-by:
Vitaly Kuzmichev <vkuzmichev@mvista.com>
-
- Jan 18, 2011
-
-
Thomas Chou authored
Crc7 is used to compute mmc spi command packet checksum. Copy from linux-2.6 lib/crc7.c include/linux/crc7.h commit ad241528c4919505afccb022acbab3eeb0db4d80 Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
- Jan 12, 2011
-
-
Lei Wen authored
This patch sync with David's patch on Linux for handling nand_scan_ident. commit 5e81e88a4c140586d9212999cea683bcd66a15c6 Author: David Woodhouse <David.Woodhouse@intel.com> Date: Fri Feb 26 18:32:56 2010 +0000 mtd: nand: Allow caller to pass alternative ID table to nand_scan_ident() Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com> Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
- Dec 17, 2010
-
-
Florian Fainelli authored
This command is used to read the device ONFI parameters page. Signed-off-by:
Florian Fainelli <florian@openwrt.org>
-
Mike Frysinger authored
These id tables need not be writable. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Dec 09, 2010
-
-
Macpaul Lin authored
This file has been synced (copy) from Linux source code. This commit was based on kernel 2.6.32. It updates gigabit related phy registers and basic definitions. Signed-off-by:
Macpaul Lin <macpaul@andestech.com>
-
- Nov 28, 2010
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Oct 27, 2010
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Oct 26, 2010
-
-
Wolfgang Denk authored
A recurrent issue is that certain C level constructs like sizeof() or offsetof() cannot be used in assembler files, which is inconvenient when such constructs are used in the definition of macro names etc. To avoid duplication of such definitions (and thus another cause of problems), we adapt the Linux way to automatically generate the respective definitions from the respective C header files. In Linux, this is implemented in include/linux/kbuild.h, Kbuild, and arch/*/kernel/asm-offsets.c; we adapt the code from the Linux v2.6.36 kernel tree. We also copy the concept of the include/generated/ directory which can be used to hold other automatically generated files as well. We start with an architecture-independent lib/asm-offsets.c which generates include/generated/generic-asm-offsets.h (included by include/asm-offsets.h, which is what will be referred to in the actual source code). Later this may be extended by architecture-specific arch/*/lib/asm-offsets.c files that will generate a include/generated/asm-offsets.h. Signed-off-by:
Wolfgang Denk <wd@denx.de> Acked-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Oct 21, 2010
-
-
Stefano Babic authored
[port of linux 2.6.34 commit 6a9ee8af344e3bd7dbd61e67037096cdf7f83289] Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Oct 11, 2010
-
-
Enric Balletbo i Serra authored
This patch adds the Numonyx manufacturer code (0x20) to onenand manufacturers. Signed-off-by:
Enric Balletbo i Serra <eballetbo@gmail.com> Acked-by:
Kyungmin Park <kyungmin.park@samsung.com> Acked-by:
Steve Sakoman <steve.sakoman@linaro.org> Tested-by:
Steve Sakoman <steve.sakoman@linaro.org>
-
Ben Gardiner authored
The logic to 'spread' mtd partitions needs to calculate the length in the mtd device, including bad blocks. This patch introduces a new function, mtd_get_len_incl_bad that can return both the length including bad blocks and whether that length was truncated on the device. This new function will be used by the mtdparts spread command later in this series. The definition of the function is #ifdef'd out in configurations that do not use the new 'mtdparts spread' command. Signed-off-by:
Ben <Gardiner<bengardiner@nanometrics.ca> CC: Scott Wood <scottwood@freescale.com>
-
Scott Wood authored
Get rid of the several "#if 0" sections that were keeping around Linux code that isn't relevant to U-Boot. Besides cluttering the code, these sections make tracking upstream changes harder, rather than easier. It's easy to discard obviously irrelevant diff hunks that patch rejects, but it's not as easy to notice hunks that apply cleanly to the #if 0 section, but *are* relevant to U-Boot and require modification elsewhere. Also remove suspend/resume, as this is not applicable to U-Boot. Removal saves 232 bytes on powerpc. Signed-off-by:
Scott Wood <scottwood@freescale.com> Tested-by:
Ben Gardiner <bengardiner@nanometrics.ca>
-
- Sep 20, 2010
-
-
Vitaly Kuzmichev authored
Fixes most of checkpatch warnings and errors in USB gadget stack. The most frequently encountered problems are: 1) "(foo*)", "foo * bar", "foo* bar" 2) C99 // comments 3) No spaces before/after/around '?', ':', '=', '==', ',', '&', '(' 4) Spaces before '[' 5) Spaces between function names and '(' 6) Block braces in wrong places 7) Spaces before tabs 8) Macros with complex values not enclosed in parenthesis 9) Multiline comments start just after /* Signed-off-by:
Vitaly Kuzmichev <vkuzmichev@mvista.com>
-
Remy Bohmer authored
Derived from Linux kernel 2.6.27 Signed-off-by:
Thomas Smits <ts.smits@gmail.com> Signed-off-by:
Remy Bohmer <linux@bohmer.net>
-
- May 05, 2010
-
-
Graeme Russ authored
Add support for newer (up to 2.6.33) kernels Add zboot command which takes the address of a bzImage as its first argument and (optionally) the size of the bzImage as the second argument (the second argument is needed for older kernels which do not include the bzImage size in the header) Signed-off-by:
Graeme Russ <graeme.russ@gmail.com>
-
- Apr 02, 2010
-
-
Thomas Chou authored
This is needed for jffs2 support. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Signed-off-by:
Scott McNutt <smcnutt@psyent.com>
-
- Jan 17, 2010
-
-
Matthias Kaehlcke authored
the macros likely and unlikely were defined in include/linux/mtd/compat.h, but used in code not related to MTD. moved the macro definitions to compiler.h Signed-off-by:
Matthias Kaehlcke <matthias@kaehlcke.net>
-
- Dec 05, 2009
-
-
Peter Korsgaard authored
Add lzop decompression support to the existing lzo bitstream handling (think gzip versus zlib), and support it for uImage decompression if CONFIG_LZO is enabled. Lzop doesn't compress as good as gzip (~10% worse), but decompression is very fast (~0.7s faster here on a slow ppc). The lzop decompression code is based on Albin Tonnerre's recent ARM Linux lzo support patch. Cc: albin.tonnerre@free-electrons.com Signed-off-by:
Peter Korsgaard <jacmet@sunsite.dk>
-
- Nov 18, 2009
-
-
Sandeep Paulraj authored
NANDs with page size of lesser than and equal to 2K are reaching EOL. They are bing replaced with NANDs of page size 4K and above. To support this we have to extend the eccpos field Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Nov 13, 2009
-
-
Amul Kumar Saha authored
This patch adds support for Flex-OneNAND devices. Signed-off-by:
Rohit Hagargundgi <h.rohit@samsung.com> Signed-off-by:
Amul Kumar Saha <amul.saha@samsung.com>
-
Sandeep Paulraj authored
This patch adds support for NANDs greater than 2 GB. Patch is based on the MTD NAND driver in the kernel. Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Nov 07, 2009
-
-
Remy Bohmer authored
The asm-arm/unaligned.h includes linux/unaligned/access_ok.h This file is unsafe to be used on ARM, since it does an unaligned memory accesses which fails on ARM. Lookin at Linux the basic difference seems to be the header "include/asm-arm/unaligned.h". The Linux version of "unaligned.h" does *not* include "access_ok.h" at all. It includes "le_byteshift.h" and "be_byteshift.h" instead. Signed-off-by:
Remy Bohmer <linux@bohmer.net> Signed-off-by:
Stefan Roese <sr@denx.de> -- include/asm-arm/unaligned.h | 3 - include/linux/unaligned/be_byteshift.h | 70 +++++++++++++++++++++++++++++++++ include/linux/unaligned/le_byteshift.h | 70 +++++++++++++++++++++++++++++++++ 3 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 include/linux/unaligned/be_byteshift.h create mode 100644 include/linux/unaligned/le_byteshift.h
-
- Oct 24, 2009
-
-
Minkyu Kang authored
fix the following compile warnings warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
- Oct 14, 2009
-
-
Minkyu Kang authored
This patch includes the onenand driver for s5pc100 Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com> Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com>
-
- Oct 09, 2009
-
-
Minkyu Kang authored
This patch includes the onenand driver for s5pc100 Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com> Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com>
-
- Oct 03, 2009
-
-
Simon Kagstrom authored
Commits 02f99901 52d61227 introduced a regression where platform-specific ffs/fls implementations were defined away. This patch corrects that by using PLATFORM_xxx instead of the name itself. Signed-off-by:
Simon Kagstrom <simon.kagstrom@netinsight.net> Acked-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Stefan Roese <sr@denx.de>
-
Simon Kagstrom authored
UBIFS requires fls(), which is not defined for arm (and some other architectures) and this patch adds it. The implementation is taken from Linux and is generic. ffs() is also defined for those that miss it. Signed-off-by:
Simon Kagstrom <simon.kagstrom@netinsight.net>
-
Simon Kagstrom authored
__set_bit and __clear_bit are defined in ubifs.h as well as in asm/include/bitops.h for some architectures. This patch moves the generic implementation to include/linux/bitops.h and uses that unless it's defined by the architecture. Signed-off-by:
Simon Kagstrom <simon.kagstrom@netinsight.net>
-
- Sep 17, 2009
-
-
Simon Kagstrom authored
Commits 02f99901 52d61227 introduced a regression where platform-specific ffs/fls implementations were defined away. This patch corrects that by using PLATFORM_xxx instead of the name itself. Signed-off-by:
Simon Kagstrom <simon.kagstrom@netinsight.net> Acked-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Stefan Roese <sr@denx.de>
-