Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
onny
uboot-i9100
Commits
9ea4b588
Commit
9ea4b588
authored
19 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
More cleanup: get rid or redundand #defines
parent
0c8721a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/esd/ocrtc/cmd_ocrtc.c
+2
-5
2 additions, 5 deletions
board/esd/ocrtc/cmd_ocrtc.c
with
2 additions
and
5 deletions
board/esd/ocrtc/cmd_ocrtc.c
+
2
−
5
View file @
9ea4b588
...
...
@@ -24,15 +24,12 @@
#include
<common.h>
#include
<command.h>
#include
<pci.h>
#include
<pci_ids.h>
#include
<405gp_pci.h>
#if (CONFIG_COMMANDS & CFG_CMD_BSP)
#define AMCC_VENDOR_ID 0x1014
#define PPC405_DEVICE_ID 0x0156
/*
* 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
;
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
;
}
printf
(
"Found device nr %d at %x!
\n
"
,
idx
-
1
,
bdf
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment