1. 26 8月, 2014 5 次提交
    • H
      mtd, ubi, ubifs: resync with Linux-3.14 · ff94bc40
      Heiko Schocher 提交于
      resync ubi subsystem with linux:
      
      commit 455c6fdbd219161bd09b1165f11699d6d73de11c
      Author: Linus Torvalds <torvalds@linux-foundation.org>
      Date:   Sun Mar 30 20:40:15 2014 -0700
      
          Linux 3.14
      
      A nice side effect of this, is we introduce UBI Fastmap support
      to U-Boot.
      Signed-off-by: NHeiko Schocher <hs@denx.de>
      Signed-off-by: NTom Rini <trini@ti.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Sergey Lapin <slapin@ossfans.org>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Joerg Krause <jkrause@posteo.de>
      ff94bc40
    • H
      lib, linux: move linux specific defines to linux/compat.h · 0c06db59
      Heiko Schocher 提交于
      - 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: NHeiko 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: NTom Rini <trini@ti.com>
      0c06db59
    • H
      linux include: add ERR_CAST · cc96c9a7
      Heiko Schocher 提交于
      add missing ERR_CAST to linux/err.h as it is needed for ubi/ubifs support
      Signed-off-by: NHeiko Schocher <hs@denx.de>
      cc96c9a7
    • H
      lib, list_sort: add list_sort from linux 3.14 · c068d44a
      Heiko Schocher 提交于
      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: NHeiko 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
    • H
      lib, rbtree: resync with Linux-3.14 · 9dd228b5
      Heiko Schocher 提交于
      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: NHeiko 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
  2. 25 8月, 2014 1 次提交
  3. 24 8月, 2014 4 次提交
    • T
      nios2: remove EPCS driver · 055626ac
      Thomas Chou 提交于
      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: NThomas Chou <thomas@wytron.com.tw>
      055626ac
    • T
      nios2: add generic board support · 5ff10aa7
      Thomas Chou 提交于
      This patch implements the generic board init as described in
      doc/README.generic-board.
      Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
      Signed-off-by: NScott McNutt <smcnutt@psyent.com>
      Reviewed-by: NStefan Roese <sr@denx.de>
      5ff10aa7
    • T
      nios2: remove obsolete PCI5441 and PK1C20 boards · 70fbc461
      Thomas Chou 提交于
      Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
      70fbc461
    • V
      nios2: Fix printf size_t format related warnings (again...) · 00a2517f
      Vasili Galka 提交于
      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: NVasili Galka <vvv444@gmail.com>
      Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
      00a2517f
  4. 22 8月, 2014 30 次提交