-
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: mach-shmobile: add KZM-A9-GT board support
This adds very basic KZM-A9-GT board (SH73a0) support Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Simon Horman <horms@verge.net.au> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
- Loading branch information
Kuninori Morimoto
authored and
Rafael J. Wysocki
committed
May 12, 2012
1 parent
c824108
commit 9b93e24
Showing
3 changed files
with
66 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
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,60 @@ | ||
/* | ||
* KZM-A9-GT board support | ||
* | ||
* Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | ||
* | ||
* 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/gpio.h> | ||
#include <linux/io.h> | ||
#include <linux/irq.h> | ||
#include <linux/platform_device.h> | ||
#include <mach/sh73a0.h> | ||
#include <mach/common.h> | ||
#include <asm/hardware/cache-l2x0.h> | ||
#include <asm/hardware/gic.h> | ||
#include <asm/mach-types.h> | ||
#include <asm/mach/arch.h> | ||
|
||
static struct platform_device *kzm_devices[] __initdata = { | ||
}; | ||
|
||
static void __init kzm_init(void) | ||
{ | ||
sh73a0_pinmux_init(); | ||
|
||
/* enable SCIFA4 */ | ||
gpio_request(GPIO_FN_SCIFA4_TXD, NULL); | ||
gpio_request(GPIO_FN_SCIFA4_RXD, NULL); | ||
gpio_request(GPIO_FN_SCIFA4_RTS_, NULL); | ||
gpio_request(GPIO_FN_SCIFA4_CTS_, NULL); | ||
|
||
#ifdef CONFIG_CACHE_L2X0 | ||
/* Early BRESP enable, Shared attribute override enable, 64K*8way */ | ||
l2x0_init(IOMEM(0xf0100000), 0x40460000, 0x82000fff); | ||
#endif | ||
|
||
sh73a0_add_standard_devices(); | ||
platform_add_devices(kzm_devices, ARRAY_SIZE(kzm_devices)); | ||
} | ||
|
||
MACHINE_START(KZM9G, "kzm9g") | ||
.map_io = sh73a0_map_io, | ||
.init_early = sh73a0_add_early_devices, | ||
.nr_irqs = NR_IRQS_LEGACY, | ||
.init_irq = sh73a0_init_irq, | ||
.handle_irq = gic_handle_irq, | ||
.init_machine = kzm_init, | ||
.timer = &shmobile_timer, | ||
MACHINE_END |