From patchwork Sun Nov 7 21:43:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Contreras X-Patchwork-Id: 307372 X-Patchwork-Delegate: paul@pwsan.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA7LjJT1030051 for ; Sun, 7 Nov 2010 21:45:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753724Ab0KGVpH (ORCPT ); Sun, 7 Nov 2010 16:45:07 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:44122 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753171Ab0KGVpG (ORCPT ); Sun, 7 Nov 2010 16:45:06 -0500 Received: by mail-fx0-f46.google.com with SMTP id 16so3600214fxm.19 for ; Sun, 07 Nov 2010 13:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=MINYqGgxN3LUapm3XkvtO/SV1aPyZITE2+pRd/AYAB4=; b=NFk0sHJfKxgC5QrBV9G4HrVQ0H1VIt7MS/LP6Urp4LjJCzZ4FlHFyHBqZ7p4JRjmTw m2xnoFKKNs38pEgDCKXxtmbP/sIefsonZ3vDZD3szp1Ei/8Q0zrktnS20vk9DKPbEPvW cZ/PrZ8wJ00NnaocaB3Zrr48vNP1wp6R5OWCM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=kL1KbAZXigEFCRRnIXhYNAhWCjVBmuXOz2Aqth/2ulXxCBg+Vs+1V3zCcstparsFNR pnAQDmGa75gcGaww+A5M2iElw+bbR41M4rAahWUI2zA2p0q0d6DGW/+U4w1Rnvppo9s6 ke3GYI8VhjDQKDi1kiqYOy0AcdqQzod+HKpNQ= Received: by 10.223.83.133 with SMTP id f5mr3130572fal.29.1289166305559; Sun, 07 Nov 2010 13:45:05 -0800 (PST) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id d20sm1783362fav.38.2010.11.07.13.44.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 07 Nov 2010 13:45:05 -0800 (PST) From: Felipe Contreras To: linux-omap , Greg KH Cc: Omar Ramirez Luna , Tony Lindgren , Paul Walmsley , Fernando Guzman Lugo , Felipe Contreras Subject: [PATCH 4/5] omap: dsp: add boot control functions Date: Sun, 7 Nov 2010 23:43:28 +0200 Message-Id: <1289166209-32251-5-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.7.3.2.3.gf8529 In-Reply-To: References: Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 07 Nov 2010 21:45:20 +0000 (UTC) diff --git a/arch/arm/mach-omap2/dsp.c b/arch/arm/mach-omap2/dsp.c index 6feeeae..6a21ac6 100644 --- a/arch/arm/mach-omap2/dsp.c +++ b/arch/arm/mach-omap2/dsp.c @@ -12,6 +12,7 @@ */ #include +#include "control.h" #include "prm.h" #include "cm.h" #ifdef CONFIG_BRIDGE_DVFS @@ -31,6 +32,9 @@ static struct omap_dsp_platform_data omap_dsp_pdata __initdata = { .cpu_set_freq = omap_pm_cpu_set_freq, .cpu_get_freq = omap_pm_cpu_get_freq, #endif + .set_dsp_bootaddr = omap_ctrl_set_dsp_bootaddr, + .set_dsp_bootmode = omap_ctrl_set_dsp_bootmode, + .dsp_prm_read = prm_read_mod_reg, .dsp_prm_write = prm_write_mod_reg, .dsp_prm_rmw_bits = prm_rmw_mod_reg_bits, diff --git a/arch/arm/plat-omap/include/plat/dsp.h b/arch/arm/plat-omap/include/plat/dsp.h index 079691d..b2cf15b 100644 --- a/arch/arm/plat-omap/include/plat/dsp.h +++ b/arch/arm/plat-omap/include/plat/dsp.h @@ -10,7 +10,11 @@ struct omap_dsp_platform_data { unsigned long (*cpu_get_freq) (void); unsigned long mpu_speed[6]; + void (*set_dsp_bootaddr)(u32 pa); + void (*set_dsp_bootmode)(u8 mode); + /* functions to write and read PRCM registers */ + /* XXX None of this should be here */ void (*dsp_prm_write)(u32, s16 , u16); u32 (*dsp_prm_read)(s16 , u16); u32 (*dsp_prm_rmw_bits)(u32, u32, s16, s16);