Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA9FFC433EF for ; Thu, 17 Mar 2022 18:34:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2F64283CEF; Thu, 17 Mar 2022 19:34:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Xn222Nxk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7698683CEB; Thu, 17 Mar 2022 19:33:37 +0100 (CET) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9407483CD8 for ; Thu, 17 Mar 2022 19:33:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.bossman075@gmail.com Received: by mail-qt1-x82d.google.com with SMTP id c4so5120602qtx.1 for ; Thu, 17 Mar 2022 11:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yIw1kAbJ5ffa5hgwI0WT2Kj2pngQFuZk4pwUIQMT5SA=; b=Xn222Nxksiif1uROX79E+PiRVBpT7pl8glIMBqkGtyuZZzCdgVVfMecWbbVVgtoY+D A9faAV/Rz7fbF/Xage3g2Fmwx2buJ7tm66Sd+QVVe0afBs4aIpkOH2lUXi2NyhxVBvSw bE4FGHNPOqz8sNWRYvTZJP4VOQ4JojVylPfKJAg79U8Axe5M3Lc/HWjny6nxJzYWCKMb S1eNAHRMDjZT+whO0KFtUllJTuXJceTTY6UpFEPNEKo1W+uHAm9dBXIoC+TqAWaooMUd RJQYVKIgBuLwJrLLEaf3x6iABW9EC2mOi8IYDXbr2GmOSLztN01xFTWDC5lIfjKTGc1G ExtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yIw1kAbJ5ffa5hgwI0WT2Kj2pngQFuZk4pwUIQMT5SA=; b=vPfTywezxcN+Vzm6dztVQjykWjt2yK/G9dPAa3J1R3wc+0L8TZ9g8JZwhd4ylLdP3A 9ylVy4WZSYAYU2iiHTsDT6kQ+ZSwzihcRRS5kAHNvyjxQKxNF39GfrrvMKa8lig+Kkpm /ouI3rhM5/tzaSgUQd3aCcDZfjVD9mfjzBNMUK9LGTVi5aLCbSlXUBRfHbZ224oENB4N wZi5zQGjpopDkEbDOPeOwe40Uzr3F06abChR4Pz4owI2hC+dXVjqeRZWOXhN9nmLRZng a3r0diONRyj68oEIQ9J9K+pPG3SANOVPoc29h5LS29d1bU4tDw+KPNip1sCmzI+oNurR KpLA== X-Gm-Message-State: AOAM532mBm0VGBvcl6D+kNq6Bo4GiXf0xFkX+ZxIoBtCMtbr3A4wknoY VBNwOJC55fdcwmrj7toA/u5oUy3ydpk= X-Google-Smtp-Source: ABdhPJzDkyx+cwJANGMzndOhlfHy3dbhXsFB9FxWYet2SUDpCHNpUUAlVq1+/rzaenS4Ux5vO35Fww== X-Received: by 2002:ac8:1009:0:b0:2d7:29a7:5cd3 with SMTP id z9-20020ac81009000000b002d729a75cd3mr4898352qti.426.1647541992543; Thu, 17 Mar 2022 11:33:12 -0700 (PDT) Received: from jesse-desktop.jtp-bos.lab (146-115-144-188.s4282.c3-0.nwt-cbr1.sbo-nwt.ma.cable.rcncustomer.com. [146.115.144.188]) by smtp.gmail.com with ESMTPSA id w1-20020ac857c1000000b002e1e899badesm4223914qta.72.2022.03.17.11.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 11:33:12 -0700 (PDT) From: Jesse Taube X-Google-Original-From: Jesse Taube To: u-boot@lists.denx.de Cc: sbabic@denx.de, festevam@gmail.com, festevam@denx.de, uboot-imx@nxp.com, giulio.benetti@benettiengineering.com, lukma@denx.de, seanga2@gmail.com, sjg@chromium.org, jagan@amarulasolutions.com, kever.yang@rock-chips.com, andre.przywara@arm.com, pbrobinson@gmail.com, tharvey@gateworks.com, paul.liu@linaro.org, christianshewitt@gmail.com, Mr.Bossman075@gmail.com, samuel@sholland.org Subject: [PATCH v1 6/8] RAM: Add changes for i.MXRT11xx series Date: Thu, 17 Mar 2022 14:32:58 -0400 Message-Id: <20220317183300.315173-7-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220317183300.315173-1-Mr.Bossman075@gmail.com> References: <20220317183300.315173-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean The i.MXRT11 series has different offsets for IOCR_MUX, it also can address 64MiB of SDRAM so add a macro for that. Signed-off-by: Jesse Taube --- drivers/ram/imxrt_sdram.c | 9 +++++++++ include/dt-bindings/memory/imxrt-sdram.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/ram/imxrt_sdram.c b/drivers/ram/imxrt_sdram.c index ca2eec767d..d0a88845cf 100644 --- a/drivers/ram/imxrt_sdram.c +++ b/drivers/ram/imxrt_sdram.c @@ -87,12 +87,21 @@ struct imxrt_semc_regs { u32 sts[16]; }; +#if !defined(TARGET_IMXRT1170_EVK) #define SEMC_IOCR_MUX_A8_SHIFT 0 #define SEMC_IOCR_MUX_CSX0_SHIFT 3 #define SEMC_IOCR_MUX_CSX1_SHIFT 6 #define SEMC_IOCR_MUX_CSX2_SHIFT 9 #define SEMC_IOCR_MUX_CSX3_SHIFT 12 #define SEMC_IOCR_MUX_RDY_SHIFT 15 +#else +#define SEMC_IOCR_MUX_A8_SHIFT 0 +#define SEMC_IOCR_MUX_CSX0_SHIFT 4 +#define SEMC_IOCR_MUX_CSX1_SHIFT 8 +#define SEMC_IOCR_MUX_CSX2_SHIFT 12 +#define SEMC_IOCR_MUX_CSX3_SHIFT 16 +#define SEMC_IOCR_MUX_RDY_SHIFT 20 +#endif struct imxrt_sdram_mux { u8 a8; diff --git a/include/dt-bindings/memory/imxrt-sdram.h b/include/dt-bindings/memory/imxrt-sdram.h index acb35bce27..4b3b0c2f50 100644 --- a/include/dt-bindings/memory/imxrt-sdram.h +++ b/include/dt-bindings/memory/imxrt-sdram.h @@ -82,6 +82,7 @@ #define MEM_WIDTH_8BITS 0x0 #define MEM_WIDTH_16BITS 0x1 +#define MEM_WIDTH_32BITS 0x2 #define BL_1 0x0 #define BL_2 0x1 -- 2.34.1