forked from Minki/linux
1cee6a96cd
* marzen-reference: Don't include legacy clock.h -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJUWBZoAAoJENfPZGlqN0++TsEQAI43mmu8RgLlCyWTcRu928C9 6ui0WocKzZWYWkZJCAjtOestossOBHr+jYWISAPTHpVX1S3snKNFz6SdzMJNkYQI eFBSVpDsk3eSd+IUI6Z4ZZD/JSGHFRmxRzTp0wkdp4dQCi6/Rskm1IqzX0uF/+6b bspYnBP3DPExnAy8NgGrJzjCm8fv9UDAXb7waA7fJrybzjoM0fuwo4NeXZTxrY4F 1F2rXLgLZvdRX9SuWka0Le4v5TeGB/5mxtBUdwekllaVEs+S0HQcG4faj90NNK8Q KR7XYRSZQLjKr4ndpq67iFSACubep1gngcB6TqxYlo9n52RkFOrBwWyyHuCodqfl uvjGm8ReZtqbWpkHta8a9hQlQjuX+IYT6Maw+eI0qwCMHl6miNzV/JTslWQVjfY7 OOn9bJFR8JOJo1K+dstPYuynx1OR7EryzrTcFKtMPCFzArmGb6Xle++y5OiVWkNc AZlwAqNfPTU+46oTZd1fb9EdLotjQKzUkFQWGkt34WjA88eqDPQt3S6fv9Mhe6s6 gjLdtFL5zM8y5IB8wrAQsg9WEjCTekjje3nMCLhhEvHdh/CxZ1uMPRVWrfkoMtvd 1Jq98j9Q3LFaPZRnicH53FWqzOGgYsvHrtU5v01Bf9PgyvhDc3uIAuwxMKGbN9qo pinzk1jmH8XLCoSI5sOz =1JF0 -----END PGP SIGNATURE----- Merge tag 'renesas-boards-cleanups2-for-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/cleanup Pull "Second Round of Renesas ARM Based SoC Boards Cleanups for v3.19" form Simon Horman: * marzen-reference: Don't include legacy clock.h * tag 'renesas-boards-cleanups2-for-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas: ARM: shmobile: marzen-reference: Don't include legacy clock.h Signed-off-by: Arnd Bergmann <arnd@arndb.de>
57 lines
1.5 KiB
C
57 lines
1.5 KiB
C
/*
|
|
* marzen board support - Reference DT implementation
|
|
*
|
|
* Copyright (C) 2011 Renesas Solutions Corp.
|
|
* Copyright (C) 2011 Magnus Damm
|
|
* Copyright (C) 2013 Simon Horman
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#include <linux/clk/shmobile.h>
|
|
#include <linux/clocksource.h>
|
|
#include <linux/of_platform.h>
|
|
|
|
#include <asm/irq.h>
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include "common.h"
|
|
#include "irqs.h"
|
|
#include "r8a7779.h"
|
|
|
|
static void __init marzen_init_timer(void)
|
|
{
|
|
r8a7779_clocks_init(r8a7779_read_mode_pins());
|
|
clocksource_of_init();
|
|
}
|
|
|
|
static void __init marzen_init(void)
|
|
{
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
|
r8a7779_init_irq_extpin_dt(1); /* IRQ1 as individual interrupt */
|
|
}
|
|
|
|
static const char *marzen_boards_compat_dt[] __initdata = {
|
|
"renesas,marzen",
|
|
"renesas,marzen-reference",
|
|
NULL,
|
|
};
|
|
|
|
DT_MACHINE_START(MARZEN, "marzen")
|
|
.smp = smp_ops(r8a7779_smp_ops),
|
|
.map_io = r8a7779_map_io,
|
|
.init_early = shmobile_init_delay,
|
|
.init_time = marzen_init_timer,
|
|
.init_irq = r8a7779_init_irq_dt,
|
|
.init_machine = marzen_init,
|
|
.init_late = shmobile_init_late,
|
|
.dt_compat = marzen_boards_compat_dt,
|
|
MACHINE_END
|