Skip to content
Snippets Groups Projects
  1. Oct 17, 2011
    • Jason Hobbs's avatar
      Add isblank · 93337abb
      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: default avatarJason Hobbs <jason.hobbs@calxeda.com>
      93337abb
  2. Oct 03, 2011
  3. Oct 01, 2011
  4. Sep 11, 2011
  5. Aug 04, 2011
  6. Jul 27, 2011
  7. Apr 20, 2011
    • Andy Fleming's avatar
      Create PHY Lib for U-Boot · 5f184715
      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: default avatarAndy Fleming <afleming@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      5f184715
  8. Apr 01, 2011
  9. Feb 19, 2011
  10. Jan 18, 2011
  11. Jan 12, 2011
  12. Dec 17, 2010
  13. Dec 09, 2010
  14. Nov 28, 2010
  15. Oct 27, 2010
  16. Oct 26, 2010
    • Wolfgang Denk's avatar
      include/asm-offsets.h: automatically generate assembler constants · 16a354f9
      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: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
      16a354f9
  17. Oct 21, 2010
  18. Oct 11, 2010
  19. Sep 20, 2010
  20. May 05, 2010
    • Graeme Russ's avatar
      x86: Fix support for booting bzImage · 95ffaba3
      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: default avatarGraeme Russ <graeme.russ@gmail.com>
      95ffaba3
  21. Apr 02, 2010
  22. Jan 17, 2010
  23. Dec 05, 2009
    • Peter Korsgaard's avatar
      add lzop decompression support · 20dde48b
      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: default avatarPeter Korsgaard <jacmet@sunsite.dk>
      20dde48b
  24. Nov 18, 2009
  25. Nov 13, 2009
  26. Nov 07, 2009
    • Remy Bohmer's avatar
      ARM: Use Linux version for unaligned access code · 25793f76
      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: default avatarRemy Bohmer <linux@bohmer.net>
      Signed-off-by: default avatarStefan 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
      25793f76
  27. Oct 24, 2009
  28. Oct 14, 2009
  29. Oct 09, 2009
  30. Oct 03, 2009
  31. Sep 17, 2009
Loading