From patchwork Tue Jul 6 16:13:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 110464 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o66GXS5e018786 for ; Tue, 6 Jul 2010 16:33:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755171Ab0GFQN2 (ORCPT ); Tue, 6 Jul 2010 12:13:28 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:36686 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755134Ab0GFQN1 (ORCPT ); Tue, 6 Jul 2010 12:13:27 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o66GDPXO029778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Jul 2010 11:13:25 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o66GDMP7000821; Tue, 6 Jul 2010 11:13:22 -0500 (CDT) Received: from senorita (senorita.am.dhcp.ti.com [128.247.74.250]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o66GDMP08114; Tue, 6 Jul 2010 11:13:22 -0500 (CDT) Received: by senorita (Postfix, from userid 1000) id 6A2B3C253; Tue, 6 Jul 2010 11:13:22 -0500 (CDT) From: Nishanth Menon To: Tony Lindgren Cc: linux-omap , Venkatraman S , Senthil G , Nishanth Menon Subject: [PATCH 8/8 v2] omap: introduce omap24xx generic features Date: Tue, 6 Jul 2010 11:13:21 -0500 Message-Id: <1278432801-28611-1-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <[PATCH 9/9] omap: id: add feature check for omap1> References: <[PATCH 9/9] omap: id: add feature check for omap1> 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 (demeter.kernel.org [140.211.167.41]); Tue, 06 Jul 2010 16:33:29 +0000 (UTC) diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index e3f5994..ab8eb41 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c @@ -102,6 +102,15 @@ static struct omap_id omap_ids[] __initdata = { static void __iomem *tap_base; static u16 tap_prod_id; +static void __init omap24xx_check_features(void) +{ + /* + * TODO: add a better check feature once we have + * more decent feature check + */ + omap_features |= OMAP_HAS_IVA; +} + static void __init omap24xx_check_revision(void) { int i, j; @@ -388,6 +397,7 @@ void __init omap2_check_revision(void) */ if (cpu_is_omap24xx()) { omap24xx_check_revision(); + omap24xx_check_features(); } else if (cpu_is_omap34xx()) { omap3_check_revision(); omap3_check_features();