-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: shmobile: KZM9D DT reference implementation
Add a DT reference implementation for the KZM9D board. Only DT devices are used in this case. UART, STI, GPIO and SMP / GIC are all provided by emev2.dtsi. There is still a board specific C file used for enabling legacy SH clocks. This file will be removed after we have moved over to common clocks. Signed-off-by: Magnus Damm <damm@opensource.se> [horms+renesas@verge.net.au: Do not include trailing blank line in board-kzm9d-reference.c ] Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
- Loading branch information
Magnus Damm
authored and
Simon Horman
committed
Jul 17, 2013
1 parent
8c9b1aa
commit 03393e8
Showing
6 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Device Tree Source for the KZM9D board | ||
* | ||
* Copyright (C) 2013 Renesas Solutions Corp. | ||
* | ||
* This file is licensed under the terms of the GNU General Public License | ||
* version 2. This program is licensed "as is" without any warranty of any | ||
* kind, whether express or implied. | ||
*/ | ||
/dts-v1/; | ||
|
||
/include/ "emev2.dtsi" | ||
|
||
/ { | ||
model = "EMEV2 KZM9D Board"; | ||
compatible = "renesas,kzm9d-reference", "renesas,emev2"; | ||
|
||
memory { | ||
device_type = "memory"; | ||
reg = <0x40000000 0x8000000>; | ||
}; | ||
|
||
chosen { | ||
bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* kzm9d board support - Reference DT implementation | ||
* | ||
* Copyright (C) 2013 Renesas Solutions Corp. | ||
* Copyright (C) 2013 Magnus Damm | ||
* | ||
* 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; version 2 of the License. | ||
* | ||
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <linux/of_platform.h> | ||
#include <mach/emev2.h> | ||
#include <mach/common.h> | ||
#include <asm/mach/arch.h> | ||
|
||
static void __init kzm9d_add_standard_devices(void) | ||
{ | ||
emev2_clock_init(); | ||
|
||
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
} | ||
|
||
static const char *kzm9d_boards_compat_dt[] __initdata = { | ||
"renesas,kzm9d-reference", | ||
NULL, | ||
}; | ||
|
||
DT_MACHINE_START(KZM9D_DT, "kzm9d") | ||
.smp = smp_ops(emev2_smp_ops), | ||
.map_io = emev2_map_io, | ||
.init_early = emev2_init_delay, | ||
.init_machine = kzm9d_add_standard_devices, | ||
.init_late = shmobile_init_late, | ||
.dt_compat = kzm9d_boards_compat_dt, | ||
MACHINE_END |