Skip to content
Snippets Groups Projects
  1. Nov 04, 2012
    • Kim Phillips's avatar
      powerpc/mpc83xx: sparse fixes · a2873bde
      Kim Phillips authored
      
      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: default avatarKim Phillips <kim.phillips@freescale.com>
      a2873bde
    • Kim Phillips's avatar
      arch/powerpc/lib/board.c, *traps.c: sparse fixes · 20051f2a
      Kim Phillips authored
      
      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: default avatarKim Phillips <kim.phillips@freescale.com>
      20051f2a
  2. Oct 23, 2012
  3. Oct 22, 2012
    • Marek Vasut's avatar
      common: Discard the __u_boot_cmd section · 8b493a52
      Marek Vasut authored
      
      The command declaration now uses the new LG-array method to generate
      list of commands. Thus the __u_boot_cmd section is now superseded and
      redundant and therefore can be removed. Also, remove externed symbols
      associated with this section from include/command.h .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      8b493a52
    • Marek Vasut's avatar
      common: Add .u_boot_list into all linker files · 55675142
      Marek Vasut authored
      
      Add section for the linker-generated lists into all possible linker
      files, so that everyone can easily use these lists. This is mostly
      a mechanical adjustment.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      55675142
  4. Jul 21, 2012
    • Stefano Babic's avatar
      MPC83xx, MPC85xx: compile stub cache function · 569fadcd
      Stefano Babic authored
      
      An empty flush_dcache_range() was added into MPC83xx and MPC85xx to
      work with drivers shared with other architecture.  However, it is
      compiled only if USB is set, but it is required for other drivers
      (FSL_ESDHC), too.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      CC: Andy Fleming <afleming@gmail.com>
      CC: Dirk Behme <dirk.behme@de.bosch.com>
      CC: Marek Vasut <marex@denx.de>
      CC: Wolfgang Denk <wd@denx.de>
      
      Added MPC83xx version.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      569fadcd
  5. Jul 03, 2012
  6. Jun 07, 2012
    • Marek Vasut's avatar
      MPC8xxx: Define cache ops for USB · 25315683
      Marek Vasut authored
      
      This patch conditionally defines flush_dcache_range() and
      invalidate_dcache_range() on MPC8xxx, to avoid EHCI complaining,
      resulting in the following output:
      
      $ ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- ./MAKEALL MPC8572DS
      Configuring for MPC8572DS board...
      make: *** [u-boot] Error 1
      powerpc-linux-gnu-size: './u-boot': No such file
      e1000.c: In function ‘e1000_initialize’:
      e1000.c:5264:13: warning: assignment from incompatible pointer type [enabled by default]
      tsec.c: In function ‘tsec_initialize’:
      tsec.c:638:12: warning: assignment from incompatible pointer type [enabled by default]
      drivers/usb/host/libusb_host.o: In function `ehci_td_buffer':
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:186: undefined reference to `flush_dcache_range'
      drivers/usb/host/libusb_host.o: In function `ehci_submit_async':
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:346: undefined reference to `flush_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:348: undefined reference to `flush_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:349: undefined reference to `flush_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:372: undefined reference to `invalidate_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:374: undefined reference to `invalidate_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:376: undefined reference to `invalidate_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:386: undefined reference to `invalidate_dcache_range'
      make: *** [u-boot] Error 1
      
      --------------------- SUMMARY ----------------------------
      Boards compiled: 1
      Boards with errors: 1 ( MPC8572DS )
      ----------------------------------------------------------
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      25315683
  7. Dec 13, 2011
  8. Nov 16, 2011
  9. Nov 11, 2011
  10. Nov 03, 2011
  11. Sep 30, 2011
  12. Jul 28, 2011
  13. Jul 07, 2011
  14. Apr 29, 2011
  15. Apr 20, 2011
  16. Apr 11, 2011
  17. Apr 05, 2011
  18. Mar 27, 2011
  19. Feb 05, 2011
  20. Dec 17, 2010
  21. Dec 13, 2010
  22. Nov 30, 2010
  23. Nov 27, 2010
  24. Nov 26, 2010
    • Wolfgang Denk's avatar
      arch/powerpc/*/config.mk: make CONFIG_SYS_LDSCRIPT settings work · fa11dbe5
      Wolfgang Denk authored
      
      As we try to get rid of board specific config.mk files we must
      provide a way for board specific settings of the LDSCRIPT variable
      (path to the linker script) where needed.
      
      We now implement the following hierarchy:
      
      - Highest priority has a "#define CONFIG_SYS_LDCONFIG" in the board
        config file.
      - If CONFIG_SYS_LDCONFIG is not set, and the system is booting from
        NAND (CONFIG_NAND_SPL is set), then a board specific linker
        script board/$(BOARDDIR)/u-boot-nand.lds gets used.
      - If we are not booting from NAND, we test if a processor specific
        linker script arch/powerpc/cpu/$(CPU)/u-boot.lds exists; if so we
        use that.
      - As default, arch/powerpc/config.mk gets used.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Kumar Gala <kumar.gala@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      fa11dbe5
  25. Nov 17, 2010
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      
      Signed-off-by: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  26. Nov 14, 2010
  27. Oct 26, 2010
    • Wolfgang Denk's avatar
      Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value · 25ddd1fb
      Wolfgang Denk authored
      
      CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not
      being able to use "sizeof(struct global_data)" in assembler files.
      Recent experience has shown that manual synchronization is not
      reliable enough.  This patch renames CONFIG_SYS_GBL_DATA_SIZE into
      GENERATED_GBL_DATA_SIZE which gets automatically generated by the
      asm-offsets tool.  In the result, all definitions of this value can be
      deleted from the board config files.  We have to make sure that all
      files that reference such data include the new <asm-offsets.h> file.
      
      No other changes have been done yet, but it is obvious that similar
      changes / simplifications can be done for other, related macro
      definitions as well.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
      25ddd1fb
    • Wolfgang Denk's avatar
      Rename CONFIG_SYS_INIT_RAM_END into CONFIG_SYS_INIT_RAM_SIZE · 553f0982
      Wolfgang Denk authored
      
      CONFIG_SYS_INIT_RAM_END was a misnomer as it suggests this might be
      some end address; to make the meaning more clear we rename it into
      CONFIG_SYS_INIT_RAM_SIZE
      
      No other code changes are performed in this patch, only minor editing
      of white space (due to the changed length) and the comments was done,
      where noticed.
      
      Note that the code for the PATI and cmi_mpc5xx board configurations
      looks seriously broken.  Last known maintainers on Cc:
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Denis Peter <d.peter@mpl.ch>
      Cc: Martin Winistoerfer <martinwinistoerfer@gmx.ch>
      Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
      553f0982
  28. Oct 24, 2010
    • Wolfgang Denk's avatar
      MPC8315ERD: fix build error · 1db3fca7
      Wolfgang Denk authored
      
      Commit 29c6fbe0 "MPC5121: Add USB EHCI support" renamed
      CONFIG_SYS_MPC8xxx_USB_ADDR into CONFIG_SYS_FSL_USB_ADDR but missed
      to update arch/powerpc/cpu/mpc83xx/cpu_init.c, resulting in:
      
      cpu_init.c: In function 'cpu_init_f':
      cpu_init.c:332: error: 'CONFIG_SYS_MPC8xxx_USB_ADDR' undeclared (first use in this function)
      cpu_init.c:332: error: (Each undeclared identifier is reported only once
      cpu_init.c:332: error: for each function it appears in.)
      make[1]: *** [/work/wd/tmp-ppc/arch/powerpc/cpu/mpc83xx/cpu_init.o] Error 1
      
      Fix this.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      1db3fca7
  29. Oct 18, 2010
    • Joakim Tjernlund's avatar
      powerpc: do not fixup NULL ptrs · d1e0b10a
      Joakim Tjernlund authored
      
      The fixup routine must not fixup NULL pointers.
      Problem can be seen by
       char *testfun(void) __attribute__((weak));
       char *(*myfun)(void) = testfun;
      
      Then add
        printf("myfun:%p, &myfun:%p\n", myfun, &myfun);
      before relocation and after relocation.
      myfun should be NULL in both cases but it is not.
      
      Signed-off-by: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      d1e0b10a
    • Peter Tyser's avatar
      powerpc: Cleanup BOOTFLAG_* references · d98b0523
      Peter Tyser authored
      
      Now that warm booting is not supported, there isn't a need for the
      BOOTFLAG_COLD and BOOTFLAG_WARM defines, so remove them.
      
      Note that this change makes the board info bd_bootflags field useless.
      It will always be set to 0, but we leave it around so that we don't
      break the board info structure that some OSes are expecting to be passed
      from U-Boot.
      
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      d98b0523
  30. Oct 12, 2010
Loading