summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2011-07-14 05:45:07 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-07-17 11:07:01 +0200
commit7eb29398c0ff6ad431a333a4eb56d917acbc85c1 (patch)
treefc1189b526cdc1f9e3846849914a5b7530535fad /arch/arm
parent0b9bc73711aed13246dd2cb91a3f658eeb25baf5 (diff)
downloadu-boot-imx-7eb29398c0ff6ad431a333a4eb56d917acbc85c1.zip
u-boot-imx-7eb29398c0ff6ad431a333a4eb56d917acbc85c1.tar.gz
u-boot-imx-7eb29398c0ff6ad431a333a4eb56d917acbc85c1.tar.bz2
arm: add CONFIG_MACH_TYPE setting and documentation
CONFIG_MACH_TYPE is used to set the machine type number in the common arm code instead of setting it in the board code. Boards with dynamically discoverable machine types can still set the machine type number in the board code. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/lib/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index fc52a26..6bbedf4 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -281,6 +281,10 @@ void board_init_f (ulong bootflag)
gd->mon_len = _bss_end_ofs;
+#ifdef CONFIG_MACH_TYPE
+ gd->bd->bi_arch_number = CONFIG_MACH_TYPE; /* board id for Linux */
+#endif
+
for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {
if ((*init_fnc_ptr)() != 0) {
hang ();