|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright (C) 2012 Broadcom Corporation
|
|
|
|
|
|
+ * Copyright (C) 2012-2013 Broadcom Corporation
|
|
*
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* modify it under the terms of the GNU General Public License as
|
|
@@ -21,8 +21,8 @@
|
|
#include <asm/mach/time.h>
|
|
#include <asm/mach/time.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
|
|
|
|
-
|
|
|
|
#include "bcm_kona_smc.h"
|
|
#include "bcm_kona_smc.h"
|
|
|
|
+#include "kona.h"
|
|
|
|
|
|
static int __init kona_l2_cache_init(void)
|
|
static int __init kona_l2_cache_init(void)
|
|
{
|
|
{
|
|
@@ -40,13 +40,26 @@ static int __init kona_l2_cache_init(void)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static void bcm_board_setup_restart(void)
|
|
|
|
+{
|
|
|
|
+ struct device_node *np;
|
|
|
|
+
|
|
|
|
+ np = of_find_compatible_node(NULL, NULL, "bcm,bcm11351");
|
|
|
|
+ if (np) {
|
|
|
|
+ if (of_device_is_available(np))
|
|
|
|
+ bcm_kona_setup_restart();
|
|
|
|
+ of_node_put(np);
|
|
|
|
+ }
|
|
|
|
+ /* Restart setup for other boards goes here */
|
|
|
|
+}
|
|
|
|
+
|
|
static void __init board_init(void)
|
|
static void __init board_init(void)
|
|
{
|
|
{
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL,
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL,
|
|
&platform_bus);
|
|
&platform_bus);
|
|
|
|
|
|
bcm_kona_smc_init();
|
|
bcm_kona_smc_init();
|
|
-
|
|
|
|
|
|
+ bcm_board_setup_restart();
|
|
kona_l2_cache_init();
|
|
kona_l2_cache_init();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -55,5 +68,6 @@ static const char * const bcm11351_dt_compat[] = { "bcm,bcm11351", NULL, };
|
|
DT_MACHINE_START(BCM11351_DT, "Broadcom Application Processor")
|
|
DT_MACHINE_START(BCM11351_DT, "Broadcom Application Processor")
|
|
.init_time = clocksource_of_init,
|
|
.init_time = clocksource_of_init,
|
|
.init_machine = board_init,
|
|
.init_machine = board_init,
|
|
|
|
+ .restart = bcm_kona_restart,
|
|
.dt_compat = bcm11351_dt_compat,
|
|
.dt_compat = bcm11351_dt_compat,
|
|
MACHINE_END
|
|
MACHINE_END
|