From patchwork Thu May 3 02:11:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Ramirez Luna X-Patchwork-Id: 8369 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 21CE523E13 for ; Thu, 3 May 2012 02:12:10 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id DE30CA18281 for ; Thu, 3 May 2012 02:12:09 +0000 (UTC) Received: by yhpp61 with SMTP id p61so1746711yhp.11 for ; Wed, 02 May 2012 19:12:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Mv/MeDCl29BY8oFHd9WVy7OEV4LwMmI6ZO+T/QIVAWc=; b=abqbSrZX2mvCGO6Jq0Ywf6B3uYpm8ZQcy+E4wb9znzLzu9W952zG7tp5wsc2/sNM7N wucr2uiwUS3zoxecbFv1xhiCRxKNMBps5GFpzndERT7qUd0U4r04YMdLRq+ddoBb3aKf MgruUBvhP4PP8MFel/5WDpsFtui944K+mslSC+qzRWa5uQQFUFOEegMbTHDt4OYeOtlo Thhez+N7639T92eiP9Quh5AHnWrnfWMU+zJN2sbMhXo7x/F67vraJndl3Kn3GJUWb+PK CfsJGwMPRO+mxJbryC0xE4v0HuEaltYDZRyyOtr6wEZuh7ZmDr00qvJUHC68pb9UEdpN B6YA== Received: by 10.42.122.76 with SMTP id m12mr160956icr.38.1336011129094; Wed, 02 May 2012 19:12:09 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.137.198 with SMTP id x6csp294433ibt; Wed, 2 May 2012 19:12:08 -0700 (PDT) Received: by 10.60.14.166 with SMTP id q6mr547439oec.17.1336011128544; Wed, 02 May 2012 19:12:08 -0700 (PDT) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx.google.com with ESMTPS id p9si2137314obv.4.2012.05.02.19.12.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 May 2012 19:12:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of omar.luna@linaro.org) client-ip=209.85.214.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of omar.luna@linaro.org) smtp.mail=omar.luna@linaro.org Received: by mail-ob0-f178.google.com with SMTP id eq6so2407529obc.37 for ; Wed, 02 May 2012 19:12:08 -0700 (PDT) Received: by 10.60.36.100 with SMTP id p4mr485577oej.42.1336011128390; Wed, 02 May 2012 19:12:08 -0700 (PDT) Received: from localhost.localdomain (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id r8sm3389007oer.6.2012.05.02.19.12.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 May 2012 19:12:08 -0700 (PDT) From: Omar Ramirez Luna To: Tony Lindgren , Paul Walmsley , Kevin Hilman Cc: Russell King , Omar Ramirez Luna , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, patches@linaro.org, linaro-dev@lists.linaro.org, Omar Ramirez Luna Subject: [PATCH 2/3] OMAP: dsp: interface to control module functions Date: Wed, 2 May 2012 21:11:52 -0500 Message-Id: <1336011113-31502-3-git-send-email-omar.luna@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1336011113-31502-1-git-send-email-omar.luna@linaro.org> References: <1336011113-31502-1-git-send-email-omar.luna@linaro.org> X-Gm-Message-State: ALoCoQm9GL4tIdgNPckROsRVCGQotFreHz1KEWKboPQCXdfOWfGgYd4tnx9/Jxyq0QKGkz+U62H2 Provide an interface for a driver to call SCM functions to set a boot address and boot mode. Signed-off-by: Omar Ramirez Luna --- arch/arm/mach-omap2/dsp.c | 4 ++++ arch/arm/plat-omap/include/plat/dsp.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/dsp.c b/arch/arm/mach-omap2/dsp.c index 74f18f2..6d37d3c 100644 --- a/arch/arm/mach-omap2/dsp.c +++ b/arch/arm/mach-omap2/dsp.c @@ -20,6 +20,7 @@ #include #include +#include "control.h" #include "cm2xxx_3xxx.h" #include "prm2xxx_3xxx.h" #ifdef CONFIG_BRIDGE_DVFS @@ -45,6 +46,9 @@ static struct omap_dsp_platform_data omap_dsp_pdata __initdata = { .dsp_cm_read = omap2_cm_read_mod_reg, .dsp_cm_write = omap2_cm_write_mod_reg, .dsp_cm_rmw_bits = omap2_cm_rmw_mod_reg_bits, + + .set_bootaddr = omap_ctrl_write_dsp_boot_addr, + .set_bootmode = omap_ctrl_write_dsp_boot_mode, }; static int __init omap_dsp_init(void) diff --git a/arch/arm/plat-omap/include/plat/dsp.h b/arch/arm/plat-omap/include/plat/dsp.h index 9c604b3..5927709 100644 --- a/arch/arm/plat-omap/include/plat/dsp.h +++ b/arch/arm/plat-omap/include/plat/dsp.h @@ -18,6 +18,9 @@ struct omap_dsp_platform_data { u32 (*dsp_cm_read)(s16 , u16); u32 (*dsp_cm_rmw_bits)(u32, u32, s16, s16); + void (*set_bootaddr)(u32); + void (*set_bootmode)(u8); + phys_addr_t phys_mempool_base; phys_addr_t phys_mempool_size; };