Skip to content
Snippets Groups Projects
  1. 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
    • Heiko Schocher's avatar
      linux include: add ERR_CAST · cc96c9a7
      Heiko Schocher authored
      
      add missing ERR_CAST to linux/err.h as it is needed for ubi/ubifs support
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc96c9a7
    • Heiko Schocher's avatar
      lib, list_sort: add list_sort from linux 3.14 · c068d44a
      Heiko Schocher authored
      
      from linux 3.14:
      
      commit 455c6fdbd219161bd09b1165f11699d6d73de11c
      Author: Linus Torvalds <torvalds@linux-foundation.org>
      Date:   Sun Mar 30 20:40:15 2014 -0700
      
          Linux 3.14
      
      Needed for the MTD/UBI/UBIFS resync
      
      Just copied the files from Linux, and added in the c-file
      the "#define __UBOOT__" for adding U-Boot special code. In
      this case we use this just for adding including U-Boot
      headers.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Sergey Lapin <slapin@ossfans.org>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Tom Rini <trini@ti.com>
      c068d44a
    • Heiko Schocher's avatar
      lib, rbtree: resync with Linux-3.14 · 9dd228b5
      Heiko Schocher authored
      
      resync with linux:
      
      commit 455c6fdbd219161bd09b1165f11699d6d73de11c
      Author: Linus Torvalds <torvalds@linux-foundation.org>
      Date:   Sun Mar 30 20:40:15 2014 -0700
      
          Linux 3.14
      
      Needed for the MTD/UBI/UBIFS resync
      
      Just copied the files from Linux, changed the license file header,
      and add in the c-file:
      
      +#define __UBOOT__
       #include <linux/rbtree_augmented.h>
      +#ifndef __UBOOT__
       #include <linux/export.h>
      +#else
      +#include <ubi_uboot.h>
      +#endif
      
      so, it compiles for U-Boot.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Sergey Lapin <slapin@ossfans.org>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Tom Rini <trini@ti.com>
      9dd228b5
    • Tom Rini's avatar
  2. Aug 24, 2014
    • Thomas Chou's avatar
      nios2: remove EPCS driver · 055626ac
      Thomas Chou authored
      
      The Altera EPCS is SPI flash. We have been using SPI flash driver
      to access EPCS for years. The old EPCS driver could be removed.
      
      Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
      055626ac
    • Thomas Chou's avatar
      nios2: add generic board support · 5ff10aa7
      Thomas Chou authored
      
      This patch implements the generic board init as described in
      doc/README.generic-board.
      
      Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
      Signed-off-by: default avatarScott McNutt <smcnutt@psyent.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      5ff10aa7
    • Thomas Chou's avatar
      70fbc461
    • Vasili Galka's avatar
      nios2: Fix printf size_t format related warnings (again...) · 00a2517f
      Vasili Galka authored
      When compiling the current code on GCC 4.8.3, the following warnings
      appear:
      
      warning: format '%zu' expects argument of type 'size_t', but argument
      2 has type 'long unsigned int' [-Wformat=]
      
      There were many mails about such warnings on different architectures.
      This patch limits itself to the nios2 architecture.
      
      The problem is that for the size_t (%zu, %zd, ...) arguments of
      printf GCC does not verify the type match to size_t type. It verifies
      the type match to the compiler-defined __SIZE_TYPE__ type. Thus, if
      size_t is defined different from __SIZE_TYPE__ - warnings inevitably
      appear.
      
      There is a comment by Thomas Chou to the (rejected) patch:
      http://patchwork.ozlabs.org/patch/272102/
      
      
      which explains that the older GCC toolchains (gcc-3.4.6 and gcc-4.1.2)
      expect size_t to be "unsigned long" and the newer expect it to be
      "unsigned int". Thus, no matter how we define size_t - either way
      warnings appear when using some GCC version.
      
      By rejecting that patch, a choice was made to prefer older GCC versions
      and leave the warnings when building with the newer toolchains.
      Personally, I disagree with this choice...
      
      In any case, this patch proposes a way to fix the warnings for any GCC
      version. Just define size_t using the __SIZE_TYPE__ compiler-defined
      type and the type verification will pass.
      
      I tested that this fixes the warning on GCC 4.8.3. I don't have an
      older toolchain to test with, but __SIZE_TYPE__ was definitely defined
      in GCC 3.4.6, so it should work there too.
      
      Signed-off-by: default avatarVasili Galka <vvv444@gmail.com>
      Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
      00a2517f
  3. Aug 22, 2014
  4. Aug 21, 2014
Loading