From patchwork Wed Nov 16 17:01:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dwivedi, Avaneesh Kumar (avani)" X-Patchwork-Id: 9432223 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A39CA60476 for ; Wed, 16 Nov 2016 17:02:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 928BD28F6C for ; Wed, 16 Nov 2016 17:02:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8745328FB3; Wed, 16 Nov 2016 17:02:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13B5428F6C for ; Wed, 16 Nov 2016 17:02:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932221AbcKPRCZ (ORCPT ); Wed, 16 Nov 2016 12:02:25 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:58206 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932811AbcKPRCW (ORCPT ); Wed, 16 Nov 2016 12:02:22 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 38F8D6151D; Wed, 16 Nov 2016 17:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1479315742; bh=hRA3slxHzx0UUQiT4X9YNPcnx3X/IVksrcGlSkHBvP0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xzj+Oz+OFU0WqOhTaLDrNzc7jJ+C5dc555U1IKWoQGdG0QVFc99ogbGBSy9SGrVmp RqWd+jwgUhsqbgDNHiJljibXzuww1XtosdjFWwrBHT0lKE3HmcJghoVc2Iwh23LhR/ /8udizob2GGy71Naa3s11yXZSkQqDHNAJ6QfiZBc= Received: from akdwived-linux.qualcomm.com (unknown [202.46.23.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akdwived@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 578966159F; Wed, 16 Nov 2016 17:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1479315734; bh=hRA3slxHzx0UUQiT4X9YNPcnx3X/IVksrcGlSkHBvP0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bd0h51w4mA89IUSti79j1ZJ3tH3jkcsv7JmLhaeZh4GOQmChOUYmKFbRoH9UM1IRN +Ro2q4vkvc9Qxt0VIRgxH2xSDKqulFQ7/noZrptyYb/4NXDQfbp9mxd4Sx/lacQ1l/ aTj1btnEErxffyqwBJa3e5uhpdyI6lwsNRJyH09U= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 578966159F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=akdwived@codeaurora.org From: Avaneesh Kumar Dwivedi To: bjorn.andersson@linaro.org Cc: sboyd@codeaurora.org, agross@codeaurora.org, linux-arm-msm@vger.kernel.org, Avaneesh Kumar Dwivedi Subject: [PATCH v4 10/10] remoteproc: qcom: Adding required initialization for q6v5 hexagon Date: Wed, 16 Nov 2016 22:31:36 +0530 Message-Id: <1479315696-15490-11-git-send-email-akdwived@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479315696-15490-1-git-send-email-akdwived@codeaurora.org> References: <1479315696-15490-1-git-send-email-akdwived@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Initialization of q6v5 specific resources were missed, adding them back. This driver supports q6v56 and q6v5. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c index 3135832..3a926e7 100644 --- a/drivers/remoteproc/qcom_q6v5_pil.c +++ b/drivers/remoteproc/qcom_q6v5_pil.c @@ -1249,11 +1249,20 @@ static int q6v5_remove(struct platform_device *pdev) .active_clk_string = active_q6v56_clk_namestr, }; +static char *active_q6v5_regulator_namestr[] = {"mss", NULL}; +static int active_q6v5_voltage_load[1][2] = { {1000000, 100000} }; +static char *proxy_q6v5_clk_namestr[] = {"xo", NULL}; +static char *active_q6v5_clk_namestr[] = {"iface", "bus", "mem", NULL}; + static const struct q6_rproc_res q6v5_res = { .q6_reset_init = q6v5_init_reset, .q6_mba_image = "mba.mbn", .proxy_reg_string = proxy_q6v56_regulator_namestr, .proxy_voltage_load = (int **)proxy_q6v56_voltage_load, + .active_reg_string = active_q6v5_regulator_namestr, + .active_voltage_load = (int **)active_q6v5_voltage_load, + .proxy_clk_string = proxy_q6v5_clk_namestr, + .active_clk_string = active_q6v5_clk_namestr, }; static const struct of_device_id q6v5_of_match[] = {