Skip to content
Snippets Groups Projects
  1. Oct 21, 2011
    • Macpaul Lin's avatar
      nds32: add NDS32 support into common header file · e7083844
      Macpaul Lin authored
      
      Add NDS32 support into common header file.
      
      Signed-off-by: default avatarMacpaul Lin <macpaul@andestech.com>
      e7083844
    • Macpaul Lin's avatar
      nds32: add header files support for nds32 · 00f892fc
      Macpaul Lin authored
      
      Add generic header files support for nds32 architecture.
      Cache, ptregs, data type and other definitions are included.
      
      Signed-off-by: default avatarMacpaul Lin <macpaul@andestech.com>
      00f892fc
    • Timur Tabi's avatar
      cmd_bdinfo: replace print_str() with print_mhz() · 0c277ef9
      Timur Tabi authored
      
      The print_str() helper function for cmd_bdinfo can print any string, but it
      is only used to print MHz values.  Replace it with print_mhz() that takes
      a number and converts it to a string internally.
      
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      0c277ef9
    • Dirk Eibach's avatar
      gpio: Add PCA9698 40-bit I2C I/O port · 486cad03
      Dirk Eibach authored
      
      Signed-off-by: default avatarDirk Eibach <eibach@gdsys.de>
      486cad03
    • Linus Walleij's avatar
      serial: pl01x: drain PL01x FIFO before baudrate change · 96baa4c3
      Linus Walleij authored
      
      Not draining the FIFO and waiting for the UART to be non-busy
      before changing baudrate results in crap characters on the
      console, so let's wait for the FIFO to drain and the last
      character to be clocked out before we do that.
      
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      96baa4c3
    • Che-liang Chiou's avatar
      examples: api: allow build with private libgcc · 349e83f0
      Che-liang Chiou authored
      
      The examples/api is not configured with USE_PRIVATE_LIBGCC.  This makes
      building examples/api break on certain boards that do not/cannot use the
      public libgcc.
      
      Nevertheless, this patch has to also touch the top-level Makefile to fix
      this problem because the current top-level Makefile does not specify
      libgcc as a prerequisite of examples/api, and explicitly builds
      examples/api _before_ libgcc.
      
      For testing this patch, I added the following to configs/seaboard.h and
      ran demo.bin on a Seaboard.
      
      +#define CONFIG_API
      +#define CONFIG_SYS_MMC_MAX_DEVICE 2
      +#define CONFIG_CMD_NET
      +#define CONFIG_NET_MULTI
      
      Signed-off-by: default avatarChe-Liang Chiou <clchiou@chromium.org>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      349e83f0
    • Linus Walleij's avatar
      net: dc2114x: check for apropriate command · df6a36fb
      Linus Walleij authored
      
      The code had two paths depending on whether the card was to be
      accessed from plain memory or the IO region. However the error
      path checks whether IO region was obtained - twice. Fix up the
      error path according to the probable intention.
      
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      df6a36fb
    • Gerlando Falauto's avatar
    • Macpaul Lin's avatar
      ftgmac100: reset fix when supports wake on lan · 55b438a9
      Macpaul Lin authored
      
      This patch move the reset function from initialization to
      driver register procedure.
      
      Some embedded system supports wake on lan nowadays. On this kind of system,
      the ftgmac100 will be still supplied power after the system has been
      shut-down by Linux. Hence the register used by linux won't be clear
      when the system has been powered-off.
      
      The origin ftgmac100 driver in u-boot will only register
      driver and functions to network stack and won't reset the ftgmac100
      hardware if the network won't be used during boot-up.
      This will lead ftgmac100 continue receiving packets and then might corrupt
      linux kernel when booting up.
      
      So we reorder the hardware reset function earlier to force the hardware
      to be reset whether it will be used or not.
      
      Signed-off-by: default avatarMacpaul Lin <macpaul@andestech.com>
      55b438a9
    • Holger Brunck's avatar
      km/common: remove obsolete header file · 370853ae
      Holger Brunck authored
      
      This header is unneeded due to code which was removed in the
      past.
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Wolfgang Denk <wd@denx.de>
      370853ae
    • Andreas Huber's avatar
      km/common: fix ramfs development target · 2a7714ce
      Andreas Huber authored
      
      Calucations of PRAM needs to take into account the 'rootfssize'.
      Memory available to the linux kernel 'mem=' is in all cases set to the total
      memory size minus the pram size.
      
      Signed-off-by: default avatarAndreas Huber <andreas.huber@keymile.com>
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Wolfgang Denk <wd@denx.de>
      2a7714ce
    • Holger Brunck's avatar
      km/common: force set ethaddr only for KM kirkwood boards · 0eb0e59e
      Holger Brunck authored
      
      This prevents u-boot to print out "Can't overwrite "ethaddr""
      each time a powerpc board starts.
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Wolfgang Denk <wd@denx.de>
      0eb0e59e
    • Luka Perkov's avatar
      fix compile warning for env tools · 8603b69b
      Luka Perkov authored
      
      Patch fixes this issue:
      
      fw_env.c: In function ‘fw_setenv’:
      fw_env.c:492:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat]
      fw_env.c: In function ‘flash_write_buf’:
      fw_env.c:806:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat]
      
      Signed-off-by: default avatarLuka Perkov <lists@lukaperkov.net>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      8603b69b
    • Valentin Longchamp's avatar
      km_arm: enable POST for these boards · a2da6163
      Valentin Longchamp authored
      
      The current km_arm boards have a Power-On test jumper. When this
      jumper is set, this triggers some Power-On tests on the board.
      
      This patch enables the support of this jumper for starting the
      memory_regions test when the jumper is set.
      
      Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      Cc: Prafulla Wadaskar <prafulla@marvell.com>
      a2da6163
    • Simon Schwarz's avatar
      removed static from images in cmd_bootm.c · dee17768
      Simon Schwarz authored
      
      This removes static modifier from images variable in cmd_bootm.c.
      
      Signed-off-by: default avatarSimon Schwarz <simonschwarzcor@gmail.com>
      dee17768
    • Wolfgang Denk's avatar
      Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx · 02aff558
      Wolfgang Denk authored
      * 'master' of git://git.denx.de/u-boot-mpc85xx:
        mpc85xx: Add inline GPIO acessor functions
        powerpc/85xx: wait for alignment before resetting SERDES RX lanes (SERDES9)
        powerpc/85xx: Fix P2020DS booting
        powerpc/85xx: Update USB device tree status based on pin settings
        fdt: Add new fdt_set_node_status & fdt_set_status_by_alias helpers
        powerpc/85xx: Add support for RMan LIODN initialization
        powerpc/85xx: Update device tree handling for SRIO
        powerpc/85xx: Update setting of SRIO LIODNs
        fm: Don't allow disabling of FM1-DTSEC1
        fm-eth: Don't mark the MAC we use for MDIO as disabled in device tree
      02aff558
    • Wolfgang Denk's avatar
      Merge branch 'master' of git://git.denx.de/u-boot-coldfire · f82c087e
      Wolfgang Denk authored
      * 'master' of git://git.denx.de/u-boot-coldfire:
        ColdFire: Clean Makefile _config rules
        ColdFire: Move boards with simple _config rules to boards.cfg
        ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined
        ColdFire: Merge differentiated linking files into a sigle one by board
        ColdFire: Add $(obj) before cpu lib to correct build
        ColdFire: Cleanup lds files for multiple defined symbols
      f82c087e
    • Wolfgang Denk's avatar
      Merge branch 'master' of /home/wd/git/u-boot/master · 1b81f017
      Wolfgang Denk authored
      * 'master' of /home/wd/git/u-boot/master:
        cosmetic: Fixup fixup_silent_linux() for checkpatch
        Correct dependency rule to fix SPL build
        Move timestamp and version files into 'generated' subdir
        sandbox: Makefile changes to build sandbox architecture
        Add generic gpio.h in asm-generic
        Adjust dependency rules to permit per-file flags
        sandbox: Use uintptr_t for 32/64-bit compatibility
        sandbox: Add basic config file
        sandbox: Add serial uart
        sandbox: Add main program
        sandbox: Add OS dependent layer
        sandbox: Force command sections to be 4-byte aligned
        sandbox: Disable standalone/API support
        sandbox: Disable built-in malloc
        sandbox: Add bootm support
        sandbox: Add board info for architecture
        sandbox: Add sandbox board
        sandbox: Add architecture lib files
        sandbox: Add cpu files
        sandbox: Add compiler defines to support a 64-bit x86_64 platform
        sandbox: Add architecture image support
        Fix use of int as pointer in image.c
        sandbox: Add architecture header files
        arm: ca9x4_ct_vxp: enable PXE BOOTP options support
        arm: ca9x4_ct_vxp: enable pxe command support
        Convert ca9x4_ct_vxp to standard env variables
        net: bootp: add PXE/RFC 4578 DHCP options support
        Add pxe command
        lib: add uuid_str_to_bin for use with bootp and PXE uuid
        README: document standard image variables
        Replace space and tab checks with isblank
        cosmetic: remove unneeded curly braces
        Add isblank
        common: add run_command2 for running simple or hush commands
        common, menu: use abortboot for menu timeout
        Add generic, reusable menu code
        DM9000:Add a byte swap macro for dm9000 io operation.
        kw_gpio: fix error in kw_gpio_direction_input
        Blackfin: bfin_spi: fix build error when DEBUG is defined
        Blackfin: define CONFIG_SYS_CACHELINE_SIZE
        video: Moving mx3fb.c to CONFIG_VIDEO
        mx31: make HSP clock for mx3fb driver available
        MX5: Make IPU display output and pixel format configurable
        VIDEO: MX5: export pix format
        VIDEO: MX5: Switch MX5 to CONFIG_VIDEO
        video: update the Freescale DIU driver to use linux/fb.h
        powerpc: cpm2 boards: update fcc register logic
      1b81f017
    • Kyle Moffett's avatar
      mpc85xx: Add inline GPIO acessor functions · 710308ee
      Kyle Moffett authored
      
      To ease the implementation of other MPC85xx board ports, several common
      GPIO helpers are added to <asm/mpc85xx_gpio.h>.
      
      Since each of these compiles to no more than 4-5 instructions it would
      be very inefficient to call them out of line, therefore we put them
      entirely in the header file.
      
      The HWW-1U-1A board port which these were written for strongly prefers
      to set multiple GPIOs as a single batch operation, so the API is
      designed around that basis.
      
      To assist other board ports, a small set of wrappers are used which
      provides a standard gpio_request() interface around the MPC85xx-specific
      functions.  This can be enabled with CONFIG_MPC85XX_GENERIC_GPIO
      
      Signed-off-by: default avatarKyle Moffett <Kyle.D.Moffett@boeing.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Cc: Peter Tyser <ptyser@xes-inc.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      710308ee
  2. Oct 20, 2011
  3. Oct 18, 2011
  4. Oct 17, 2011
    • Simon Glass's avatar
      Move timestamp and version files into 'generated' subdir · efb2172e
      Simon Glass authored
      
      There is a rather subtle build problem where the build time stamp is not
      updated for out-of-tree builds if there exists an in-tree build which
      has a valid timestamp file. So if you do an in-tree build, then an
      out-of-tree build your timestamp will not change.
      
      The correct timestamp_autogenerated.h lives in the object tree, but it
      is not always found there. The source still lives in the source tree and
      when compiling version.h, it includes timestamp_autogenerated.h. Since
      the current directory is always searched first, this will come from the
      source tree rather than the object tree if it exists there. This affects
      dependency generation also, which means that common/cmd_version.o will not
      even be rebuilt if you have ever done an in-tree build.
      
      A similar problem exists with the version file.
      
      This change moves both files into the 'generated' subdir, which is already
      used for asm-offsets.h. Then timestamp.h and version.h are updated to
      include the files from there.
      
      There are other places where these generated files are included, but I
      cannot see why these don't just use the timestamp.h and version.h headers.
      So this change also tidies that up.
      
      I have tested this with in- and out-of-tree builds, but not SPL. I have
      looked at various other options for fixing this, including sed on the dep
      files, -I- and -include flags to gcc, but I don't think they can be made
      to work. Comments welcome.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      efb2172e
    • Simon Glass's avatar
      sandbox: Makefile changes to build sandbox architecture · 86eb49b3
      Simon Glass authored
      
      At this point U-Boot will build and run on x86 under Linux.
      
      The idea is to define a new architecture called 'sandbox', alongside ARM
      and x86. This runs natively on Linux to suit the host machine. All
      hardware access is either omitted or emulated.
      
      The purpose of this system is to test the bulk of the non-hardware-specific
      U-Boot code. We can mock the SPI flash, GPIOs, UART and keyboard, then test
      that U-Boot behaves as we wish.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      86eb49b3
    • Simon Glass's avatar
      Add generic gpio.h in asm-generic · 9d2cb8e8
      Simon Glass authored
      
      Since we want want to have a standard GPIO interface, this adds a definition
      for this into include/asm-generic/gpio.h.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      9d2cb8e8
    • Simon Glass's avatar
      Adjust dependency rules to permit per-file flags · 47508843
      Simon Glass authored
      
      The dependency rules are currently done in a shell 'for' loop. This does not
      permit Makefile variables to adjust preprocessor flags as is done with normal
      compile flags, using the CFLAGS_path/file.o syntax.
      
      This change moves the dependency generation into the Makefile itself, and
      permits a CPPFLAGS_path/file.o to adjust preprocessor flags on a file or
      directory basis.
      
      The CPPFLAGS_... variable is also folded into CFLAGS during the build.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      47508843
Loading