1. 03 Aug, 2015 2 commits
  2. 21 Apr, 2015 1 commit
  3. 18 Apr, 2015 1 commit
  4. 15 Dec, 2014 1 commit
  5. 19 Nov, 2014 2 commits
  6. 08 Sep, 2014 1 commit
    • Claudiu Manoil's avatar
      net: Merge asm/fsl_enet.h into fsl_mdio.h · 93f26f13
      Claudiu Manoil authored
      fsl_enet.h defines the mapping of the usual MII management
      registers, which are included in the MDIO register block
      common to Freescale ethernet controllers. So it shouldn't
      depend on the CPU architecture but it should be actually
      part of the arch independent fsl_mdio.h.
      
      To remove the arch dependency, merge the content of
      asm/fsl_enet.h into fsl_mdio.h.
      Some files (like fm_eth.h) were simply including fsl_enet.h
      only for phy.h. These were updated to include phy.h instead.
      Signed-off-by: default avatarClaudiu Manoil <claudiu.manoil@freescale.com>
      93f26f13
  7. 20 Aug, 2014 1 commit
  8. 14 Aug, 2014 1 commit
  9. 22 Jul, 2014 1 commit
  10. 13 May, 2014 1 commit
  11. 23 Apr, 2014 2 commits
  12. 17 Nov, 2013 1 commit
  13. 31 Oct, 2013 1 commit
  14. 24 Jul, 2013 1 commit
  15. 04 Feb, 2013 1 commit
  16. 01 Feb, 2013 1 commit
  17. 23 Oct, 2012 1 commit
  18. 23 Aug, 2012 1 commit
  19. 22 May, 2012 1 commit
  20. 18 Mar, 2012 1 commit
    • Mike Frysinger's avatar
      net/miiphy/serial: drop duplicate "NAMESIZE" define · f6add132
      Mike Frysinger authored
      A few subsystems are using the same define "NAMESIZE".  This has been
      working so far because they define it to the same number.  However, I
      want to change the size of eth_device's NAMESIZE, so rather than tweak
      the define names, simply drop references to it.  Almost no one does,
      and the handful that do can easily be changed to a sizeof().
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      f6add132
  21. 29 Nov, 2011 1 commit
    • Timur Tabi's avatar
      powerpc/85xx: clean up and document the QE/FMAN microcode macros · f2717b47
      Timur Tabi authored
      Several macros are used to identify and locate the microcode binary image
      that U-boot needs to upload to the QE or Fman.  Both the QE and the Fman
      use the QE Firmware binary format to package their respective microcode data,
      which is why the same macros are used for both.  A given SOC will only have
      a QE or an Fman, so this is safe.
      
      Unfortunately, the current macro definition and usage has inconsistencies.
      For example, CONFIG_SYS_FMAN_FW_ADDR was used to define the address of Fman
      firmware in NOR flash, but CONFIG_SYS_QE_FW_IN_NAND contains the address
      of NAND.  There's no way to know by looking at a variable how it's supposed
      to be used.
      
      In the future, the code which uploads QE firmware and Fman firmware will
      be merged.
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      f2717b47
  22. 11 Nov, 2011 1 commit
    • Kumar Gala's avatar
      drivers/qe/uec.c: Fix GCC 4.6 build warning · 9cc971b9
      Kumar Gala authored
      uec.c: In function 'uec_stop':
      uec.c:267:22: warning: variable 'uccf' set but not used [-Wunused-but-set-variable]
      uec.c: In function 'uec_set_mac_if_mode':
      uec.c:328:15: warning: variable 'uec_info' set but not used [-Wunused-but-set-variable]
      uec.c: In function 'adjust_link':
      uec.c:519:11: warning: variable 'uec_regs' set but not used [-Wunused-but-set-variable]
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      9cc971b9
  23. 20 Apr, 2011 2 commits
    • Andy Fleming's avatar
      fsl: Change fsl_phy_enet_if to phy_interface_t · 865ff856
      Andy Fleming authored
      The fsl_phy_enet_if enum was, essentially, the phy_interface_t enum.
      This meant that drivers which used fsl_phy_enet_if to deal with
      PHY interfaces would have to convert between the two (or we would have
      to have them mirror each other, and deal with the ensuing maintenance
      headache). Instead, we switch all clients of fsl_phy_enet_if over to
      phy_interface_t, which should become the standard, anyway.
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      865ff856
    • Andy Fleming's avatar
      Remove instances of phy_read/write · 09c04c20
      Andy Fleming authored
      There were a few files which were already using phy_read and phy_write
      for their PHY function names.  It's only a few places, and the name
      seems most appropriate for the high-level abstraction, so let's
      rename the other versions to something more specific.
      
      Also, uec_phy.c had a marvell_init function which I renamed to not
      conflict with the one in marvell.c
      
      Lastly, uec_phy.c was putting a space between the phy writing
      function names, and the open paren, so I fixed that
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      09c04c20
  24. 05 Apr, 2011 1 commit
  25. 25 Jan, 2011 1 commit
    • Kumar Gala's avatar
      UEC: Fix compiler warnings introduced by linux/mii.h change · 2b21ec92
      Kumar Gala authored
      Patch 8ef583a0 [miiphy: convert to linux/mii.h] introduced the following
      compiler warnings in the uec ethernet driver:
      
      In file included from /local/home/galak/git/u-boot-85xx/include/miiphy.h:37:0,
                       from uec.c:32:
      /local/home/galak/git/u-boot-85xx/include/linux/mii.h:133:0: warning: "LPA_1000FULL" redefined
      uec_phy.h:34:0: note: this is the location of the previous definition
      /local/home/galak/git/u-boot-85xx/include/linux/mii.h:134:0: warning: "LPA_1000HALF" redefined
      uec_phy.h:35:0: note: this is the location of the previous definition
      In file included from /local/home/galak/git/u-boot-85xx/include/miiphy.h:37:0,
                       from uec_phy.c:27:
      /local/home/galak/git/u-boot-85xx/include/linux/mii.h:133:0: warning: "LPA_1000FULL" redefined
      uec_phy.h:34:0: note: this is the location of the previous definition
      /local/home/galak/git/u-boot-85xx/include/linux/mii.h:134:0: warning: "LPA_1000HALF" redefined
      uec_phy.h:35:0: note: this is the location of the previous definition
      
      Fix them be removing the duplication in the uec code and utlizing the
      linux/mii.h version instead.
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      2b21ec92
  26. 09 Jan, 2011 1 commit
  27. 18 Nov, 2010 1 commit
  28. 17 Nov, 2010 1 commit
    • 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
  29. 20 Oct, 2010 1 commit
  30. 12 Oct, 2010 3 commits
  31. 09 Aug, 2010 2 commits
  32. 24 Jul, 2010 1 commit
  33. 04 Jul, 2010 1 commit
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5