Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Johannes Rudolph
lede-mikrotik
Commits
e5226936
Commit
e5226936
authored
13 years ago
by
Gabor Juhos
Browse files
Options
Downloads
Patches
Plain Diff
ar71xx: flush DDR writeback buffers for WMAC and PCIe on AR934X
SVN-Revision: 29108
parent
3104d705
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
target/linux/ar71xx/files/arch/mips/ar71xx/irq.c
+6
-6
6 additions, 6 deletions
target/linux/ar71xx/files/arch/mips/ar71xx/irq.c
target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
+1
-0
1 addition, 0 deletions
...x/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
with
7 additions
and
6 deletions
target/linux/ar71xx/files/arch/mips/ar71xx/irq.c
+
6
−
6
View file @
e5226936
...
...
@@ -239,14 +239,15 @@ static void ar934x_ip2_irq_dispatch(unsigned int irq, struct irq_desc *desc)
status
=
ar71xx_reset_rr
(
AR934X_RESET_REG_PCIE_WMAC_INT_STATUS
);
if
(
status
&
AR934X_PCIE_WMAC_INT_PCIE_ALL
)
if
(
status
&
AR934X_PCIE_WMAC_INT_PCIE_ALL
)
{
ar71xx_ddr_flush
(
AR934X_DDR_REG_FLUSH_PCIE
);
generic_handle_irq
(
AR934X_IP2_IRQ_PCIE
);
else
if
(
status
&
AR934X_PCIE_WMAC_INT_WMAC_ALL
)
}
else
if
(
status
&
AR934X_PCIE_WMAC_INT_WMAC_ALL
)
{
ar71xx_ddr_flush
(
AR934X_DDR_REG_FLUSH_WMAC
);
generic_handle_irq
(
AR934X_IP2_IRQ_WMAC
);
else
}
else
{
spurious_interrupt
();
}
enable_irq
(
irq
);
}
...
...
@@ -297,7 +298,6 @@ static void ar933x_ip2_handler(void)
static
void
ar934x_ip2_handler
(
void
)
{
ar71xx_ddr_flush
(
AR934X_DDR_REG_FLUSH_PCIE
);
do_IRQ
(
AR71XX_CPU_IRQ_IP2
);
}
...
...
This diff is collapsed.
Click to expand it.
target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
+
1
−
0
View file @
e5226936
...
...
@@ -533,6 +533,7 @@ void ar71xx_gpio_function_setup(u32 set, u32 clear);
#define AR934X_DDR_REG_FLUSH_GE1 0xa0
#define AR934X_DDR_REG_FLUSH_USB 0xa4
#define AR934X_DDR_REG_FLUSH_PCIE 0xa8
#define AR934X_DDR_REG_FLUSH_WMAC 0xac
#define PCI_WIN0_OFFS 0x10000000
...
...
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