Skip to content
Snippets Groups Projects
  1. Jul 22, 2015
  2. Apr 14, 2015
  3. Jan 28, 2015
  4. Dec 08, 2014
  5. Nov 20, 2014
    • Masahiro Yamada's avatar
      include: move various macros to include/linux/kernel.h · cba1da49
      Masahiro Yamada authored
      
      U-Boot has imported various utility macros from Linux
      scattering them to various places without consistency.
      
      In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
      container_of, DIV_ROUND_UP, etc.
      In include/linux/compat.h are min_t, max_t, round_up, round_down,
      etc.
      We also have duplicated defines of min_t in some *.c files.
      
      Moreover, we are suffering from too cluttered include/common.h.
      
      This commit moves various macros that originate in
      include/linux/kernel.h of Linux to their original position.
      
      Note:
      This commit simply moves the macros; the macros roundup,
      min, max, min2, max3, ARRAY_SIZE are different
      from those of Linux at this point.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      cba1da49
  6. Aug 25, 2014
    • Heiko Schocher's avatar
      lib, linux: move linux specific defines to linux/compat.h · 0c06db59
      Heiko Schocher authored
      
      - move linux specific defines from usb and video code
        into linux/compat.h
      - move common linux specific defines from include/ubi_uboot.h
        to linux/compat.h
      - add for new mtd/ubi/ubifs sync new needed linux specific
        defines to linux/compat.h
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      [trini: Add spin_lock_irqsave/spin_unlock_irqrestore dummies from
      usb/lin_gadet_compat.h]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      0c06db59
  7. Jul 22, 2014
    • Lijun Pan's avatar
      linux/compat.h: port lower_32_bits and upper_32_bits from Linux · 8f2df5d3
      Lijun Pan authored
      
      [backport from linux commit 204b885e and 218e180e7]
      64 bit processors are becomming more and more popular.
      lower_32_bits and upper_32_bits save our labor doing
      shifts/manipulations like (u32)(n) and (u32)((n) >> 32).
      They are good helpers in both little and big endian cases.
      Port these two functions here from Linux:include/linux/kernel.h,
      cater the comment message to little/big endian cases.
      Later on, developers could include linux/compat.h if they want to
      use these two functions.
      
      Signed-off-by: default avatarLijun Pan <Lijun.Pan@freescale.com>
      8f2df5d3
  8. Aug 22, 2013
  9. Nov 04, 2012
    • Kim Phillips's avatar
      include/linux/compat.h: fix warning: preprocessor token {__iomem, __user} redefined · 0d4c1c91
      Kim Phillips authored
      
      include/linux/compat.h:4:9: warning: preprocessor token __user redefined
      include/linux/compiler.h:7:10: this was the original definition
      include/linux/compat.h:5:9: warning: preprocessor token __iomem redefined
      include/linux/compiler.h:12:10: this was the original definition
      
      fixup __iomem, __user definitions in compat.h code appears to be placed
      there as a cover up from a code import from linux when u-boot didn't yet
      have a compiler.h, introduced by commit
      932394ac "Rewrite of NAND code based on
      what is in 2.6.12 Linux kernel".
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      0d4c1c91
  10. Apr 30, 2012
  11. Jan 17, 2010
  12. Jun 12, 2009
  13. Aug 12, 2008
    • William Juul's avatar
      Fixing coding style issues · 5e1dae5c
      William Juul authored
      
       - Fixing leading white spaces
       - Fixing indentation where 4 spaces are used instead of tab
       - Removing C++ comments (//), wherever I introduced them
      
      Signed-off-by: default avatarWilliam Juul <william.juul@tandberg.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      5e1dae5c
    • William Juul's avatar
      Update MTD to that of Linux 2.6.22.1 · cfa460ad
      William Juul authored
      
      A lot changed in the Linux MTD code, since it was last ported from
      Linux to U-Boot. This patch takes U-Boot NAND support to the level
      of Linux 2.6.22.1 and will enable support for very large NAND devices
      (4KB pages) and ease the compatibility between U-Boot and Linux
      filesystems.
      
      This patch is tested on two custom boards with PPC and ARM
      processors running YAFFS in U-Boot and Linux using gcc-4.1.2
      cross compilers.
      
      MAKEALL ppc/arm has some issues:
       * DOC/OneNand/nand_spl is not building (I have not tried porting
         these parts, and since I do not have any HW and I am not familiar
         with this code/HW I think its best left to someone else.)
      
      Except for the issues mentioned above, I have ported all drivers
      necessary to run MAKEALL ppc/arm without errors and warnings. Many
      drivers were trivial to port, but some were not so trivial. The
      following drivers must be examined carefully and maybe rewritten to
      some degree:
       cpu/ppc4xx/ndfc.c
       cpu/arm926ejs/davinci/nand.c
       board/delta/nand.c
       board/zylonite/nand.c
      
      Signed-off-by: default avatarWilliam Juul <william.juul@tandberg.com>
      Signed-off-by: default avatarStig Olsen <stig.olsen@tandberg.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      cfa460ad
  14. Sep 07, 2006
    • Stefan Roese's avatar
      Add support for AMCC Sequoia PPC440EPx eval board · 887e2ec9
      Stefan Roese authored
      - Add support for PPC440EPx & PPC440GRx
      - Add support for PPC440EP(x)/GR(x) NAND controller
        in cpu/ppc4xx directory
      - Add NAND boot functionality for Sequoia board,
        please see doc/README.nand-boot-ppc440 for details
      - This Sequoia NAND image doesn't support environment
        in NAND for now. This will be added in a short while.
      Patch by Stefan Roese, 07 Sep 2006
      887e2ec9
  15. Aug 17, 2005
Loading