1. 31 1月, 2013 3 次提交
  2. 20 12月, 2012 1 次提交
  3. 14 12月, 2012 1 次提交
  4. 12 12月, 2012 1 次提交
    • S
      Add strcasecmp() and strncasecmp() · b1f17bf5
      Simon Glass 提交于
      strncasecmp() is present as strnicmp() but disabled. Make it available
      and define strcasecmp() also. There is a only a small performance penalty
      to having strcasecmp() call strncasecmp(), so do this instead of a
      standalone function, to save code space.
      
      Update the prototype in arch-specific headers as needed to avoid warnings.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      b1f17bf5
  5. 06 12月, 2012 3 次提交
  6. 28 11月, 2012 10 次提交
  7. 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
  8. 20 11月, 2012 1 次提交
    • I
      usb: use linux/usb/ch9.h instead of usbdescriptors.h · c60795f4
      Ilya Yanok 提交于
      Linux usb/ch9.h seems to have all the same information (and more)
      as usbdescriptors.h so use the former instead of the later one.
      
      As a consequense of this change USB_SPEED_* values don't correspond
      directly to EHCI speed encoding anymore, I've added necessary
      recoding in EHCI driver. Also there is no point to put speed into
      pipe anymore so it's removed and a bunch of host drivers fixed to
      look at usb_device->speed instead.
      
      Old usbdescriptors.h included is not removed as it seems to be
      used by old USB device code.
      
      This makes usb.h and usbdevice.h incompatible. Fortunately the
      only place that tries to include both are the old MUSB code and
      it needs usb.h only for USB_DMA_MINALIGN used in aligned attribute
      on musb_regs structure but this attribute seems to be unneeded
      (old MUSB code doesn't support any DMA at all).
      Signed-off-by: NIlya Yanok <ilya.yanok@cogentembedded.com>
      c60795f4
  9. 05 11月, 2012 7 次提交
    • 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
    • K
      include/linux/byteorder: import latest endian definitions from linux · eef1cf2d
      Kim Phillips 提交于
      u-boot's byteorder headers did not contain endianness attributions
      for use with sparse, causing a lot of false positives.  Import the
      kernel's latest definitions, and enable them by including compiler.h
      and types.h.  They come with 'const' added for some swab functions, so
      fix those up, too:
      
      include/linux/byteorder/big_endian.h:46:2: warning: passing argument 1 of '__swab64p' discards 'const' qualifier from pointer target type [enabled by default]
      
      Also, note: u-boot's historic __BYTE_ORDER definition has been
      preserved (for the time being at least).
      
      We also remove ad-hoc barrier() definitions, since we're including
      compiler.h in files that hadn't in the past:
      
      macb.c:54:0: warning: "barrier" redefined [enabled by default]
      
      In addition, including compiler.h in byteorder changes the 'noinline'
      definition to expand to __attribute__((noinline)).  This fixes
      arch/powerpc/lib/bootm.c:
      
      bootm.c:329:16: error: attribute '__attribute__': unknown attribute
      bootm.c:329:16: error: expected ')' before '__attribute__'
      bootm.c:329:25: error: expected identifier or '(' before ')' token
      
      powerpc sparse builds yield:
      
      include/common.h:356:22: error: marked inline, but without a definition
      
      the unknown-reason inlining without a definition is considered obsolete
      given it was part of the 2002 initial commit, and no arm version was
      'fixed.'
      
      also fixed:
      ydirectenv.h:60:0: warning: "inline" redefined [enabled by default]
      
      and:
      
      Configuring for devconcenter - Board: intip, Options: DEVCONCENTER
      make[1]: *** [4xx_ibm_ddr2_autocalib.o] Error 1
      make: *** [arch/powerpc/cpu/ppc4xx/libppc4xx.o] Error 2
      powerpc-fsl-linux-size: './u-boot': No such file
      4xx_ibm_ddr2_autocalib.c: In function 'DQS_autocalibration':
      include/asm/ppc4xx-sdram.h:1407:13: sorry, unimplemented: inlining failed in call to 'ppc4xx_ibm_ddr2_register_dump': function body not available
      4xx_ibm_ddr2_autocalib.c:1243:32: sorry, unimplemented: called from here
      
      and:
      
      In file included from crc32.c:50:0:
      crc32table.h:4:1: warning: implicit declaration of function '___constant_swab32' [-Wimplicit-function-declaration]
      crc32table.h:4:1: error: initializer element is not constant
      crc32table.h:4:1: error: (near initialization for 'crc32table_le[0]')
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      [trini: Remove '#endif' in include/common.h around setenv portion]
      Signed-off-by: NTom Rini <trini@ti.com>
      eef1cf2d
  10. 29 10月, 2012 1 次提交
  11. 24 10月, 2012 2 次提交