From patchwork Sat Jul 28 11:19:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 173865 X-Patchwork-Delegate: trini@ti.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 307E32C008C for ; Sat, 28 Jul 2012 21:29:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B482B28099; Sat, 28 Jul 2012 13:28:58 +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 tDGP9sZsqNqB; Sat, 28 Jul 2012 13:28:58 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A0546280AA; Sat, 28 Jul 2012 13:28:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 12224280AA for ; Sat, 28 Jul 2012 13:28:55 +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 qodJsi4Gtd9Z for ; Sat, 28 Jul 2012 13:28:54 +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-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by theia.denx.de (Postfix) with ESMTPS id 5575728099 for ; Sat, 28 Jul 2012 13:28:52 +0200 (CEST) Received: by weyu54 with SMTP id u54so2625006wey.3 for ; Sat, 28 Jul 2012 04:28:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=b5t1Kb+JbzjE6sXtVD8C3ZoOXjx/TTHApOkpNKH/HEc=; b=W/FH44noRwKf2Fqx20YZKG441D7ui1/mh2+lVSZeK8Pp2PmGNoOzy+Ue31sgeTscWS WtrL+sZQU1CwAhaIuNXzmM343CX9vVf1usX3sCNnSafaJ4TVjcOAttbpuTjTcFEuVwUu qDopQVI2sGzSmSyKqkVT0lS0FgG+fOWYEuzErMtZHt68jq+NREb8d2qKd2l9QS3m3uzr uLl82vlpwPmRSbSW+HTY5ILHTDdBHIzIspZcjkGoXJ0BlZvT6jDjZ1rLg9Eeu5JExo91 I8k+dDPozRUUMRaF41NNVVCkDjn7sN2FdAVa8q/E+3pteUgs09uXWqzO+gk0gpcUgTpY PGGA== Received: by 10.180.103.136 with SMTP id fw8mr12969094wib.20.1343474536877; Sat, 28 Jul 2012 04:22:16 -0700 (PDT) Received: from munra.udc.es ([193.144.61.240]) by mx.google.com with ESMTPS id ex20sm5552855wid.7.2012.07.28.04.22.13 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 Jul 2012 04:22:16 -0700 (PDT) From: Javier Martinez Canillas To: Enric Balletbo i Serra Date: Sat, 28 Jul 2012 13:19:33 +0200 Message-Id: <1343474374-10992-3-git-send-email-javier@dowhile0.org> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1343474374-10992-1-git-send-email-javier@dowhile0.org> References: <1343474374-10992-1-git-send-email-javier@dowhile0.org> X-Gm-Message-State: ALoCoQkmS42zJXAtPUK6QImiNrEGYyDybAPB8kgfB5UyNdJzLq9mngLArfX6neMLh7d+qm9bBJXE Cc: Tom Rini , Thomas Petazzoni , u-boot@lists.denx.de Subject: [U-Boot] [u-boot-arm/next RESEND PATCH 2/3] OMAP3: mem: Add Numonyx OneNAND 200MHz timing information 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 Signed-off-by: Javier Martinez Canillas --- arch/arm/include/asm/arch-omap3/mem.h | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-omap3/mem.h b/arch/arm/include/asm/arch-omap3/mem.h index 9f6992a..12dcf4e 100644 --- a/arch/arm/include/asm/arch-omap3/mem.h +++ b/arch/arm/include/asm/arch-omap3/mem.h @@ -294,6 +294,35 @@ enum { #define NUMONYX_RASWIDTH_165 15 #define NUMONYX_V_MCFG_165(size) MCFG((size), NUMONYX_RASWIDTH_165) +/* NUMONYX part of IGEP v2 (200MHz optimized) 5 ns */ +#define NUMONYX_TDAL_200 6 /* Twr/Tck + Trp/tck */ + /* 15/5 + 15/5 = 3 + 3 -> 6 */ +#define NUMONYX_TDPL_200 3 /* 15/5 = 3 -> 3 (Twr) */ +#define NUMONYX_TRRD_200 2 /* 10/5 = 2 */ +#define NUMONYX_TRCD_200 4 /* 16.2/5 = 3.24 -> 4 */ +#define NUMONYX_TRP_200 3 /* 15/5 = 3 */ +#define NUMONYX_TRAS_200 8 /* 40/5 = 8 */ +#define NUMONYX_TRC_200 11 /* 55/5 = 11 */ +#define NUMONYX_TRFC_200 28 /* 140/5 = 28 */ + +#define NUMONYX_V_ACTIMA_200 \ + ACTIM_CTRLA(NUMONYX_TRFC_200, NUMONYX_TRC_200, \ + NUMONYX_TRAS_200, NUMONYX_TRP_200, \ + NUMONYX_TRCD_200, NUMONYX_TRRD_200, \ + NUMONYX_TDPL_200, NUMONYX_TDAL_200) + +#define NUMONYX_TWTR_200 2 +#define NUMONYX_TCKE_200 2 +#define NUMONYX_TXP_200 3 +#define NUMONYX_XSR_200 40 + +#define NUMONYX_V_ACTIMB_200 \ + ACTIM_CTRLB(NUMONYX_TWTR_200, NUMONYX_TCKE_200, \ + NUMONYX_TXP_200, NUMONYX_XSR_200) + +#define NUMONYX_RASWIDTH_200 15 +#define NUMONYX_V_MCFG_200(size) MCFG((size), NUMONYX_RASWIDTH_200) + /* * GPMC settings - * Definitions is as per the following format