From patchwork Fri Aug 10 07:09:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 176394 X-Patchwork-Delegate: jagannadh.teki@gmail.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 B56482C0094 for ; Fri, 10 Aug 2012 17:09:28 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B994C28115; Fri, 10 Aug 2012 09:09:10 +0200 (CEST) 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 oF5iVwBsydFw; Fri, 10 Aug 2012 09:09:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6E0D028106; Fri, 10 Aug 2012 09:09:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 453D6280BF for ; Fri, 10 Aug 2012 09:09:05 +0200 (CEST) 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 fxTX4vFQYkaG for ; Fri, 10 Aug 2012 09:09:03 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 IN_DSBL_ORG=4.35 (only DNSBL check requested) Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by theia.denx.de (Postfix) with ESMTPS id 772D0280B2 for ; Fri, 10 Aug 2012 09:09:03 +0200 (CEST) Received: by weyu54 with SMTP id u54so831156wey.3 for ; Fri, 10 Aug 2012 00:09:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:x-gm-message-state; bh=3OplcCCAlCO8WJkfBz4tccXIs7+7TEB0OcQEXrahClU=; b=nZN4Q1y9fZmdc8pfMUjVKLwiB8RKKS2xZKfx9KNSUjZAN4u+dCSlOpgXjvBYkwyBhk wfPPvxeW7TCOuVT+Z7uRHEFd1z/C4x3C4yLxTb7qpRH7jTTtD2ZIWpge4y6/hws82J6z iImKFIBp4sdLYrr92tQshFRSLWmwhK0MN5yCcg+VajZElh89iy/EL7ksEGyuqFZ6bgxC Ldzx0fXn4fM3BoCAF8J4VHotAocV758BBADgJw6qgA9YaLRPc9K6QdLz3ZPtmpzn8+nm 89thok/rCTFanKMU9Xtz9V4M9wUI0KDj/DgZZm7iKyNMvOKf4X/j7kQtazLu2oPF6Xkv x0sA== Received: by 10.216.85.130 with SMTP id u2mr1032224wee.202.1344582542837; Fri, 10 Aug 2012 00:09:02 -0700 (PDT) Received: from localhost (nat-2.starnet.cz. [92.62.224.2]) by mx.google.com with ESMTPS id cl8sm6060606wib.10.2012.08.10.00.09.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Aug 2012 00:09:02 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Fri, 10 Aug 2012 09:09:01 +0200 Message-Id: <1344582541-31390-1-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.7.0.4 X-Gm-Message-State: ALoCoQmzjEpFQ8LtAU9AH06ZCMnByD1GlLL1gwEzuTTtMIEtc7R5e9A3PA6iveh14HYcSqVZ8eeH Subject: [U-Boot] [PATCH] microblaze: Call spi_init function 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Initialization spi. Signed-off-by: Michal Simek Acked-by: Stephan Linz --- arch/microblaze/lib/board.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c index 674b573..ef4bac4 100644 --- a/arch/microblaze/lib/board.c +++ b/arch/microblaze/lib/board.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -166,6 +167,10 @@ void board_init_f(ulong not_used) } #endif +#ifdef CONFIG_SPI + spi_init(); +#endif + /* relocate environment function pointers etc. */ env_relocate ();