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
2dbe131a
Commit
2dbe131a
authored
10 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
bcm53xx: fix bcma gpio chip base
Signed-off-by:
Felix Fietkau
<
nbd@openwrt.org
>
SVN-Revision: 45399
parent
808fb7a0
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
target/linux/bcm53xx/patches-3.18/180-bcma_set_gpio_base.patch
+15
-0
15 additions, 0 deletions
...t/linux/bcm53xx/patches-3.18/180-bcma_set_gpio_base.patch
with
15 additions
and
0 deletions
target/linux/bcm53xx/patches-3.18/180-bcma_set_gpio_base.patch
0 → 100644
+
15
−
0
View file @
2dbe131a
Subject: [PATCH] bcma: set gpio chip->base for CONFIG_ARCH_BCM_5301X like on 47xx
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
--- a/drivers/bcma/driver_gpio.c
+++ b/drivers/bcma/driver_gpio.c
@@ -240,7 +240,7 @@
int bcma_gpio_init(struct bcma_drv_cc *c
* relative (per chip) numbers.
* So let's use predictable base for BCM47XX and "random" for all other.
*/
-#if IS_BUILTIN(CONFIG_BCM47XX)
+#if IS_BUILTIN(CONFIG_BCM47XX) || IS_BUILTIN(CONFIG_ARCH_BCM_5301X)
chip->base = bus->num * BCMA_GPIO_MAX_PINS;
#else
chip->base = -1;
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