1. 27 11月, 2012 17 次提交
    • S
      powerpc/mpc85xx/p1_p2_rdb_pc: new SPL support · 94a45bb1
      Scott Wood 提交于
      Introduces CONFIG_SPL_RELOC_TEXT_BASE and CONFIG_SPL_RELOC_STACK.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      94a45bb1
    • S
      spl/85xx: new SPL support · c97cd1ba
      Scott Wood 提交于
      Update CONFIG_RAMBOOT and CONFIG_NAND_SPL references to accept CONFIG_SPL
      and CONFIG_SPL_BUILD, respectively.  CONFIG_NAND_SPL can be removed once
      the last mpc85xx nand_spl target is gone.
      
      CONFIG_RAMBOOT will need to remain for other use cases, but it doesn't
      seem right to overload it for meaning SPL as well as nand_spl does.  Even
      if it's somewhat appropriate for the main u-boot, the SPL itself isn't
      (necessarily) ramboot, and we don't have separate configs for SPL and
      main u-boot.  It was also inconsistent, as other platforms such as
      mpc83xx didn't use CONFIG_RAMBOOT in this way.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      c97cd1ba
    • S
      spl/powerpc: introduce CONFIG_SPL_INIT_MINIMAL · 4b919725
      Scott Wood 提交于
      cpu_init_nand.c is renamed to spl_minimal.c as it is not really NAND-specific.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      ---
      v2: factor out START, and change cpu_init_nand.c to spl_minimal.c
      Cc: Andy Fleming <afleming@freescale.com>
      4b919725
    • S
      powerpc/mpc85xx: consistently use COBJS-y · a179eb0a
      Scott Wood 提交于
      A subsequent patch will conditionalize some of the files that are
      currently unconditional.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      a179eb0a
    • S
      spl/mpc85xx: rename cpu_init_nand.c to spl_minimal.c · b9735cba
      Scott Wood 提交于
      There is nothing really NAND-specific about this file.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      b9735cba
    • S
      spl: include resetvec and lib8xxx · 510ed3b8
      Scott Wood 提交于
      The toplevel makefile hardcodes this stuff, so spl/Makefile needs to as well.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      510ed3b8
    • S
      spl/mpc85xx: move udelay to cpu code · 59629c28
      Scott Wood 提交于
      It applies to non-Freescale 85xx boards as well as Freescale boards,
      so it doesn't belong in board/freescale.  Plus, it needs to come out
      of nand_spl if it's to be used by the new SPL.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      59629c28
    • S
      powerpc/mpc8xxx: move LAW code into arch/powerpc/cpu/mpc8xxx · 8bc50f0b
      Scott Wood 提交于
      It's arch code and not a driver, so move it where it belongs.  When it
      originally went into drivers/misc there was no 8xxx CPU directory.
      
      This will make new-SPL support a little easier since we can keep the CPU
      stuff together and not need to pull stuff in from drivers/misc.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      8bc50f0b
    • S
      powerpc/mpc85xx: fix TLB alignment · 7f0a22ff
      Scott Wood 提交于
      In the RAMBOOT/SPL case we were creating a TLB entry starting at
      CONFIG_SYS_MONITOR_BASE, and just hoping that the base was properly
      aligned for the TLB entry size.  This turned out to not be the case
      with NAND SPL because the main U-Boot starts at an offset into the image
      in order to skip the SPL itself.
      
      Fix the TLB entry to always start at a proper alignment.  We still assume that
      CONFIG_SYS_MONITOR_BASE doesn't start immediately before a large-page boundary
      thus requiring multiple TLB entries.
      Signed-off-by: NScott Wood <scottwood@frescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      7f0a22ff
    • S
      powerpc: change .fixup test to a GCC version test · 6ec63f41
      Scott Wood 提交于
      This was introduced by commit 24461519, but it
      fails in a minimal SPL build where the only thing in arch/powerpc/lib is
      cache.c, which apparently doesn't generate any fixup records.
      
      The problem is reported to occur with GCC 3.x, so insist on GCC 4.0 or newer.
      Patterned after checkthumb as suggested by Tom Rini.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Peter Tyser <ptyser@xes-inc.com>
      Cc: Tom Rini <trini@ti.com>
      --
      v2: test gcc version instead of testing nothing
      6ec63f41
    • S
      spl: introduce CONFIG_SPL_TARGET · ca2fca22
      Scott Wood 提交于
      Currently the SPL target is specified in a CPU-specific makefile
      fragment.  While some targets may need something more complicated than a
      simple target name, targets which don't need this shouldn't have to provide a makefile fragment just for this.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      ---
      v2: Removed default target as it's been pointed out to me how existing platforms
      cause the SPL to be built.
      ca2fca22
    • S
      spl: rename u-boot-pad.bin to u-boot-with-spl.bin · 5364add4
      Scott Wood 提交于
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      5364add4
    • J
      Add u-boot-pad.bin target to the Makefile · 277f00f5
      José Miguel Gonçalves 提交于
      Samsung's S3C24XX SoCs need this in order to generate a binary image
      with a padded SPL concatenated with U-Boot.
      Signed-off-by: NJosé Miguel Gonçalves <jose.goncalves@inov.pt>
      [scottwood@freescale.com: fixed prereq of u-boot.ubl]
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      --
      v2: Removed spl/ prefix from u-boot.ubl prerequisite.
      277f00f5
    • S
      powerpc/mpc85xx: add comma before "already enabled" · 9a511bd6
      Scott Wood 提交于
      Now outputs like this:
      
      L2:    512 KB already enabled, moving to 0xf8f80000
      
      rather than this:
      
      L2:    512 KB already enabledmoving to 0xf8f80000
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      9a511bd6
    • S
      powerpc/mpc85xx: move debug tlb entry after TLB is in known state · f545d300
      Scott Wood 提交于
      Previously, in many if not all configs we were creating overlapping TLB entries
      which is illegal.  This caused a crash during boot when moving p2020rdb NAND SPL
      into L2 SRAM.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Prabhakar Kushwaha <prabhakar@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      --
      Prabhakar, please test that debug still works.
      f545d300
    • S
      serial/ns16550: wait for TEMT before initializing · cb55b332
      Scott Wood 提交于
      TEMT is set when the transmitter is totally empty and all output has
      finished.
      
      This prevents output problems (including a loss of synchronization
      observed on p2020 that persisted for quite a while) if SPL has output
      still on its way out.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      --
      v2: fixed typo in subject, and explained what the bit does in the changelog
      cb55b332
    • S
      serial/ns16550: don't build serial_ns16550 with MIN_FUNCTIONS · 48cbc3a8
      Scott Wood 提交于
      CONFIG_NS16550_MIN_FUNCTIONS is used by small SPLs to gain access to basic
      ns16550 output code without pulling in things not needed by the SPL.
      
      This previously only worked with non-MULTI configs.  Recently MULTI was
      made mandatory, and MIN_FUNCTIONS fails like this:
      
      drivers/serial/libserial.o: In function `calc_divisor.clone.0':
      serial_ns16550.c:(.text.calc_divisor.clone.0+0x24): undefined reference to `get_bus_freq'
      drivers/serial/libserial.o: In function `_serial_getc':
      (.text._serial_getc+0x30): undefined reference to `NS16550_getc'
      drivers/serial/libserial.o: In function `_serial_tstc':
      (.text._serial_tstc+0x30): undefined reference to `NS16550_tstc'
      drivers/serial/libserial.o: In function `_serial_setbrg':
      (.text._serial_setbrg+0x3c): undefined reference to `NS16550_reinit'
      make[1]: *** [/tmp/u-boot/spl/u-boot-spl] Error 1
      make: *** [/tmp/u-boot/spl/u-boot-spl.bin] Error 2
      
      With MIN_FUNCTIONS we don't need anything from this file, so don't build
      it.  The conditional needs to be in the file itself rather than the
      makefile, because the config symbols are only imported to the makefiles
      once, not separately for the SPL phase of the build.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      48cbc3a8
  2. 20 11月, 2012 2 次提交
  3. 14 11月, 2012 21 次提交