2013-06-28 06:42:16 +02:00
|
|
|
/*
|
|
|
|
* Lager board support - Reference DT implementation
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Renesas Solutions Corp.
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* 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>
|
2013-11-20 01:02:31 +01:00
|
|
|
#include <mach/common.h>
|
2013-10-16 23:58:19 +02:00
|
|
|
#include <mach/rcar-gen2.h>
|
2013-06-28 06:42:16 +02:00
|
|
|
#include <mach/r8a7790.h>
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
|
2013-07-08 08:16:46 +02:00
|
|
|
static void __init lager_add_standard_devices(void)
|
2013-06-28 06:42:16 +02:00
|
|
|
{
|
2013-12-11 15:13:52 +01:00
|
|
|
#ifndef CONFIG_COMMON_CLK
|
2013-06-28 06:42:16 +02:00
|
|
|
r8a7790_clock_init();
|
2013-12-11 15:13:52 +01:00
|
|
|
#endif
|
2013-06-28 06:42:16 +02:00
|
|
|
r8a7790_add_dt_devices();
|
2013-10-16 23:58:19 +02:00
|
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
2013-06-28 06:42:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static const char *lager_boards_compat_dt[] __initdata = {
|
|
|
|
"renesas,lager-reference",
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(LAGER_DT, "lager")
|
2013-08-29 01:22:07 +02:00
|
|
|
.smp = smp_ops(r8a7790_smp_ops),
|
2013-08-08 00:27:01 +02:00
|
|
|
.init_early = r8a7790_init_early,
|
2013-09-12 02:32:49 +02:00
|
|
|
.init_time = rcar_gen2_timer_init,
|
2013-06-28 06:42:16 +02:00
|
|
|
.init_machine = lager_add_standard_devices,
|
2013-11-20 01:02:31 +01:00
|
|
|
.init_late = shmobile_init_late,
|
2013-06-28 06:42:16 +02:00
|
|
|
.dt_compat = lager_boards_compat_dt,
|
|
|
|
MACHINE_END
|