From patchwork Thu Nov 18 23:54:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Neuendorffer X-Patchwork-Id: 72173 X-Patchwork-Delegate: grant.likely@secretlab.ca Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 96723B7446 for ; Fri, 19 Nov 2010 11:11:07 +1100 (EST) X-Greylist: delayed 906 seconds by postgrey-1.32 at bilbo; Fri, 19 Nov 2010 11:10:31 EST Received: from VA3EHSOBE001.bigfish.com (va3ehsobe001.messaging.microsoft.com [216.32.180.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Cybertrust SureServer Standard Validation CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 7A284B71E1 for ; Fri, 19 Nov 2010 11:10:31 +1100 (EST) Received: from mail120-va3-R.bigfish.com (10.7.14.244) by VA3EHSOBE001.bigfish.com (10.7.40.21) with Microsoft SMTP Server id 14.1.225.8; Thu, 18 Nov 2010 23:55:18 +0000 Received: from mail120-va3 (localhost.localdomain [127.0.0.1]) by mail120-va3-R.bigfish.com (Postfix) with ESMTP id 13C011448449; Thu, 18 Nov 2010 23:55:18 +0000 (UTC) X-SpamScore: 0 X-BigFish: VPS0(zzzz1202hzz8275bhz2dh95h668h67dh685h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:xsj-gw1; RD:unknown-60-83.xilinx.com; EFVD:NLI Received: from mail120-va3 (localhost.localdomain [127.0.0.1]) by mail120-va3 (MessageSwitch) id 1290124517888769_25674; Thu, 18 Nov 2010 23:55:17 +0000 (UTC) Received: from VA3EHSMHS025.bigfish.com (unknown [10.7.14.244]) by mail120-va3.bigfish.com (Postfix) with ESMTP id D11AE33804E; Thu, 18 Nov 2010 23:55:17 +0000 (UTC) Received: from xsj-gw1 (149.199.60.83) by VA3EHSMHS025.bigfish.com (10.7.99.35) with Microsoft SMTP Server id 14.1.225.8; Thu, 18 Nov 2010 23:55:12 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1.xilinx.com) by xsj-gw1 with esmtp (Exim 4.63) (envelope-from ) id 1PJEJs-0001LP-50; Thu, 18 Nov 2010 15:55:12 -0800 From: Stephen Neuendorffer To: , , , , Subject: [PATCH 2/7] arch/x86: Add support for device tree code. Date: Thu, 18 Nov 2010 15:54:57 -0800 X-Mailer: git-send-email 1.5.6.6 In-Reply-To: <1290124502-13125-2-git-send-email-stephen.neuendorffer@xilinx.com> References: <1290021345-4303-1-git-send-email-stephen.neuendorffer@xilinx.com> <1290124502-13125-1-git-send-email-stephen.neuendorffer@xilinx.com> <1290124502-13125-2-git-send-email-stephen.neuendorffer@xilinx.com> MIME-Version: 1.0 Message-ID: <98608b2e-d138-4dc0-808d-3662ab2c9938@VA3EHSMHS025.ehs.local> X-OriginatorOrg: xilinx.com X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org A few support device-tree related support functions that x86 didn't have before. Signed-off-by: Stephen Neuendorffer ---- Looks like just some irq related junk left! --- arch/x86/include/asm/irq.h | 2 ++ arch/x86/kernel/irq.c | 11 +++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h index 5458380..af4e630 100644 --- a/arch/x86/include/asm/irq.h +++ b/arch/x86/include/asm/irq.h @@ -10,6 +10,8 @@ #include #include +#define irq_dispose_mapping(...) + static inline int irq_canonicalize(int irq) { return ((irq == 2) ? 9 : irq); diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 91fd0c7..a3aaed4 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -364,3 +364,14 @@ void fixup_irqs(void) } } #endif + +#ifdef CONFIG_OF +#include +unsigned int irq_create_of_mapping(struct device_node *controller, + const u32 *intspec, unsigned int intsize) +{ + return intspec[0] + 1; +} +EXPORT_SYMBOL_GPL(irq_create_of_mapping); + +#endif