26 Aug, 2019

1 commit

  • The command "pci bar" and "pci region" display the address and size in
    16 characters including "0x", so the command can only display
    14 hexadecimal digits if the number of digits in the address and size is
    less than 14.

    ID Base Size Width Type
    ----------------------------------------------------------
    0 0x00000020000000 0x00000000100000 64 MEM Prefetchable
    1 0xffff000080000000 0x00000000100000 64 MEM Prefetchable

    The 64-bit address and size should be displayed in 18(= 16+2) digits,
    so this patch adjusts them.

    Cc: Yehuda Yitschak
    Cc: Simon Glass
    Signed-off-by: Kunihiko Hayashi
    Reviewed-by: Bin Meng

    Kunihiko Hayashi
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

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