From patchwork Thu Jul 25 14:18:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 261708 X-Patchwork-Delegate: albert.aribaud@free.fr 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 56A322C007C for ; Fri, 26 Jul 2013 00:19:55 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8E0534A02F; Thu, 25 Jul 2013 16:19:29 +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 c3lP0f+I+Yyt; Thu, 25 Jul 2013 16:19:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9FB2A4A030; Thu, 25 Jul 2013 16:19:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ECE684A025 for ; Thu, 25 Jul 2013 16:19:01 +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 O3q71m6Cu194 for ; Thu, 25 Jul 2013 16:18:56 +0200 (CEST) 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 mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by theia.denx.de (Postfix) with ESMTPS id 6B65E4A01B for ; Thu, 25 Jul 2013 16:18:45 +0200 (CEST) Received: by mail-ea0-f182.google.com with SMTP id o10so969403eaj.41 for ; Thu, 25 Jul 2013 07:18:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:content-type:x-gm-message-state; bh=WGEG1yEDGCAZkOpMdn3IQincRwfpZ6orFb81gFgRWAw=; b=pEeLJJTb9z5kS0ju8PzeVznySgjfbQhW6JEFf3skOak2y9+v3RtocISiBXKrFVbLxn 0d9zLWtItqZ6k+tw+lQqgyuXfYMhv7FuXLXdC+IsvoMOE+hLMhf5AkzQKZIGfy22+w69 ZS0cB9bqiCLthQkApwz1xvTkniUQDjgmTuHAPH3sm2Ez2jreorJb1YXtoVvMWUAkuz59 g4rX/2ecwJafT25157Bqq7o4Nwkb2LnfizObZV54VJo/qQ/kL6bWdhmyueUur2I3p/cV JVcGZtwu1OuF1df290SJkPc7EpCAo/rf5OBjlKsK7eWSffRYGsI2NB2GJNIx6XzCx3JW zZCg== X-Received: by 10.15.94.142 with SMTP id bb14mr43138556eeb.112.1374761923988; Thu, 25 Jul 2013 07:18:43 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id e44sm73985241eeh.11.2013.07.25.07.18.43 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 25 Jul 2013 07:18:43 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, Albert Aribaud Date: Thu, 25 Jul 2013 16:18:39 +0200 Message-Id: <552e3da817892844787783580457bcd283a2eb7f.1374761918.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQn6dkdp6iiyhvJQd0GauJaDHokFcLpnD0WNq8NhxjhnT728rFsoqEyaN4oWoarDH28wPP7B Subject: [U-Boot] [PATCH 2/3] zynq: slcr: Wait 100ms till clk is properly setup 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 If you don't wait you will loose the first sent packet even all bits in emacps are correctly setup. Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/slcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.2.3 diff --git a/arch/arm/cpu/armv7/zynq/slcr.c b/arch/arm/cpu/armv7/zynq/slcr.c index 52048c6..1c28e96 100644 --- a/arch/arm/cpu/armv7/zynq/slcr.c +++ b/arch/arm/cpu/armv7/zynq/slcr.c @@ -86,7 +86,7 @@ void zynq_slcr_gem_clk_setup(u32 gem_id, u32 rclk, u32 clk) /* Configure GEM_RCLK_CTRL */ writel(rclk, &slcr_base->gem0_rclk_ctrl); } - + udelay(100000); out: zynq_slcr_lock(); }