Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sami Nurmenniemi
u-boot-stm32
Commits
5fcb542b
Commit
5fcb542b
authored
Dec 01, 2012
by
Sergei Poselenov
Browse files
RT #81023. Implemented different configurations for K61-SOM and K70-SOM
modules running at 120 and 150 MHz.
parent
e3b73277
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
5fcb542b
...
...
@@ -3236,8 +3236,22 @@ twr-k70f120m_config : unconfig
lpc-lnx-evb_config
:
unconfig
@
$(MKCONFIG)
$
(
@:_config
=)
arm arm_cortexm3 lpc-lnx-evb emcraft lpc178x
k61-som_config
\
k61-som-150_config
\
k70-som-150_config
\
k70-som_config
:
unconfig
@
$(MKCONFIG)
$
(
@:_config
=)
arm arm_cortexm3 k70-som emcraft kinetis
@
mkdir
-p
$(obj)
include
@
>
$(obj)
include/config.h
@
[
-z
"
$(
findstring
k61-,
$@
)
"
]
||
\
{
echo
"#define CONFIG_KINETIS_K61"
>>
$(obj)
include/config.h
;
\
echo
"...for K61-SOM"
;
\
}
@[
-z
"$(findstring -150,$@)"
]
||
\
{
echo
"#define CONFIG_KINETIS_150MHZ"
>>$(obj)include/config.h
;
\
echo
"...for 150MHz"
;
\
}
@$(MKCONFIG)
-a
k70-som
arm
arm_cortexm3
k70-som
emcraft
kinetis
lpc4350-eval_config
:
unconfig
@
$(MKCONFIG)
$
(
@:_config
=)
arm arm_cortexm3 lpc4350-eval hitex lpc18xx
...
...
include/configs/k70-som.h
View file @
5fcb542b
...
...
@@ -44,9 +44,15 @@
/*
* Choose Kinetis MCU family and maximum core frequency
* Default is K70 @120MHz and can be redefined by config.h
*/
#ifndef CONFIG_KINETIS_K61
#define CONFIG_KINETIS_K70
#endif
#ifndef CONFIG_KINETIS_150MHZ
#define CONFIG_KINETIS_120MHZ
#endif
/*
* Enable GPIO driver
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment