1. 28 11月, 2012 9 次提交
  2. 27 11月, 2012 10 次提交
    • 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/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
      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
  3. 20 11月, 2012 7 次提交
  4. 14 11月, 2012 2 次提交
  5. 10 11月, 2012 1 次提交
    • T
      nios2: remove asm/status_led.h · db719642
      Thomas Chou 提交于
      The file has a wrong inline keyword of __led_toggle(), which causes
      compilation error. And its content is defined in common status_led.h.
      So define CONFIG_BOARD_SPECIFIC_LED in board config files and remove
      this header file.
      Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
      db719642
  6. 08 11月, 2012 5 次提交
  7. 05 11月, 2012 6 次提交
    • K
      powerpc/mpc83xx: sparse fixes · a2873bde
      Kim Phillips 提交于
      fdt.c:91:78: warning: Using plain integer as NULL pointer
      fdt.c:103:78: warning: Using plain integer as NULL pointer
      speed.c:55:11: warning: symbol 'corecnf_tab' was not declared. Should it be static?
      speed.c:519:5: warning: symbol 'do_clocks' was not declared. Should it be static?
      mpc8313erdb.c:73:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:74:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:75:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:76:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:79:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:80:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:81:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:82:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:85:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:86:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:87:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:88:17: warning: obsolete struct initializer, use C99 syntax
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      a2873bde
    • K
      powerpc/mpc85xx: sparse fixes · e56143e5
      Kim Phillips 提交于
      fsl_corenet_serdes.c:485:6: warning: symbol '__soc_serdes_init' was not declared. Should it be static?
      cpu_init.c:185:6: warning: symbol 'invalidate_cpc' was not declared. Should it be static?
      bcsr.c:28:27: warning: non-ANSI function declaration of function 'enable_8568mds_duart'
      bcsr.c:39:33: warning: non-ANSI function declaration of function 'enable_8568mds_flash_write'
      bcsr.c:46:34: warning: non-ANSI function declaration of function 'disable_8568mds_flash_write'
      bcsr.c:53:29: warning: non-ANSI function declaration of function 'enable_8568mds_qe_mdio'
      bcsr.c:28:33: warning: non-ANSI function declaration of function 'enable_8569mds_flash_write'
      bcsr.c:33:34: warning: non-ANSI function declaration of function 'disable_8569mds_flash_write'
      bcsr.c:38:28: warning: non-ANSI function declaration of function 'enable_8569mds_qe_uec'
      bcsr.c:63:47: warning: non-ANSI function declaration of function 'disable_8569mds_brd_eeprom_write_protect'
      ngpixis.c:245:1: error: directive in argument list
      ngpixis.c:247:1: error: directive in argument list
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      e56143e5
    • K
      arch/powerpc/cpu/mpc8xxx/: sparse fixes · 2ed2e912
      Kim Phillips 提交于
      ctrl_regs.c:31:5: warning: symbol 'fsl_ddr_get_version' was not declared. Should it be static?
      cpu.c:135:14: warning: non-ANSI function declaration of function 'cpu_mask'
      cpu.c:154:18: warning: non-ANSI function declaration of function 'cpu_numcores'
      cpu.c:37:17: warning: symbol 'cpu_type_list' was not declared. Should it be static?
      cpu.c:117:17: warning: symbol 'cpu_type_unknown' was not declared. Should it be static?
      fsl_lbc.c:14:6: warning: symbol '__lbc_sdram_init' was not declared. Should it be static?
      
      and:
      
      lc_common_dimm_params.c:15:1: warning: symbol 'compute_cas_latency_ddr3' was not declared. Should it be static?
      
      making it static produces the following compiler warning:
      
      lc_common_dimm_params.c:15:1: warning: 'compute_cas_latency_ddr3' defined but not used [-Wunused-function]
      
      so we protect it with the preprocessor.
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      2ed2e912
    • K
      arch/powerpc/lib/board.c, *traps.c: sparse fixes · 20051f2a
      Kim Phillips 提交于
      traps.c:*:1: warning: symbol 'print_backtrace' was not declared. Should it be static?
      traps.c:93:1: warning: symbol '_exception' was not declared. Should it be static?
      board.c:166:6: warning: symbol '__board_add_ram_info' was not declared. Should it be static?
      board.c:174:5: warning: symbol '__board_flash_wp_on' was not declared. Should it be static?
      board.c:187:6: warning: symbol '__cpu_secondary_init_r' was not declared. Should it be static?
      board.c:265:12: warning: symbol 'init_sequence' was not declared. Should it be static?
      board.c:348:5: warning: symbol '__fixup_cpu' was not declared. Should it be static?
      board.c:405:53: warning: Using plain integer as NULL pointer
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      20051f2a
    • K
      arch/powerpc/lib/extable.c: sparse fix · fe44f452
      Kim Phillips 提交于
      extable.c:66:9: warning: symbol 'ex_tab_message' was not declared. Should it be static?
      
      making it static can produce a new build warning on some boards:
      
      extable.c:66:12: warning: 'ex_tab_message' defined but not used [-Wunused-variable]
      
      but ex_tab_message doesn't do much even when used, so just remove it.
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      fe44f452
    • K
      arch/powerpc/include/asm/io.h: fix warning: preprocessor token __iomem redefined · cdfdb8d7
      Kim Phillips 提交于
      a fixup __iomem definition in arch code appears to be placed there as a cover
      up from a code import from linux when u-boot didn't yet have a compiler.h,
      introduced by commit 812711ce "Implement
      __raw_{read,write}[bwl] on all architectures".
      
      git show 812711ce:include/linux/compiler.h
      fatal: Path 'include/linux/compiler.h' exists on disk, but not in '812711ce'.
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      cdfdb8d7