Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Florian Mayer
u-boot
Commits
f852ce72
Commit
f852ce72
authored
17 years ago
by
Kumar Gala
Browse files
Options
Downloads
Patches
Plain Diff
Add libfdt based ft_cpu_setup for mpc85xx
Signed-off-by:
Kumar Gala
<
galak@kernel.crashing.org
>
parent
c01b17dd
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
cpu/mpc85xx/Makefile
+3
-1
3 additions, 1 deletion
cpu/mpc85xx/Makefile
cpu/mpc85xx/fdt.c
+64
-0
64 additions, 0 deletions
cpu/mpc85xx/fdt.c
with
67 additions
and
1 deletion
cpu/mpc85xx/Makefile
+
3
−
1
View file @
f852ce72
...
...
@@ -29,8 +29,10 @@ include $(TOPDIR)/config.mk
LIB
=
$(
obj
)
lib
$(
CPU
)
.a
START
=
start.o resetvec.o
COBJS-$(CONFIG_OF_LIBFDT)
+=
fdt.o
COBJS
=
traps.o cpu.o cpu_init.o speed.o interrupts.o
\
pci.o serial_scc.o commproc.o ether_fcc.o spd_sdram.o qe_io.o
pci.o serial_scc.o commproc.o ether_fcc.o spd_sdram.o qe_io.o
\
$(
COBJS-y
)
SRCS
:=
$(
START:.o
=
.S
)
$(
SOBJS:.o
=
.S
)
$(
COBJS:.o
=
.c
)
OBJS
:=
$(
addprefix
$(
obj
)
,
$(
SOBJS
)
$(
COBJS
))
...
...
This diff is collapsed.
Click to expand it.
cpu/mpc85xx/fdt.c
0 → 100644
+
64
−
0
View file @
f852ce72
/*
* Copyright 2007 Freescale Semiconductor, Inc.
*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
#include
<common.h>
#include
<libfdt.h>
#include
<fdt_support.h>
void
ft_cpu_setup
(
void
*
blob
,
bd_t
*
bd
)
{
#if defined(CONFIG_HAS_ETH0) || defined(CONFIG_HAS_ETH1) ||\
defined(CONFIG_HAS_ETH2) || defined(CONFIG_HAS_ETH3)
fdt_fixup_ethernet
(
blob
,
bd
);
#endif
do_fixup_by_prop_u32
(
blob
,
"device_type"
,
"cpu"
,
4
,
"timebase-frequency"
,
bd
->
bi_busfreq
/
8
,
1
);
do_fixup_by_prop_u32
(
blob
,
"device_type"
,
"cpu"
,
4
,
"bus-frequency"
,
bd
->
bi_busfreq
,
1
);
do_fixup_by_prop_u32
(
blob
,
"device_type"
,
"cpu"
,
4
,
"clock-frequency"
,
bd
->
bi_intfreq
,
1
);
do_fixup_by_prop_u32
(
blob
,
"device_type"
,
"soc"
,
4
,
"bus-frequency"
,
bd
->
bi_busfreq
,
1
);
#ifdef CONFIG_QE
do_fixup_by_prop_u32
(
blob
,
"device_type"
,
"soc"
,
4
,
"bus-frequency"
,
bd
->
bi_busfreq
,
1
);
#endif
#ifdef CFG_NS16550
do_fixup_by_compat_u32
(
blob
,
"ns16550"
,
"clock-frequency"
,
bd
->
bi_busfreq
,
1
);
#endif
#ifdef CONFIG_CPM2
do_fixup_by_compat_u32
(
blob
,
"fsl,cpm2-scc-uart"
,
"current-speed"
,
bd
->
bi_baudrate
,
1
);
do_fixup_by_compat_u32
(
blob
,
"fsl,cpm2-brg"
,
"clock-frequency"
,
bd
->
bi_brgfreq
,
1
);
#endif
fdt_fixup_memory
(
blob
,
(
u64
)
bd
->
bi_memstart
,
(
u64
)
bd
->
bi_memsize
);
}
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