![Masahiro Yamada](/assets/img/avatar_default.png)
These smp_operations structures are not over-written, so add "const" qualifier and replace __initdata with __initconst. Also, add "static" where it is possible. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Moritz Fischer <moritz.fischer@ettus.com> Acked-by: Stephen Boyd <sboyd@codeaurora.org> # qcom part Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Patrice Chotard <patrice.chotard@st.com> Acked-by: Heiko Stuebner <heiko@sntech.de> Acked-by: Wei Xu <xuwei5@hisilicon.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Acked-by: Shawn Guo <shawnguo@kernel.org> Acked-by: Matthias Brugger <matthias.bgg@gmail.com> Acked-by: Thierry Reding <treding@nvidia.com> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Liviu Dudau <Liviu.Dudau@arm.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
/*
|
|
* Emma Mobile EV2 processor support
|
|
*
|
|
* Copyright (C) 2012 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.
|
|
*/
|
|
#include <linux/kernel.h>
|
|
#include <linux/init.h>
|
|
#include <linux/mm.h>
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/mach/map.h>
|
|
#include "common.h"
|
|
|
|
static struct map_desc emev2_io_desc[] __initdata = {
|
|
#ifdef CONFIG_SMP
|
|
/* 2M mapping for SCU + L2 controller */
|
|
{
|
|
.virtual = 0xf0000000,
|
|
.pfn = __phys_to_pfn(0x1e000000),
|
|
.length = SZ_2M,
|
|
.type = MT_DEVICE
|
|
},
|
|
#endif
|
|
};
|
|
|
|
static void __init emev2_map_io(void)
|
|
{
|
|
iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc));
|
|
}
|
|
|
|
static const char *const emev2_boards_compat_dt[] __initconst = {
|
|
"renesas,emev2",
|
|
NULL,
|
|
};
|
|
|
|
extern const struct smp_operations emev2_smp_ops;
|
|
|
|
DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)")
|
|
.smp = smp_ops(emev2_smp_ops),
|
|
.map_io = emev2_map_io,
|
|
.init_early = shmobile_init_delay,
|
|
.init_late = shmobile_init_late,
|
|
.dt_compat = emev2_boards_compat_dt,
|
|
MACHINE_END
|