From patchwork Sun Jan 3 10:11:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 356137 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp14223299jai; Sun, 3 Jan 2021 04:28:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJztOS3XnY9PzL3g+r9QzJ0hgXZFdmcIRiSfZvknD97M17hNDBJY3IcIi5uWPi9nAOAWBjXa X-Received: by 2002:aa7:d3d4:: with SMTP id o20mr11732401edr.190.1609676918249; Sun, 03 Jan 2021 04:28:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609676918; cv=pass; d=google.com; s=arc-20160816; b=TKSNhakBYpgQ/9G1EwqtI2iXAcxOchdMJi5vxSKILMURaAhqu77xyHwulHtNDN0r8H z1xyD/DGWpC+dPyG+7Gp+fSsfKCzuii1/IkFjJtY/zO5K7EuVP3G/UWEQff3tQuZhg9w 0k1vWOq8zSLeRx40fXS2n7eXO3myE1EgKR8kXpiCPhapDXs+pa4y+zOn+lBTaMjZl0MG O6bBLz9+Zcnt4ua0IMxF9JjznqRMoxL2O+f/5Qy0Z546erF9I1OaQWAX5sWT/maGgIdI CMVLoamVTZL09yiTuLEY6NdVSeZ+5JAdGwRWqhkwZRnc26vndIfRmIMs7oRUXIrP/xXA u92g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=t6gZeDyCZd9t5aFBNYIFRU+D87Z4Sm14+hYnUdEeWhA=; b=ysmIjxgjb+gqx8E3tuU1srhBIPVsnwL8Byy6P1lGtlq4zDGN/M2P5+MnMXItGTW7Lz H11vNBwtx6azaKFealNeRFBpSPskT2pfYFMdCgcfgDgUixKq4FWkSyhTQl1v6toqSToY mMxUk4zEJtOrAuY79JAueuRTCykb8W7a6m3UEG5iS3yYzVZXrL1p2fsDvZNovE9Rg3ml sTOdJr6FO6OI6sS9VnOMiMVK8cHFgLaUiFwhAHXYfRG0tVHnsc4YnuCIp3vcyrvoAtQr zJluhj50k0xCGEAh1KMPfQhHMP3hI4h+bCbwrBzdhQzJKoWl3iT1WVDcyJj+gDirLKRt HFUw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=HN6hGJl7; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id dk11si30174686edb.594.2021.01.03.04.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jan 2021 04:28:38 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=HN6hGJl7; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 899D98264D; Sun, 3 Jan 2021 13:28:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="HN6hGJl7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BD3D80829; Sun, 3 Jan 2021 10:43:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20605.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::605]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2464D82429 for ; Sun, 3 Jan 2021 10:43:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bDvw1q26qGfLdjscU12/+Jg1ZYfqmcmuDq23bYUrFvjKWF2+FonajdyZ7w9izxmCsZJzcFA6SznTD0s0RJkQXvcJdxUiyGnnmdGWrztnfbWw4oO13AQ6INb3crT5x7kqyrAu6TV5zK8c8lC0/oE112ASGT3N9CQxheBXYqUM9jSXGKR2KnOH3mfAcPZ4hlbJttoDCVjlUPQ+3JvZevca43f5ch9eFfazdjF+9Q6AS+HViK8onAjLnFiEG8VphSPyj4kNj7RbZXFUYRhxhYYDM8gUbAf6X/9XS574+uSUM2tNUfkbMl7adI8OiNkbEOECAibBs9oWnMVUAexZPPeL7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t6gZeDyCZd9t5aFBNYIFRU+D87Z4Sm14+hYnUdEeWhA=; b=W1HKyHklpbW0c40Hcl1NMuF52oTxl3CrIiJz6QYOjX5IsKsLdNXtqZm3ZnxJWmeGzABM2Ieb7GYtLIZR9MS7+TIfi1PPtIdslj+VGV2QgansdFIhZZxwdFVsa+mzBwgZCoQSXCy/ZyxCn6vdfFxHS3wVE/weCi2HanaFBj0EMc8jP9abbMWcLRw1ghzuAfqH/+00W2RfZue47ee3WHvy22ZTIw6NON66VB0zT4ovHUIDGQk90Bkmll3mOYKKTKqqGR4Ah1ediwQiWlc/NghoGoMTgCs70RZ2RCvPS6yQJVYHuuqgFD8t36DWSKbXGsHK8BRgJvLzEcr+QM7t+eVmeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t6gZeDyCZd9t5aFBNYIFRU+D87Z4Sm14+hYnUdEeWhA=; b=HN6hGJl7oqzkDru590sLFuNGHQourUCWutomQWE6MtWLy4EF6KogiXs610NDkejhoA/DNQ74ItiZzzZRtoqnCMrRD+8UJzFCSDcePOLai8sQioFEB81EXbc1CiQ8ZzZq4Gu2VBWBhOuf8sTWy4/KVps9hMO4rlpPPhHUU0kOzro= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DBAPR04MB7302.eurprd04.prod.outlook.com (2603:10a6:10:1a5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.23; Sun, 3 Jan 2021 09:43:01 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3721.024; Sun, 3 Jan 2021 09:43:01 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan Subject: [PATCH V2 04/12] imx: imx8mn_evk: correct stack/malloc adress Date: Sun, 3 Jan 2021 18:11:36 +0800 Message-Id: <20210103101144.4375-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210103101144.4375-1-peng.fan@oss.nxp.com> References: <20210103101144.4375-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2P153CA0034.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::21) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2P153CA0034.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.0 via Frontend Transport; Sun, 3 Jan 2021 09:42:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c51643d3-621d-45b2-1595-08d8afcbf5ce X-MS-TrafficTypeDiagnostic: DBAPR04MB7302: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:242; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rKQDlwylr0jLGSyDW+4lVayJ7YhVqcmcd5vQVL7uhvd2Xw+QMFwma7GFlp3tyq+EmkvQTOExna73Ih1MOp4oGYwsAofH/EbiUw0Q49ffE91wRt52xmBK0dOIN4mBn8Q8HZYvlwzhgHegx7Qg5hr84fP1FvzXxLkyWywXR48BUsJUZ7dtoRaTQfk0NwaYNEKHTadRB9ht0A97S+BXYQakjlB0eYyQjiXtiajmL67LYaI4K3BAYnNe/xeid2DH80ysRdT1v1DLm3qRBHywpzfT9SIZ6yzutUv8gidPf2KW8pJwuwndImBCG2/xtG1ahLaz1sx+GqQEQY4B6wFuX3wbCvU3xMdDxZEdJPUVG7LyvrDtSDub+icRNZkKrvx84gqfvk4cI3USjOakivmaUeGx3Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(376002)(396003)(346002)(39850400004)(66556008)(52116002)(66476007)(66946007)(6486002)(316002)(956004)(2616005)(16526019)(4326008)(8676002)(5660300002)(186003)(26005)(86362001)(6506007)(8936002)(1076003)(83380400001)(2906002)(6512007)(6666004)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: PowWz//QDSI1WK9jKzPjty4CDWNrMIWeb2EzFieATNzqL0iEBDn8WxcJ54yB/ZMseRedfx3F62gP4kkctM2n2okVtz+XfnQjJaSCJRP1rESwFsGsWxO2HXvRWfLgucewtRN+NcwiGEjMkuCiW9CWNNxL4XaTUUq+dd0Q+ixfVxWOefCL9EFD9v74ujr4Zd7TF91SNTMtapaNNPLxR/PJIJfSk3HL8iTb/nLrIHcJxcW+Q14zk3Ibl3FNFuuHXSoMUgrh8PRj5CH3h34a/jti5AqeCjUudvoPVrpimwmx8bFniv+ty9e/5tzPSe3SgKOmQA1aQfmW8O95dk4x6GamQDQiXDbIy/NEAq0L4v2JfiYddX0R5whMXbjJjriU6jxeQ3GlHXb0DifHDWb4veMMn9z7cA4TbkXMepfIpovOhwdSb2HJ9BsKDjtMntp2LZ5lw67r9JXS6JTVjHgkQAMH0G7jOueGBshqTYllEg0gWFEAqxlXkUEenlgoOYe19vGs0eKAMLp2VjjSBKraYV1GO35M1wQKKyMQrBVFRJALSqvu0lp71pCffeTqweg4NztShd1mJz7/GFJwgvOUG5NAdLEesE1LsPUEVvcSyUdLeM+2mc9FlMiVG/+raWlIK1ZP7R/QtOdIn9P8Mt/5V3f6ZoKHvZUid6rVbusdMl2NE913taCnu3GtgO/za095KJDrV5BfJ1wQ/yCcMkdT/OAMwsK4dIPvbYM3jVi4cwgtijRnyfeMdSpj+Ifl2rM1nJntiYr2cgg2ItUX0RaJBXFDwRw4oM96E6oM/IeXA8ZIArMOpAGIeTwMN9/xqH0T0ud+C8j2gRGqtTv0vLv2Uj5upuMqfXvNxfhQiFdjCDjyOrmqaekpc1O87BRC/PVh+aCxvgd8hRlY7l7VI4YwT+p4K8Yt0ywN1hbngt0prs9OqhhEEFkTj1U8wW8Rodz2DmG2sTkgCXsGAXTNgoJlbrtvRXbGqk2loVZHzL8zslvMd87KuKjGvRFJuwYiVNy66OCq X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2021 09:43:00.8711 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: c51643d3-621d-45b2-1595-08d8afcbf5ce X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cuw4C1LQZc4jVpkGQZJbrC3KCRAJkvT0vKSrUQ4mt3baOyUQd+wF7gGA4OzGzAkOVTYZE6HLJcjC6+Iewhb4Qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7302 X-Mailman-Approved-At: Sun, 03 Jan 2021 13:27:56 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Move SP to end of OCRAM space. Drop MALLOC_F to make it alloc from stack space. Signed-off-by: Peng Fan --- V2: Typo fixes drivers/power/power_i2c.c | 8 ++++---- include/configs/imx8mn_evk.h | 7 ++----- 2 files changed, 6 insertions(+), 9 deletions(-) -- 2.28.0 diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c index 5a0455e119..b67ac2f027 100644 --- a/drivers/power/power_i2c.c +++ b/drivers/power/power_i2c.c @@ -23,7 +23,7 @@ int pmic_reg_write(struct pmic *p, u32 reg, u32 val) if (check_reg(p, reg)) return -EINVAL; -#if defined(CONFIG_DM_I2C) +#if CONFIG_IS_ENABLED(DM_I2C) struct udevice *dev; int ret; @@ -67,7 +67,7 @@ int pmic_reg_write(struct pmic *p, u32 reg, u32 val) return -EINVAL; } -#if defined(CONFIG_DM_I2C) +#if CONFIG_IS_ENABLED(DM_I2C) return dm_i2c_write(dev, reg, buf, pmic_i2c_tx_num); #else return i2c_write(pmic_i2c_addr, reg, 1, buf, pmic_i2c_tx_num); @@ -83,7 +83,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val) if (check_reg(p, reg)) return -EINVAL; -#if defined(CONFIG_DM_I2C) +#if CONFIG_IS_ENABLED(DM_I2C) struct udevice *dev; ret = i2c_get_chip_for_busnum(p->bus, pmic_i2c_addr, @@ -131,7 +131,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val) int pmic_probe(struct pmic *p) { debug("Bus: %d PMIC:%s probed!\n", p->bus, p->name); -#if defined(CONFIG_DM_I2C) +#if CONFIG_IS_ENABLED(DM_I2C) struct udevice *dev; int ret; diff --git a/include/configs/imx8mn_evk.h b/include/configs/imx8mn_evk.h index a6333085fe..92f435f578 100644 --- a/include/configs/imx8mn_evk.h +++ b/include/configs/imx8mn_evk.h @@ -20,17 +20,14 @@ (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512) #ifdef CONFIG_SPL_BUILD -#define CONFIG_SPL_STACK 0x95fff0 -#define CONFIG_SPL_BSS_START_ADDR 0x00950000 +#define CONFIG_SPL_STACK 0x980000 +#define CONFIG_SPL_BSS_START_ADDR 0x950000 #define CONFIG_SPL_BSS_MAX_SIZE SZ_8K /* 8 KB */ #define CONFIG_SYS_SPL_MALLOC_START 0x42200000 #define CONFIG_SYS_SPL_MALLOC_SIZE SZ_512K /* 512 KB */ #define CONFIG_SYS_ICACHE_OFF #define CONFIG_SYS_DCACHE_OFF -/* malloc f used before GD_FLG_FULL_MALLOC_INIT set */ -#define CONFIG_MALLOC_F_ADDR 0x00940000 - /* For RAW image gives a error info not panic */ #define CONFIG_SPL_ABORT_ON_RAW_IMAGE