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
63a90bfb
Commit
63a90bfb
authored
13 years ago
by
Graeme Russ
Browse files
Options
Downloads
Patches
Plain Diff
cosmetic: checkpatch cleanup of board/eNET/*.c
Signed-off-by:
Graeme Russ
<
graeme.russ@gmail.com
>
parent
83088afb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/eNET/eNET.c
+4
-4
4 additions, 4 deletions
board/eNET/eNET.c
board/eNET/eNET_pci.c
+9
-10
9 additions, 10 deletions
board/eNET/eNET_pci.c
with
13 additions
and
14 deletions
board/eNET/eNET.c
+
4
−
4
View file @
63a90bfb
...
...
@@ -223,7 +223,7 @@ void setup_pcat_compatibility()
* active low polarity on PIC interrupt pins,
* active high polarity on all other irq pins
*/
writew
(
0x0000
,
&
sc520_mmcr
->
intpinpol
);
writew
(
0x0000
,
&
sc520_mmcr
->
intpinpol
);
/*
* PIT 0 -> IRQ0
...
...
@@ -252,7 +252,7 @@ void setup_pcat_compatibility()
void
enet_timer_isr
(
void
)
{
static
long
enet_ticks
=
0
;
static
long
enet_ticks
;
enet_ticks
++
;
...
...
@@ -281,9 +281,9 @@ void hw_watchdog_reset(void)
void
enet_toggle_run_led
(
void
)
{
unsigned
char
leds_state
=
inb
(
LED_LATCH_ADDRESS
);
unsigned
char
leds_state
=
inb
(
LED_LATCH_ADDRESS
);
if
(
leds_state
&
LED_RUN_BITMASK
)
outb
(
leds_state
&
~
LED_RUN_BITMASK
,
LED_LATCH_ADDRESS
);
outb
(
leds_state
&
~
LED_RUN_BITMASK
,
LED_LATCH_ADDRESS
);
else
outb
(
leds_state
|
LED_RUN_BITMASK
,
LED_LATCH_ADDRESS
);
}
This diff is collapsed.
Click to expand it.
board/eNET/eNET_pci.c
+
9
−
10
View file @
63a90bfb
...
...
@@ -38,7 +38,7 @@ static void pci_enet_fixup_irq(struct pci_controller *hose, pci_dev_t dev)
CONFIG_SYS_THIRD_PCI_IRQ
,
CONFIG_SYS_FORTH_PCI_IRQ
};
static
int
next_irq_index
=
0
;
static
int
next_irq_index
;
uchar
tmp_pin
;
int
pin
;
...
...
@@ -47,9 +47,8 @@ static void pci_enet_fixup_irq(struct pci_controller *hose, pci_dev_t dev)
pin
=
tmp_pin
;
pin
-=
1
;
/* PCI config space use 1-based numbering */
if
(
pin
==
-
1
)
{
if
(
pin
==
-
1
)
return
;
/* device use no irq */
}
/* map device number + pin to a pin on the sc520 */
switch
(
PCI_DEV
(
dev
))
{
...
...
@@ -69,19 +68,19 @@ static void pci_enet_fixup_irq(struct pci_controller *hose, pci_dev_t dev)
if
(
sc520_pci_ints
[
pin
]
==
-
1
)
{
/* re-route one interrupt for us */
if
(
next_irq_index
>
3
)
{
if
(
next_irq_index
>
3
)
return
;
}
if
(
pci_sc520_set_irq
(
pin
,
irq_list
[
next_irq_index
]))
{
if
(
pci_sc520_set_irq
(
pin
,
irq_list
[
next_irq_index
]))
return
;
}
next_irq_index
++
;
}
if
(
-
1
!=
sc520_pci_ints
[
pin
])
{
pci_hose_write_config_byte
(
hose
,
dev
,
PCI_INTERRUPT_LINE
,
if
(
-
1
!=
sc520_pci_ints
[
pin
])
pci_hose_write_config_byte
(
hose
,
dev
,
PCI_INTERRUPT_LINE
,
sc520_pci_ints
[
pin
]);
}
printf
(
"fixup_irq: device %d pin %c irq %d
\n
"
,
PCI_DEV
(
dev
),
'A'
+
pin
,
sc520_pci_ints
[
pin
]);
}
...
...
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