Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
linux_grx
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Intel
linux_grx
Commits
d55e6fca
Commit
d55e6fca
authored
6 years ago
by
Kenneth Johansson
Committed by
Oussama Ghorbel
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix device tree pointer from u-boot to work with CONFIG_EVA option.
only work for the CONFIG_LTQ_EVA_1GB sub option.
parent
540ad493
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/mips/lantiq/grx500/prom.c
+11
-1
11 additions, 1 deletion
arch/mips/lantiq/grx500/prom.c
with
11 additions
and
1 deletion
arch/mips/lantiq/grx500/prom.c
+
11
−
1
View file @
d55e6fca
...
...
@@ -157,8 +157,18 @@ static void plat_early_init_devtree(void)
* Load the builtin devicetree. This causes the chosen node to be
* parsed resulting in our memory appearing
*/
if
(
fw_passed_dtb
)
/* used by CONFIG_MIPS_APPENDED_RAW_DTB as well */
if
(
fw_passed_dtb
){
/* used by CONFIG_MIPS_APPENDED_RAW_DTB as well */
#if defined(CONFIG_LTQ_EVA_1GB) && ! defined(CONFIG_MIPS_APPENDED_RAW_DTB)
/* in this option we have the kernel linked at 0x60000000 instead of 0x80000000 */
/* u-boot assumes the first one so pointer from u-boot is pointing to wrong address */
pr_info
(
"Using Device tree (DTB) from bootloader %p (%p)
\n
"
,
(
void
*
)(
fw_passed_dtb
-
0x20000000
),
(
void
*
)
fw_passed_dtb
);
fw_passed_dtb
-=
0x20000000
;
/* KEN: compensate for the change in BASE address for the kernel. */
#else
pr_info
(
"Using Device tree (DTB) appended to kernel image %p
\n
"
,
fw_passed_dtb
);
#endif
dtb
=
(
void
*
)
fw_passed_dtb
;
}
else
if
(
__dtb_start
!=
__dtb_end
)
dtb
=
(
void
*
)
__dtb_start
;
else
...
...
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