09 Sep, 2014

1 commit

  • 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: Claudiu Manoil

    Claudiu Manoil
     

21 Aug, 2014

1 commit


23 Jul, 2014

1 commit


13 May, 2014

1 commit


23 Apr, 2014

2 commits


18 Nov, 2013

1 commit


01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


04 Feb, 2013

1 commit


02 Feb, 2013

1 commit


24 Oct, 2012

1 commit

  • This processor, though very similar to other members of the
    PowerQUICC II Pro family (namely 8308, 8360 and 832x), provides
    yet another feature set than any supported sibling.

    Signed-off-by: Gerlando Falauto
    Signed-off-by: Kim Phillips

    Gerlando Falauto
     

23 Aug, 2012

1 commit


23 May, 2012

1 commit


19 Mar, 2012

1 commit

  • 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: Mike Frysinger

    Mike Frysinger
     

29 Nov, 2011

1 commit

  • 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: Timur Tabi
    Signed-off-by: Kumar Gala

    Timur Tabi
     

11 Nov, 2011

1 commit

  • 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: Kumar Gala

    Kumar Gala
     

21 Apr, 2011

2 commits

  • 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: Andy Fleming
    Acked-by: Detlev Zundel

    Andy Fleming
     
  • 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: Andy Fleming
    Acked-by: Detlev Zundel

    Andy Fleming
     

05 Apr, 2011

1 commit

  • P1021 has some QE pins which need to be set in pmuxcr register before
    using QE functions. In this patch, pin QE0 and QE3 are set for UCC1 and
    UCC5 in Eth mode. QE9 and QE12 are set for MII management. QE12 needs to
    be released after MII access because QE12 pin is muxed with LBCTL signal.

    Also added relevant QE support defines unique to P1021.

    The P1021 QE is shared on P1012, P1016, and P1025.

    Signed-off-by: Haiying Wang
    Signed-off-by: Kumar Gala

    Haiying Wang
     

26 Jan, 2011

1 commit

  • 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: Kumar Gala

    Kumar Gala
     

10 Jan, 2011

1 commit

  • The include/miiphy.h header duplicates a lot of things from linux/mii.h.
    So punt all the things that overlap to keep the API simple and to make
    merging between U-Boot and Linux simpler.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

18 Nov, 2010

2 commits

  • Previously with archive libraries fdt.o was compiled and included in
    qe.a and then discarded by the linker. With partial linking this
    results in unresolved symbols, which this commit fixes.

    This commit also cleans up a now-useless conditional in fdt.c.

    Signed-off-by: Sebastien Carlier
    Tested-by: Wolfgang Denk

    Sebastien Carlier
     
  • 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: Sebastien Carlier

    Sebastien Carlier
     

20 Oct, 2010

1 commit


12 Oct, 2010

3 commits


10 Aug, 2010

2 commits


25 Jul, 2010

1 commit

  • Lots of code use this construct:

    cmd_usage(cmdtp);
    return 1;

    Change cmd_usage() let it return 1 - then we can replace all these
    ocurrances by

    return cmd_usage(cmdtp);

    This fixes a few places with incorrect return code handling, too.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

05 Jul, 2010

1 commit

  • 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: Wolfgang Denk
    Acked-by: Mike Frysinger

    Wolfgang Denk
     

04 May, 2010

1 commit


22 Apr, 2010

1 commit

  • As discussed on the list, move "arch/ppc" to "arch/powerpc" to
    better match the Linux directory structure.

    Please note that this patch also changes the "ppc" target in
    MAKEALL to "powerpc" to match this new infrastructure. But "ppc"
    is kept as an alias for now, to not break compatibility with
    scripts using this name.

    Signed-off-by: Stefan Roese
    Acked-by: Wolfgang Denk
    Acked-by: Detlev Zundel
    Acked-by: Kim Phillips
    Cc: Peter Tyser
    Cc: Anatolij Gustschin

    Stefan Roese
     

13 Apr, 2010

1 commit


01 Feb, 2010

1 commit

  • There's no sensible reason to unite speed and interface type into
    one variable. So split this variable enet_interface into two
    vars: enet_interface_type, which hold the interface type and speed.

    Also: add the possibility for switching between 10 and 100 MBit
    interfaces on the fly, when running in FAST_ETH mode.

    Signed-off-by: Heiko Schocher
    Signed-off-by: Ben Warren

    Heiko Schocher
     

27 Oct, 2009

1 commit


26 Sep, 2009

2 commits


11 Aug, 2009

1 commit

  • Fixed a misunderstanding in the original implementation, 'devnum' that
    was used in the cpu/ppc4xx/4xx_enet.c implementation was NOT the
    PHY's SMI address, rather it was the number of the MAC interface on
    the CPU. The equivalent of this for uec_phy will be the UEC number
    stored in mii_info->dev->name. Usage example is updated for uec.

    Signed-off-by: Richard Retanubun
    Signed-off-by: Ben Warren

    Richard Retanubun