1. 25 7月, 2013 1 次提交
  2. 24 7月, 2013 10 次提交
    • A
      nds32: ag101/ag102: Fix setting lastdec and now values · 4fc96705
      Axel Lin 提交于
      The timer3 counter unit for lastdesc and now values are inconsistent in current
      code. The unit of "readl(&tmr->timer3_counter) / (CONFIG_SYS_CLK_FREQ / 2)" is
      second. However, CONFIG_SYS_HZ is defined as 1000 in board config file.
      This means the accuracy of "lastdec" and "now" should be in millisecond,
      thus fix the equation to set lastdec and now variables accordingly.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      4fc96705
    • K
      nds32: Enable the function of passing parameters to Linux · e3c58b02
      ken kuo 提交于
      Add a header file, setup.h, which copy from Linux source code,
      this file contain structures are used to pass initialisation parameters
      to Linux. Enable this function on adp-ag101/adp-ag101p target
      Signed-off-by: NKuan-Yu Kuo <ken.kuoky@gmail.com>
      Cc: Macpaul Lin <macpaul@gmail.com>
      e3c58b02
    • K
      nds32: Enable SDIO and EXT2 command support for Andes board · 61ccf082
      ken kuo 提交于
      Signed-off-by: NKuan-Yu Kuo <ken.kuoky@gmail.com>
      Cc: Macpaul Lin <macpaul@gmail.com>
      61ccf082
    • K
      nds32: Enable two banks of SDRAM on Andes board · 3c016704
      ken kuo 提交于
      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: NKuan-Yu Kuo <ken.kuoky@gmail.com>
      Cc: Macpaul Lin <macpaul@gmail.com>
      3c016704
    • G
      nds32: adp-ag102: use 'faraday/ftpci100.h' for pci_ftpci_init · f6fd4140
      Gabor Juhos 提交于
      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: NGabor Juhos <juhosg@openwrt.org>
      f6fd4140
    • G
      pci: move pci_ftpci100.h to include/faraday/ftpci100.h · 8599515f
      Gabor Juhos 提交于
      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: NGabor Juhos <juhosg@openwrt.org>
      8599515f
    • G
      pci: add prototype for pci_ftpci_init() function · b979cba9
      Gabor Juhos 提交于
      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: NGabor Juhos <juhosg@openwrt.org>
      b979cba9
    • G
      block: constify sect_buf argument of ide_write_data · c575180b
      Gabor Juhos 提交于
      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: NGabor Juhos <juhosg@openwrt.org>
      c575180b
    • G
      mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined · dbb713ba
      Gabor Juhos 提交于
      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: NGabor Juhos <juhosg@openwrt.org>
      Reviewed-by: NKuo-Jung Su <dantesu@faraday-tech.com>
      dbb713ba
    • G
      nds32: introduce macros for bit manipulation · bea2868f
      Gabor Juhos 提交于
      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: NGabor Juhos <juhosg@openwrt.org>
      bea2868f
  3. 23 7月, 2013 1 次提交
  4. 22 7月, 2013 3 次提交
  5. 21 7月, 2013 1 次提交
  6. 20 7月, 2013 2 次提交
  7. 19 7月, 2013 2 次提交
  8. 17 7月, 2013 12 次提交
  9. 16 7月, 2013 8 次提交