Skip to content
Snippets Groups Projects
  1. Jul 24, 2013
    • ken kuo's avatar
      nds32: Enable SDIO and EXT2 command support for Andes board · 61ccf082
      ken kuo authored
      
      Signed-off-by: default avatarKuan-Yu Kuo <ken.kuoky@gmail.com>
      Cc: Macpaul Lin <macpaul@gmail.com>
      61ccf082
    • ken kuo's avatar
      nds32: Enable two banks of SDRAM on Andes board · 3c016704
      ken kuo authored
      
      The original adp-ag101/adp-ag101p initialize only one bank(64MB)
      by default at boot time, but it is not enough for some application,
      so increasing to two banks(128M).
      
      Signed-off-by: default avatarKuan-Yu Kuo <ken.kuoky@gmail.com>
      Cc: Macpaul Lin <macpaul@gmail.com>
      3c016704
    • Gabor Juhos's avatar
      nds32: adp-ag102: use 'faraday/ftpci100.h' for pci_ftpci_init · f6fd4140
      Gabor Juhos authored
      
      Due to improper external function declaration,
      building U-Boot for the adp-ag102 board shows
      this warning:
      
        adp-ag102.c: In function 'pci_init_board':
        adp-ag102.c:95: warning: function declaration isn't a prototype
      
      Include the 'faraday/ftpci100.h' header which
      provides the proper declaration and remove the
      local declaration to get rid of the warning.
      
      Compile tested only.
      
      Cc: Macpaul Lin <macpaul@andestech.com>
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      f6fd4140
    • Gabor Juhos's avatar
      pci: move pci_ftpci100.h to include/faraday/ftpci100.h · 8599515f
      Gabor Juhos authored
      
      Even though the header files is used only by the
      pci_ftpci100 driver, it contains declaration for
      a function which is used by external code.
      
      Move the header file to a common location which
      lets external code use it.
      
      Compile tested only.
      
      Cc: Macpaul Lin <macpaul@andestech.com>
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      8599515f
    • Gabor Juhos's avatar
      pci: add prototype for pci_ftpci_init() function · b979cba9
      Gabor Juhos authored
      
      The pci_ftpci_init() function is implemented
      in 'drivers/pci/pci_ftpci100.c' however it is
      always called by external code.
      
      Add function declaration into ftpci100.h to
      make it visible for external code.
      
      Compile tested only.
      
      Cc: Macpaul Lin <macpaul@andestech.com>
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      b979cba9
    • Gabor Juhos's avatar
      block: constify sect_buf argument of ide_write_data · c575180b
      Gabor Juhos authored
      
      Add a const keyword to the sect_buf argument of
      ide_write_data to fix the following warning:
      
        cmd_ide.c: In function '__ide_output_data':
        cmd_ide.c:548: warning: passing argument 2 of 'ide_write_data' discards qualifiers from pointer target type
        /devel/u-boot.git/include/ide.h:76: note: expected 'ulong *' but argument is of type 'const ulong *'
      
      Also modify the driver-model documentation to
      match with the new prototype.
      
      Compile tested only.
      
      Cc: Macpaul Lin <macpaul@andestech.com>
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      c575180b
    • Gabor Juhos's avatar
      mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined · dbb713ba
      Gabor Juhos authored
      
      The FTSDC010_DCR_FIFO_RST symbol is conditionally
      defined in <faraday/ftsdc010.h> and it is available
      available when CONFIG_FTSDC010_SDIO is enabled.
      
      However the actual driver code unconditionally uses
      the FTSDC010_DCR_FIFO_RST constant and this causes
      build error if CONFIG_FTSDC010_SDIO is not enabled.
      
      The following error happens when compiling for the
      adp-ag101 board:
      
        ftsdc010_mci.c: In function 'ftsdc010_request':
        ftsdc010_mci.c:178: error: 'FTSDC010_DCR_FIFO_RST' undeclared (first use in this function)
        ftsdc010_mci.c:178: error: (Each undeclared identifier is reported only once
        ftsdc010_mci.c:178: error: for each function it appears in.)
      
      The patch ensures that the FTSDC010_DCR_FIFO_RST
      symbol gets used only if CONFIG_FTSDC010_SDIO is
      defined.
      
      Compile tested only.
      
      Cc: Kuo-Jung Su <dantesu@faraday-tech.com>
      Cc: Macpaul Lin <macpaul@andestech.com>
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Reviewed-by: default avatarKuo-Jung Su <dantesu@faraday-tech.com>
      dbb713ba
    • Gabor Juhos's avatar
      nds32: introduce macros for bit manipulation · bea2868f
      Gabor Juhos authored
      
      U-Boot does not compile for the adp-ag101 boards since
      commit f6c3b346 (mmc:
      update Faraday FTSDC010 for rw performance)
      
      The driver assumes that the bit manipulation macros
      are provided by all architectures. This is not the
      case for nds32 and it causes a build error like this:
      
        ftsdc010_mci.c: In function 'ftsdc010_clkset':
        ftsdc010_mci.c:118: warning: implicit declaration of function 'setbits_le32'
        ftsdc010_mci.c:123: warning: implicit declaration of function 'clrbits_le32'
        drivers/mmc/libmmc.o: In function `ftsdc010_request':
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:234: undefined reference to `setbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:243: undefined reference to `clrbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:234: undefined reference to `clrbits_le32'
        drivers/mmc/libmmc.o: In function `ftsdc010_clkset':
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:118: undefined reference to `clrbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:118: undefined reference to `clrbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:121: undefined reference to `setbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:123: undefined reference to `setbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:123: undefined reference to `setbits_le32'
      
      The patch adds bit manipulation macros for the
      nds32 architecture to avoid the errors. The macros
      are copied from the ARM implementation.
      
      Compile tested only.
      
      Cc: Kuo-Jung Su <dantesu@faraday-tech.com>
      Cc: Macpaul Lin <macpaul@andestech.com>
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      bea2868f
  2. Jul 23, 2013
  3. Jul 22, 2013
  4. Jul 20, 2013
  5. Jul 19, 2013
  6. Jul 17, 2013
  7. Jul 16, 2013
  8. Jul 15, 2013
    • Wolfgang Denk's avatar
      PPC MPC83xx: Fix MPC8323ERDB build warning · f4ea9f86
      Wolfgang Denk authored
      
      Fix:
      
      mpc8323erdb.c: In function 'mac_read_from_eeprom':
      mpc8323erdb.c:198:3: warning: dereferencing type-punned pointer will
      break strict-aliasing rules [-Wstrict-aliasing]
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      cc: Timur Tabi <timur@tabi.org>
      cc: Kim Phillips <kim.phillips@freescale.com>
      f4ea9f86
    • Frederic Leroy's avatar
      Fix ext2/ext4 filesystem accesses beyond 2TiB · 04735e9c
      Frederic Leroy authored
      
      With CONFIG_SYS_64BIT_LBA, lbaint_t gets defined as a 64-bit type,
      which is required to represent block numbers for storage devices that
      exceed 2TiB (the block size usually is 512B), e.g. recent hard drives
      
      We now use lbaint_t for partition offset to reflect the lbaint_t change,
      and access partitions beyond or crossing the 2.1TiB limit.
      This required changes to signature of ext4fs_devread(), and type of all
      variables relatives to block sector.
      
      ext2/ext4 fs uses logical block represented by a 32 bit value. Logical
      block is a multiple of device block sector. To avoid overflow problem
      when calling ext4fs_devread(), we need to cast the sector parameter.
      
      Signed-off-by: default avatarFrédéric Leroy <fredo@starox.org>
      04735e9c
    • Lan Yixun (dlan)'s avatar
      common: remove unaligned access error in bootmenu_getoption() · 0eb33ad2
      Lan Yixun (dlan) authored
      
      Some ARM compilers may emit code that makes unaligned accesses when
      faced with constructs such as:
      
          char name[12] = "bootmenu_";
      
      same fix as commit: 064d55f8
      
      =========================================================
      data abort
      
          MAYBE you should read doc/README.arm-unaligned-accesses
      
      pc : [<3ff4b60c>]          lr : [<3ff4b7b0>]
      sp : 3f346a58  ip : 3ff9c8e6     fp : 02000060
      r10: 00000000  r9 : 3df47fc0     r8 : 3f347f40
      r7 : 00000000  r6 : 00000000     r5 : 00000003  r4 : 3f759140
      r3 : 000003f0  r2 : 00000000     r1 : 000003f1  r0 : 00000000
      Flags: nzCv  IRQs on  FIQs off  Mode SVC_32
      Resetting CPU ...
      ======================================================
      
      Signed-off-by: default avatarLan Yixun (dlan) <dennis.yxun@gmail.com>
      0eb33ad2
    • Holger Brunck's avatar
      cramfs: fix bug for wrong filename comparison · 457dd025
      Holger Brunck authored
      
      "cramfsload uImage_1" succeeds even though the actual file is named
      "uImage".
      
      Fix file name comparison when one name is the prefix of the other.
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      457dd025
    • Gerhard Sittig's avatar
      patman: README documentation nits (unit test) · c8605bb4
      Gerhard Sittig authored
      
      adjust instructions for the invocation of Patman's self test: the -t
      flag appears to have a different meaning now, refer to the --test option
      for the builtin unit test; adjust a directory location and make sure to
      run the file which resides in the source directory
      
      Signed-off-by: default avatarGerhard Sittig <gsi@denx.de>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      c8605bb4
    • Simon Glass's avatar
      scsi: Correct types of scsi_read/write() · 4f6aa346
      Simon Glass authored
      
      The block device expects to see lbaint_t for the blknr parameter. Change
      the SCSI read/write functions to suit.
      
      This fixes the following build warnings for coreboot:
      
      cmd_scsi.c: In function ‘scsi_scan’:
      cmd_scsi.c:119:30: error: assignment from incompatible pointer type [-Werror]
      cmd_scsi.c:120:32: error: assignment from incompatible pointer type [-Werror]
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      4f6aa346
    • Tom Rini's avatar
      Revert "MIPS: Jz4740: Add qi_lb60 board support" · 54e458de
      Tom Rini authored
      
      The files board/qi/qi_lb60/qi_lb60.c and include/configs/qi_lb60.h were
      licensed under the GPL v3 or later, and not v2 or later.  As this is
      incompatible with the project, revert this board support until the
      responsible parties are available to re-license (if so desired) under
      GPL v2.
      
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      54e458de
  9. Jul 12, 2013
Loading