Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afae8668 authored by Venkatesh Yadav Abbarapu's avatar Venkatesh Yadav Abbarapu
Browse files

pinctrl: msm: Add pinctrl driver and board support for msm8909



Add initial pinctrl driver to support pin configuration
with pinctrl framework for msm8909. While at it, add the
msm8909 board support as well.

Change-Id: Ia4d57385c70e7aadf10937f4fa5fdc86c7082622
Signed-off-by: default avatarVenkatesh Yadav Abbarapu <vabbar@codeaurora.org>
parent 769d7b09
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -188,5 +188,35 @@ config ARCH_MSMTITANIUM
	select MSM_RPM_SMD
	select MSM_JTAGV8 if CORESIGHT_ETMV4

config ARCH_MSM8909
	bool "MSM8909"
	select ARCH_MSM_CORTEXMP
	select ARM_GIC
	select MULTI_IRQ_HANDLER
	select HAVE_SMP
	select CPU_V7
	select HAVE_ARM_ARCH_TIMER
	select MAY_HAVE_SPARSE_IRQ
	select SPARSE_IRQ
	select PINCTRL
	select PINCTRL_MSM_TLMM
	select USE_PINCTRL_IRQ
	select MSM_PM if PM
	select MSM_RPM_SMD
	select MSM_RPM_STATS_LOG
	select MSM_RPM_LOG
	select MSM_CORTEX_A7
	select MSM_IRQ
	select ARM_TICKET_LOCKS
	select ARM_HAS_SG_CHAIN
	select CPU_FREQ
	select CPU_FREQ_MSM
	select PM_DEVFREQ
	select PM_OPP
	select MSM_DEVFREQ_DEVBW
	select DEVFREQ_SIMPLE_DEV
	select DEVFREQ_GOV_MSM_BW_HWMON
	select MSM_BIMC_BWMON

endmenu
endif
+1 −0
Original line number Diff line number Diff line
@@ -6,3 +6,4 @@ obj-$(CONFIG_ARCH_MSM8916) += board-8952.o
obj-$(CONFIG_ARCH_MSMGOLD) += board-gold.o
obj-$(CONFIG_ARCH_MSM8937) += board-8937.o
obj-$(CONFIG_ARCH_MSMTITANIUM) += board-titanium.o
obj-$(CONFIG_ARCH_MSM8909) += board-8909.o
+34 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * 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 <asm/mach/map.h>
#include <asm/mach/arch.h>
#include "board-dt.h"

static const char *msm8909_dt_match[] __initconst = {
	"qcom,msm8909",
	"qcom,apq8009",
	NULL
};

static void __init msm8909_init(void)
{
	board_dt_populate(NULL);
}

DT_MACHINE_START(MSM8909_DT,
	"Qualcomm Technologies, Inc. MSM 8909 (Flattened Device Tree)")
	.init_machine	= msm8909_init,
	.dt_compat	= msm8909_dt_match,
MACHINE_END
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -69,3 +69,4 @@ IRQCHIP_DECLARE(8952_pinctrl, "qcom,msm8952-pinctrl", pinctrl_irq_dummy);
IRQCHIP_DECLARE(8937_pinctrl, "qcom,msm8937-pinctrl", pinctrl_irq_dummy);
IRQCHIP_DECLARE(titanium_pinctrl, "qcom,msmtitanium-pinctrl",
						pinctrl_irq_dummy);
IRQCHIP_DECLARE(8909_pinctrl, "qcom,msm8909-pinctrl", pinctrl_irq_dummy);
+7 −0
Original line number Diff line number Diff line
@@ -119,4 +119,11 @@ config PINCTRL_MSMTITANIUM
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm MSMTITANIUM platform.

config PINCTRL_MSM8909
	tristate "QTI MSM8909 pin controller driver"
	depends on GPIOLIB && OF && (ARCH_MSM8909 || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  QTI TLMM block found in the QTI MSM8909 platform.
endif
Loading