From patchwork Mon Mar 25 17:39:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: York Sun X-Patchwork-Id: 230825 X-Patchwork-Delegate: afleming@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id A49AB2C009B for ; Tue, 26 Mar 2013 04:42:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 04AA04A320; Mon, 25 Mar 2013 18:42:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TEf-xEjaUxqd; Mon, 25 Mar 2013 18:42:39 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 825654A224; Mon, 25 Mar 2013 18:41:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A16C54A186 for ; Mon, 25 Mar 2013 18:41:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lVG-hysRVpe2 for ; Mon, 25 Mar 2013 18:41:48 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from co9outboundpool.messaging.microsoft.com (co9ehsobe001.messaging.microsoft.com [207.46.163.24]) by theia.denx.de (Postfix) with ESMTPS id C3A984A2B3 for ; Mon, 25 Mar 2013 18:40:36 +0100 (CET) Received: from mail209-co9-R.bigfish.com (10.236.132.227) by CO9EHSOBE014.bigfish.com (10.236.130.77) with Microsoft SMTP Server id 14.1.225.23; Mon, 25 Mar 2013 17:40:34 +0000 Received: from mail209-co9 (localhost [127.0.0.1]) by mail209-co9-R.bigfish.com (Postfix) with ESMTP id AD2804400DD for ; Mon, 25 Mar 2013 17:40:34 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1155h) Received: from mail209-co9 (localhost.localdomain [127.0.0.1]) by mail209-co9 (MessageSwitch) id 1364233232625347_843; Mon, 25 Mar 2013 17:40:32 +0000 (UTC) Received: from CO9EHSMHS008.bigfish.com (unknown [10.236.132.228]) by mail209-co9.bigfish.com (Postfix) with ESMTP id 955A9B00047 for ; Mon, 25 Mar 2013 17:40:32 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS008.bigfish.com (10.236.130.18) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 25 Mar 2013 17:40:32 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.328.11; Mon, 25 Mar 2013 17:40:31 +0000 Received: from oslab-l1.am.freescale.net ([10.214.80.134]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id r2PHeQ9q012478; Mon, 25 Mar 2013 10:40:30 -0700 From: York Sun To: Date: Mon, 25 Mar 2013 10:39:57 -0700 Message-ID: <1364233225-31262-1-git-send-email-yorksun@freescale.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: u-boot@lists.denx.de Subject: [U-Boot] [Patch v2, batch 4 01/29] 83xx/pcie: fix build error for 83xx pcie X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Roy Zang fix the following build error: pcie.c: In function 'mpc83xx_pcie_init_bus': pcie.c:315:34: error: 'PCI_LTSSM' undeclared (first use in this function) pcie.c:315:34: note: each undeclared identifier is reported only once for each function it appears in pcie.c:316:15: error: 'PCI_LTSSM_L0' undeclared (first use in this function) make[1]: *** [pcie.o] Error 1 make: *** [arch/powerpc/cpu/mpc83xx/libmpc83xx.o] Error 2 Signed-off-by: Roy Zang --- arch/powerpc/cpu/mpc83xx/pcie.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/cpu/mpc83xx/pcie.c b/arch/powerpc/cpu/mpc83xx/pcie.c index 609b133..61d5fa5 100644 --- a/arch/powerpc/cpu/mpc83xx/pcie.c +++ b/arch/powerpc/cpu/mpc83xx/pcie.c @@ -312,6 +312,8 @@ static void mpc83xx_pcie_init_bus(int bus, struct pci_region *reg) printf("PCIE%d: ", bus); +#define PCI_LTSSM 0x404 /* PCIe Link Training, Status State Machine */ +#define PCI_LTSSM_L0 0x16 /* L0 state */ reg16 = in_le16(hose_cfg_base + PCI_LTSSM); if (reg16 >= PCI_LTSSM_L0) printf("link\n");