From patchwork Wed May 15 09:09:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florinel Iordache X-Patchwork-Id: 1099898 X-Patchwork-Delegate: joe.hershberger@gmail.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="gRbr13n/"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 453pf35kFmz9s4Y for ; Wed, 15 May 2019 19:09:31 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 85361C21D8A; Wed, 15 May 2019 09:09:27 +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 ED8EFC21C2C; Wed, 15 May 2019 09:09:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D62DBC21C2C; Wed, 15 May 2019 09:09:23 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150077.outbound.protection.outlook.com [40.107.15.77]) by lists.denx.de (Postfix) with ESMTPS id 693A0C21C27 for ; Wed, 15 May 2019 09:09:23 +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=uxifeP6FxjPZyk+QFRrCzJsr0+e2zBnDu5MrfAzfL3E=; b=gRbr13n/qAK+H494hWqmLnBXDT1rzzkM7XFitJC3SpyVkZhcUrpDmstx64uIjxw6VfAZl6zhMUZ/RT1RXmvi4/JedJEL18wMFfuLM92AEiVOhMXdrYzYYsMer6aZvz0lBqTcbUldKzVyqAiIR+GOxntJ7zgeslNCstd2wKPybwI= Received: from VI1PR04MB5248.eurprd04.prod.outlook.com (20.177.51.213) by VI1PR04MB5086.eurprd04.prod.outlook.com (20.177.50.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16; Wed, 15 May 2019 09:09:21 +0000 Received: from VI1PR04MB5248.eurprd04.prod.outlook.com ([fe80::5939:9ed3:e830:221f]) by VI1PR04MB5248.eurprd04.prod.outlook.com ([fe80::5939:9ed3:e830:221f%4]) with mapi id 15.20.1878.024; Wed, 15 May 2019 09:09:21 +0000 From: Florinel Iordache To: "u-boot@lists.denx.de" Thread-Topic: [u-boot 1/2] drivers/fsl-mc: Create Kconfig file to manage driver specific configs better Thread-Index: AQHVCv3ittDiB9HbrkuUC0qmBB2HMA== Date: Wed, 15 May 2019 09:09:21 +0000 Message-ID: <1557911354-30947-1-git-send-email-florinel.iordache@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR07CA0270.eurprd07.prod.outlook.com (2603:10a6:803:b4::37) To VI1PR04MB5248.eurprd04.prod.outlook.com (2603:10a6:803:5f::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=florinel.iordache@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-originating-ip: [89.37.124.34] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e44bb1cd-e0ce-4b56-911e-08d6d915047c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VI1PR04MB5086; x-ms-traffictypediagnostic: VI1PR04MB5086: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-forefront-prvs: 0038DE95A2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(39860400002)(366004)(346002)(376002)(199004)(189003)(26005)(66476007)(66556008)(64756008)(73956011)(305945005)(7736002)(66446008)(486006)(66946007)(66066001)(102836004)(68736007)(4326008)(186003)(478600001)(50226002)(3450700001)(316002)(6486002)(6436002)(53936002)(5640700003)(81156014)(81166006)(14454004)(8676002)(44832011)(6512007)(2906002)(25786009)(5660300002)(43066004)(2351001)(3846002)(6116002)(36756003)(52116002)(476003)(54906003)(2616005)(99286004)(86362001)(256004)(71200400001)(71190400001)(6916009)(8936002)(386003)(6506007)(2501003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB5086; H:VI1PR04MB5248.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: 9FaCyd2RXw6VR6IPlzQeWz/1+d/3YvDDov+4POnKxDg/bgGPx4/J1zzkHPSZC4F7IlbvJibDfFGRj2gLUMq538BodRoBfGyAMP4PVNgnYeEFG3rBihS43DqTgg/znP0cr/RUajVkAUh7QF3bvGpFbZ2Za0L9eV5/icW6rdF464UySFdOWXlpkQAYCqwAQ77G6qOvM/nCACOAKtNhjTcokgmWeUHpXsEuXsufqz8NCMVBb+6bZ/0fNuYeI5AkkpxD71lC61jK9QKuOblc9xOacHHwgDoRnYwamPPT0zeMTGFtWWCeKD+3KXJa1oMNpVkBZs+pRhZ51+tEa9IWXtZu5doCJ1RxyO+wINB/HbgL0eesdTvu0ndW/1lbv+59khYmp6ruRPM7DxNnG86WCI7/5N9xnFlVfLuQCHTS6qbSRJ8= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e44bb1cd-e0ce-4b56-911e-08d6d915047c X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2019 09:09:21.4928 (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-Transport-CrossTenantHeadersStamped: VI1PR04MB5086 Subject: [U-Boot] [u-boot 1/2] drivers/fsl-mc: Create Kconfig file to manage driver specific configs better 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: , Reply-To: Florinel Iordache Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Create drivers/net/fsl-mc/Kconfig and move fsl-mc specific configs from arch/arm/cpu/armv8/fsl-layerscape/Kconfig to this new Kconfig Signed-off-by: Florinel Iordache Acked-by: Joe Hershberger --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 17 ----------------- drivers/net/Kconfig | 1 + drivers/net/fsl-mc/Kconfig | 25 +++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 17 deletions(-) create mode 100644 drivers/net/fsl-mc/Kconfig diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig index f48481f..87f84f7 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig +++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig @@ -226,14 +226,6 @@ config FSL_LSCH3 config NXP_LSCH3_2 bool -config FSL_MC_ENET - bool "Management Complex network" - depends on ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A - default y - select RESV_RAM - help - Enable Management Complex (MC) network - menu "Layerscape architecture" depends on FSL_LSCH2 || FSL_LSCH3 @@ -567,15 +559,6 @@ config SYS_FSL_HAS_RGMII bool depends on SYS_FSL_EC1 || SYS_FSL_EC2 - -config SYS_MC_RSV_MEM_ALIGN - hex "Management Complex reserved memory alignment" - depends on RESV_RAM - default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A - help - Reserved memory needs to be aligned for MC to use. Default value - is 512MB. - config SPL_LDSCRIPT default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 77d0b3a..3627456 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -1,5 +1,6 @@ source "drivers/net/phy/Kconfig" source "drivers/net/pfe_eth/Kconfig" +source "drivers/net/fsl-mc/Kconfig" config DM_ETH bool "Enable Driver Model for Ethernet drivers" diff --git a/drivers/net/fsl-mc/Kconfig b/drivers/net/fsl-mc/Kconfig new file mode 100644 index 0000000..25a2cb8 --- /dev/null +++ b/drivers/net/fsl-mc/Kconfig @@ -0,0 +1,25 @@ +# +# NXP Management Complex +# + +menuconfig FSL_MC_ENET + bool "NXP Management Complex" + depends on ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A + default y + select RESV_RAM + help + Enable Management Complex (MC) network + This is NXP Management Complex menuconfig + that contains all MC related config options + +if FSL_MC_ENET + +config SYS_MC_RSV_MEM_ALIGN + hex "Management Complex reserved memory alignment" + depends on RESV_RAM + default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A + help + Reserved memory needs to be aligned for MC to use. Default value + is 512MB. + +endif # FSL_MC_ENET