12 Aug, 2017

1 commit

  • This option enables the 'pci enum' command. It is only enabled by a few
    board and these have not yet been converted to driver model, which always
    enables this command. It seems easiest to just remove this option.

    The affected boards can be converted to use driver model for PCI if
    needed.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: Philipp Tomsich

    Simon Glass
     

03 Jun, 2017

1 commit

  • This gives a warning with some native compilers:

    cmd/pci.c:152:11: warning: format ‘%llx’ expects argument of type
    ‘long long unsigned int’, but argument 3 has type
    ‘u64 {aka long unsigned int}’ [-Wformat=]

    Fix it with a cast.

    Signed-off-by: Simon Glass

    Simon Glass
     

13 Apr, 2017

1 commit


09 Dec, 2016

1 commit


29 Jan, 2016

1 commit

  • With CONFIG_DM_PCI enabled, PCI buses are not enumerated at boot, as they
    are without that config option enabled. No command exists to enumerate the
    PCI buses. Hence, unless some board-specific code causes PCI enumeration,
    PCI-based Ethernet devices are not detected, and network access is not
    available.

    This patch implements "pci enum" in the CONFIG_DM_PCI case, thus giving a
    mechanism whereby PCI can be enumerated.

    do_pci()'s handling of case 'e' is moved into a single location before the
    dev variable is assigned, in order to skip calculation of dev. The enum
    sub-command doesn't need the dev value, and skipping its calculation
    avoids an irrelevant error being printed.

    Using a command to initialize PCI like this has a disadvantage relative to
    enumerating PCI at boot. In particular, Ethernet devices are not probed
    during PCI enumeration, but only when used. This defers setting variables
    such as ethact, ethaddr, etc. until the first network-related command is
    executed. Hopefully this will not cause further issues. Perhaps in the
    long term, we need a "net start/enum" command too?

    Signed-off-by: Stephen Warren
    Reviewed-by: Simon Glass
    Reviewed-by: Bin Meng

    Stephen Warren
     

25 Jan, 2016

1 commit

  • Now that they are in their own directory, we can remove this prefix.
    This makes it easier to find a file since the prefix does not get in the
    way.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Acked-by: Stefan Roese
    Acked-by: Przemyslaw Marczak

    Simon Glass