msm-restart: support msm restart for mpq8092

enable restart callback for mpq8092 platform.

Change-Id: I29a68b65a860057882cc0fa5c9269edfda37ed3b
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
This commit is contained in:
Srinivas Ramana 2013-09-18 15:11:25 +05:30
parent 196a5b7f01
commit 5637431ecb
4 changed files with 9 additions and 1 deletions

View File

@ -329,6 +329,8 @@ config ARCH_MPQ8092
select ARM_GIC
select HAVE_ARM_ARCH_TIMER
select MULTI_IRQ_HANDLER
select MSM_NATIVE_RESTART
select MSM_RESTART_V2
select CPU_V7
select MSM_GPIOMUX
select MAY_HAVE_SPARSE_IRQ

View File

@ -26,6 +26,7 @@
#include <mach/clk-provider.h>
#include <mach/msm_smem.h>
#include <mach/msm_smd.h>
#include <mach/restart.h>
#include <linux/io.h>
#include <linux/gpio.h>
@ -131,5 +132,6 @@ DT_MACHINE_START(MSM8092_DT, "Qualcomm MSM 8092 (Flattened Device Tree)")
.dt_compat = mpq8092_dt_match,
.reserve = mpq8092_dt_reserve,
.init_very_early = mpq8092_early_memory,
.restart = msm_restart,
.smp = &msm8974_smp_ops,
MACHINE_END

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
@ -31,6 +31,9 @@
#define MPQ8092_TLMM_PHYS 0xFD510000
#define MPQ8092_TLMM_SIZE SZ_16K
#define MPQ8092_MPM2_PSHOLD_PHYS 0xFC4AB000
#define MPQ8092_MPM2_PSHOLD_SIZE SZ_4K
#ifdef CONFIG_DEBUG_MPQ8092_UART
#define MSM_DEBUG_UART_BASE IOMEM(0xFA71E000)
#define MSM_DEBUG_UART_PHYS 0xF991E000

View File

@ -554,6 +554,7 @@ void __init msm_map_msmkrypton_io(void)
#ifdef CONFIG_ARCH_MPQ8092
static struct map_desc mpq8092_io_desc[] __initdata = {
MSM_CHIP_DEVICE(QGIC_DIST, MPQ8092),
MSM_CHIP_DEVICE(MPM2_PSHOLD, MPQ8092),
MSM_CHIP_DEVICE(TLMM, MPQ8092),
{
.virtual = (unsigned long) MSM_SHARED_RAM_BASE,