Skip to content
Snippets Groups Projects
  1. Nov 26, 2012
    • Scott Wood's avatar
      powerpc: change .fixup test to a GCC version test · 6ec63f41
      Scott Wood authored
      
      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: default avatarScott 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
    • Scott Wood's avatar
      spl: introduce CONFIG_SPL_TARGET · ca2fca22
      Scott Wood authored
      
      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: default avatarScott 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
    • Scott Wood's avatar
      5364add4
    • José Miguel Gonçalves's avatar
      Add u-boot-pad.bin target to the Makefile · 277f00f5
      José Miguel Gonçalves authored
      
      Samsung's S3C24XX SoCs need this in order to generate a binary image
      with a padded SPL concatenated with U-Boot.
      
      Signed-off-by: default avatarJosé Miguel Gonçalves <jose.goncalves@inov.pt>
      [scottwood@freescale.com: fixed prereq of u-boot.ubl]
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      --
      v2: Removed spl/ prefix from u-boot.ubl prerequisite.
      277f00f5
    • Scott Wood's avatar
      powerpc/mpc85xx: add comma before "already enabled" · 9a511bd6
      Scott Wood authored
      
      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: default avatarScott Wood <scottwood@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      9a511bd6
    • Scott Wood's avatar
      powerpc/mpc85xx: move debug tlb entry after TLB is in known state · f545d300
      Scott Wood authored
      
      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: default avatarScott Wood <scottwood@freescale.com>
      Cc: Prabhakar Kushwaha <prabhakar@freescale.com>
      Cc: Andy Fleming <afleming@freescale.com>
      --
      Prabhakar, please test that debug still works.
      f545d300
    • Scott Wood's avatar
      serial/ns16550: wait for TEMT before initializing · cb55b332
      Scott Wood authored
      
      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: default avatarScott Wood <scottwood@freescale.com>
      --
      v2: fixed typo in subject, and explained what the bit does in the changelog
      cb55b332
    • Scott Wood's avatar
      serial/ns16550: don't build serial_ns16550 with MIN_FUNCTIONS · 48cbc3a8
      Scott Wood authored
      
      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: default avatarScott Wood <scottwood@freescale.com>
      48cbc3a8
  2. Nov 19, 2012
  3. Nov 14, 2012
Loading