Skip to content
Snippets Groups Projects
  1. May 10, 2011
  2. May 09, 2011
  3. May 06, 2011
  4. Apr 30, 2011
  5. Apr 29, 2011
    • Luca Ceresoli's avatar
    • Scott Wood's avatar
      Handle most LDSCRIPT setting centrally · 83b7e2a7
      Scott Wood authored
      
      Currently, some linker scripts are found by common code in config.mk.
      Some are found using CONFIG_SYS_LDSCRIPT, but the code for that is
      sometimes in arch config.mk and sometimes in board config.mk.  Some
      are found using an arch-specific rule for looking in CPUDIR, etc.
      
      Further, the powerpc config.mk rule relied on CONFIG_NAND_SPL
      when it really wanted CONFIG_NAND_U_BOOT -- which covered up the fact
      that not all NAND_U_BOOT builds actually wanted CPUDIR/u-boot-nand.lds.
      
      Replace all of this -- except for a handful of boards that are actually
      selecting a linker script in a unique way -- with centralized ldscript
      finding.
      
      If board code specifies LDSCRIPT, that will be used.
      Otherwise, if CONFIG_SYS_LDSCRIPT is specified, that will be used.
      
      If neither of these are specified, then the central config.mk will
      check for the existence of the following, in order:
      
      $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
      $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
      $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
      $(TOPDIR)/$(CPUDIR)/u-boot.lds
      
      Some boards (sc3, cm5200, munices) provided their own u-boot.lds that
      were dead code, because they were overridden by a CPUDIR u-boot.lds under
      the old powerpc rules.  These boards' own u-boot.lds have bitrotted and
      no longer work -- these lds files have been removed.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Tested-by: default avatarGraeme Russ <graeme.russ@gmail.com>
      83b7e2a7
    • Holger Brunck's avatar
      keymile-common.h: remove IO mux stuff · ec9a3740
      Holger Brunck authored
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      cc: Heiko Schocher <hs@denx.de>
      ec9a3740
    • Thomas Herzmann's avatar
      keymile boards: support of boardId / hwkey lists · 48d9539a
      Thomas Herzmann authored
      
      In order to support boardId / hwkey lists, the u-boot default
      environment has been updated: Added a script checkboardidlist
      which checks the list of boardId / hwkey if the boadrId / hwkey
      of the IVM is included in that list. This feature is used if you
      got different HW variants but you only want to create one boot
      package. E.g. supx5 board series.
      
      Signed-off-by: default avatarThomas Herzmann <thomas.herzmann@keymile.com>
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      cc: Heiko Schocher <hs@denx.de>
      48d9539a
    • Holger Brunck's avatar
      ppc, arm: rework and enhance keymile-common.h · a21b5d4b
      Holger Brunck authored
      
      Add:
        - introduce "bootrunner" environment variable
          This allows to execute consecutive different commands
          specified in the list "subbootcmd". If one command fails
          the command serie will stop.
        - introduce environment variable "develop", "ramfs" and "release"
          Each variable is one way to boot our linux. "develop" is for
          development purpose and boots the SW via NFS. "release" is for
          booting the linux image from flash, "ramfs" allows to load an SW
          image via tftp into ram and executes from there
        - introduce "addmem" variable, this command adds the used memory
          for linux to the bootargs
        - introduce "addvar" variable, this command adress for the /var
          directory to the kernel command line
        - introduce "setramfspram" and "setrootfsaddr" these calculation
          were done if "ramfs" was used (only for debugging)
        - introduce "tftpramfs" used for "ramfs" to load the image into
          RAM (only for debugging)
      Remove unneeded stuff:
         - CONFIG_IO_MUXING is obsolete for keymile boards
         - CONFIG_KM_DEF_ENV_PRIVATE is also obsolete
         - define CONFIG_SYS_TEXT_BASE in board configs only
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Prafulla Wadaskar <prafulla@marvell.com>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      cc: Heiko Schocher <hs@denx.de>
      a21b5d4b
    • Heiko Schocher's avatar
      keymile, common: add setting of some environment variables · f1fef1d8
      Heiko Schocher authored
      
      This patch adds last_stage_init to all keymile boards. And
      in the last stage init some environment variables for u-boot
      were set. Currently these are pnvramaddr, pram and var address.
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Kim Phillips <kim.phillips@freescale.com>
      f1fef1d8
    • Heiko Schocher's avatar
      keymile boards: add CONFIG_PIGGY_MAC_ADRESS_OFFSET · 0d015202
      Heiko Schocher authored
      
      Normaly the PIGGY_MAC_ADRESS can be read directly from the
      IVM on keymile boards. On mgcoge3 it differs. Because there
      are two piggy boards deployed the second MAC adress must be
      calculated with the IVM mac adress and an offset. This patch
      allows to set such a offset in the board config.
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      cc: Heiko Schocher <hs@denx.de>
      0d015202
    • Heiko Schocher's avatar
      arm, keymile: updates for the arm based boards from keymile · 731b9680
      Heiko Schocher authored
      
      define KM_IVM_BUS and KM_ENV_BUS macros
       KM_IVM_BUS is used to define the EEprom_ivm environment variable.
       These macros allow the reuse of these I2C addresses in other code
       locations.
      
      remove unneeded code
        On first HW versions the BOCO FPGA was behind a MUX device. These
        HW versions are not supported anymore. And therefore this code can
        be removed.
      
      added LED initialization for SUEN3
        The bootstat LED required to be initialized so to have a green
        colour after start-up.
      
      define CONFIG_SYS_TEXT_BASE
        This is needed by the relocation code and is not the same for
        our ARM BEC and thus needs to be defined.
      
      remove memsize variable
        An environment variable for memsize is not needed.
        this can be get via the board info struct.
      
      remove unneeded double access to bi_dram[i].size field
      
      Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      Signed-off-by: default avatarLuca Haab <luca.haab@keymile.com>
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc: Prafulla Wadaskar <prafulla@marvell.com>
      731b9680
    • Heiko Schocher's avatar
      keymile, common; fix i2c deblocking support · 6c11aeaf
      Heiko Schocher authored
      
      This patch fix the i2c deblocking facility with the i2c HW-Controller.
      The required delays for byte reading, the enhanced criteria for stop
      the dummy read and required 5 start/stop sequences are added.
      
      Add i2c deblocking before ivm eeprom read.
      
      Improve i2c deblocking sequence by respecting stop hold time.
      
      Cleaned function for deblocking. Have now one function i2c_make_abort()
      available for bitbang, mpc82xx and mpc83xx harware controller.
      
      Signed-off-by: default avatarStefan Bigler <stefan.bigler@keymile.com>
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      6c11aeaf
    • Heiko Schocher's avatar
      ppc, 8321: cleanup tuxa1, tuda1 and suvd3 support · 8ed74341
      Heiko Schocher authored
      
      For the kmsupx5 a new header file was introduced km8321-common.h.
      Now the common stuff from tuxa1, tuda1 and suvd3 was removed and
      the new header file included.
      
      The defines CONFIG_SYS_PIGGY_BASE and CONFIG_SYS_PIGGY_SIZE are
      confusing. Because they actually describe the KMBEC FPGA values.
      The KMBEC FPGA can be PRIO on kmeter1 or upio on mgcoge. Therefore
      all the defines were renamed.
      
      remove unneeded variable CONFIG_KM_DEF_NETDEV, as it is
      already declared in keymile-common.h
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
      cc: Kim Phillips <kim.phillips@freescale.com>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      8ed74341
    • Heiko Schocher's avatar
      km_arm: change some register values for SDRAM initialization · 1ebbb77a
      Heiko Schocher authored
      
      These new values are:
      - enables UART0 and UART1 pins in MPP
      - define some L2 cache settings
      - changes a SDRAM timing to better fit the hardware
      - removed three writes that were the same as the reset values
      
      Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc: Holger Brunck <holger.brunck@keymile.com>
      cc: Prafulla Wadaskar <prafulla@marvell.com>
      1ebbb77a
    • Heiko Schocher's avatar
      km-arm: i2c support for suenx based boards · 44097e26
      Heiko Schocher authored
      
      This patch renames the suen3 defines and functions to KM_KIRKWOOD
      which is more generic and more precise, because these values
      and functions where used by all suenX boards and not only suen3.
      
      Signed-off-by: default avatarLukas Roggli <lukas.roggli@keymile.com>
      Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc: Prafulla Wadaskar <prafulla@marvell.com>
      44097e26
    • Heiko Schocher's avatar
      powerpc, 83xx: add kmsupx5 board support · 4074296b
      Heiko Schocher authored
      
      The Keymile SUPx5 board series is based on a PBEC8321 but
      contains an additional PBUS FPGA (LPXF) on local bus CS2.
      
      Signed-off-by: default avatarThomas Reufer <thomas.reufer@keymile.com>
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Kim Phillips <kim.phillips@freescale.com>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      cc: Holger Brunck <holger.brunck@keymile.com>
      4074296b
    • Thomas Reufer's avatar
      keymile, 8321 boards: move common definitions to km8321-common.h · 8d564640
      Thomas Reufer authored
      
      First step for a cleanup of all header files for km8321 boards.
      
      Signed-off-by: default avatarThomas Reufer <thomas.reufer@keymile.com>
      Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Kim Phillips <kim.phillips@freescale.com>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      cc: Holger Brunck <holger.brunck@keymile.com>
      cc: Heiko Schocher <hs@denx.de>
      8d564640
    • Heiko Schocher's avatar
      ppc: add support for ppc based board mgcoge2ne · af895e45
      Heiko Schocher authored
      
      The mgcoge2 board from keymile deploys two different processors.
      An ARM based Kirkwood for the "unit" part of the SW and a PPC for
      the "ne" part of the SW. Therefore in Linux and U-Boot the names
      for the board are mgcoge2un and mgcoge2ne. This patch adds the
      mgcoge2ne part of the board. The ppc part of mgboge2 is quite
      similar to mgcoge, therefore a generic header km82xx-common.h
      was introduced to collect all similiarities. Currently the only
      difference is that mgcoge2ne has a 64 MB numonyx NOR flash with
      a single die. The mgcoge has a dual die flash 2*32MB from spansion.
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      af895e45
Loading