From patchwork Thu Jun 20 08:19:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 1119259 X-Patchwork-Delegate: prabhakar@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="M89ESq51"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45Tvzg0DDlz9sBp for ; Thu, 20 Jun 2019 18:26:23 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B1F48C21E07; Thu, 20 Jun 2019 08:25:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7C01FC21E18; Thu, 20 Jun 2019 08:21:53 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 48D19C21DD7; Thu, 20 Jun 2019 08:20:03 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140081.outbound.protection.outlook.com [40.107.14.81]) by lists.denx.de (Postfix) with ESMTPS id C173DC21C4A for ; Thu, 20 Jun 2019 08:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ok8IzkhFmMw34hYkywXQO+X1Do7N6/gp+AYiaksztnE=; b=M89ESq51mxvPJTy6M7NCFHCCL0a1vYr596UL9oxM6bMQMJ6ci6MJEeTRMKzttzYemBaK37KYFregSTw1jGUN1mnyUV+xLE3UfGc+WdxRRkls2acCJz0kDKPoTBLsxTISyqvBAg+vesYRZ5grn2f+MScDKjRhqBcKp3nXGpMcn6w= Received: from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by DB8PR04MB6924.eurprd04.prod.outlook.com (52.133.242.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.12; Thu, 20 Jun 2019 08:19:58 +0000 Received: from DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::93a:4344:1120:4ca0]) by DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::93a:4344:1120:4ca0%6]) with mapi id 15.20.1987.014; Thu, 20 Jun 2019 08:19:57 +0000 From: "Z.q. Hou" To: "u-boot@lists.denx.de" , "sjg@chromium.org" , Prabhakar Kushwaha , Shengzhou Liu , "bmeng.cn@gmail.com" , Jagdish Gediya , Jiafei Pan , Priyanka Jain Thread-Topic: [PATCH 11/13] powerpc: dts: add default definition of CONFIG_RESET_VECTOR_ADDRESS Thread-Index: AQHVJ0DyC0thtJvmmUqRGiCB6jwXsg== Date: Thu, 20 Jun 2019 08:19:57 +0000 Message-ID: <20190620081751.24846-12-Zhiqiang.Hou@nxp.com> References: <20190620081751.24846-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190620081751.24846-1-Zhiqiang.Hou@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0P153CA0001.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::13) To DB8PR04MB6747.eurprd04.prod.outlook.com (2603:10a6:10:10b::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cc81a0b3-2c0c-4f65-4f35-08d6f55814e0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:DB8PR04MB6924; x-ms-traffictypediagnostic: DB8PR04MB6924: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 0074BBE012 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(376002)(346002)(366004)(136003)(199004)(189003)(68736007)(386003)(446003)(2906002)(4326008)(76176011)(6436002)(256004)(3846002)(5660300002)(14454004)(102836004)(2501003)(26005)(6506007)(25786009)(36756003)(186003)(71190400001)(71200400001)(478600001)(86362001)(305945005)(6512007)(486006)(476003)(64756008)(2616005)(66946007)(66476007)(8676002)(66066001)(11346002)(6116002)(6486002)(66556008)(66446008)(110136005)(73956011)(52116002)(81166006)(81156014)(8936002)(50226002)(7736002)(316002)(53936002)(1076003)(6636002)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB8PR04MB6924; H:DB8PR04MB6747.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: GLYEHuOZSEpmyZKFxg0ULY1zQP6mfR4wNAY3qDzaIqZP34915Mre99L/o0+F9qfk0+tlwwhFtBWdbmYzpeecl1Twu7tQ0VCFTSWPlQKRQjsPy2L2Wi/8kNKJg9xdZpjUkACIwvrSsspK/15rWedbjyUI89AGMwxUI4RouDqDSuzSmHBoCHVYtp+5lRNcdYviaDxKv6H+rBuePYzfo659i5jg0KsbuXXImj3l5BQNim7Qhj54KsK3pqDd4ELCkZXBUehp+QWY9uPBxMwPZo4TvDXphh1hSj8UmqX/7rkfwwTq8Kqxwm1eT5aeiYPp1ZSTgQOidDDCbuPq6x3v95/ci7PyfoVKY1iF2+YtcYBAmPkURjGN9aJMU/65RvM5TPAye4g0w4UeteYZiiYfKnASBBfm7iZS6IC5aM3WyHo6FTE= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc81a0b3-2c0c-4f65-4f35-08d6f55814e0 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2019 08:19:57.8274 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zhiqiang.hou@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6924 Cc: "Z.q. Hou" Subject: [U-Boot] [PATCH 11/13] powerpc: dts: add default definition of CONFIG_RESET_VECTOR_ADDRESS X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Hou Zhiqiang Add CONFIG_RESET_VECTOR_ADDRESS definition with the default value in u-boot.dtsi to fix the build error below. In the configuration header file of some MPC85xx boards, there is not the definition of CONFIG_RESET_VECTOR_ADDRESS, while CONFIG_SYS_MPC85XX_NO_RESETVEC is also not defined. In this case, it will lack of definition of CONFIG_RESET_VECTOR_ADDRESS in u-boot.dtsi, and the address 0xfffffffc will be used as the boot page by default. Error log: DTC arch/powerpc/dts/mpc8548cds.dtb DTC arch/powerpc/dts/mpc8548cds_36b.dtb Error: arch/powerpc/dts/u-boot.dtsi:28.15-16 syntax error FATAL ERROR: Unable to parse input tree Error: arch/powerpc/dts/u-boot.dtsi:28.15-16 syntax error FATAL ERROR: Unable to parse input tree scripts/Makefile.lib:308: recipe for target 'arch/powerpc/dts/mpc8548cds.dtb' failed make[2]: *** [arch/powerpc/dts/mpc8548cds.dtb] Error 1 make[2]: *** Waiting for unfinished jobs.... scripts/Makefile.lib:308: recipe for target 'arch/powerpc/dts/mpc8548cds_36b.dtb' failed make[2]: *** [arch/powerpc/dts/mpc8548cds_36b.dtb] Error 1 dts/Makefile:38: recipe for target 'arch-dtbs' failed make[1]: *** [arch-dtbs] Error 2 Makefile:1038: recipe for target 'dts/dt.dtb' failed make: *** [dts/dt.dtb] Error 2 Signed-off-by: Hou Zhiqiang --- arch/powerpc/dts/u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/dts/u-boot.dtsi b/arch/powerpc/dts/u-boot.dtsi index 213d543c6d..9661f4dc88 100644 --- a/arch/powerpc/dts/u-boot.dtsi +++ b/arch/powerpc/dts/u-boot.dtsi @@ -24,6 +24,9 @@ #endif }; #ifdef CONFIG_MPC85XX_HAVE_RESET_VECTOR +#ifndef CONFIG_RESET_VECTOR_ADDRESS +#define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc +#endif powerpc-mpc85xx-bootpg-resetvec { offset = <(CONFIG_RESET_VECTOR_ADDRESS - 0xffc)>; };