mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-12 13:35:21 -04:00
More cleanup: get rid or redundand #defines
This commit is contained in:
parent
0c8721a466
commit
9ea4b5886a
@ -24,15 +24,12 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <pci.h>
|
#include <pci.h>
|
||||||
|
#include <pci_ids.h>
|
||||||
#include <405gp_pci.h>
|
#include <405gp_pci.h>
|
||||||
|
|
||||||
|
|
||||||
#if (CONFIG_COMMANDS & CFG_CMD_BSP)
|
#if (CONFIG_COMMANDS & CFG_CMD_BSP)
|
||||||
|
|
||||||
#define AMCC_VENDOR_ID 0x1014
|
|
||||||
#define PPC405_DEVICE_ID 0x0156
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set device number on pci board
|
* Set device number on pci board
|
||||||
*/
|
*/
|
||||||
@ -43,7 +40,7 @@ int do_setdevice(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||||||
u32 addr;
|
u32 addr;
|
||||||
|
|
||||||
while (bdf >= 0) {
|
while (bdf >= 0) {
|
||||||
if ((bdf = pci_find_device(AMCC_VENDOR_ID, PPC405_DEVICE_ID, idx++)) < 0) {
|
if ((bdf = pci_find_device(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_405GP, idx++)) < 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
printf("Found device nr %d at %x!\n", idx-1, bdf);
|
printf("Found device nr %d at %x!\n", idx-1, bdf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user