From patchwork Thu Oct 11 05:22:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priyanka Jain X-Patchwork-Id: 982259 X-Patchwork-Delegate: yorksun@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="HdZhgzcy"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42Vzr74bBNz9s9h for ; Thu, 11 Oct 2018 16:22:47 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0A44CC21E08; Thu, 11 Oct 2018 05:22:41 +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 3966DC21C29; Thu, 11 Oct 2018 05:22:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 17921C21C29; Thu, 11 Oct 2018 05:22:36 +0000 (UTC) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70045.outbound.protection.outlook.com [40.107.7.45]) by lists.denx.de (Postfix) with ESMTPS id B12B3C21BE5 for ; Thu, 11 Oct 2018 05:22:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MkoxmBj2Xqq3mGQ77JLdGTIsFaFEiP31H7M5XahSkSs=; b=HdZhgzcyQp30ft1+F8MMGy3kRUA+M7GoVHsKI5HF+AaffnBPnRaSx0MbRITyikqFZhnIxEhdBNVaeavGl3UgqQ54B/1si5S6lCYlQ/7OPxkaQCv81rLFZqsybxYUEHyXTQxsL8/W+4df3FgZ3E35QrO7APDcWA8Vbz5ftu78yBk= Received: from VI1PR04MB4942.eurprd04.prod.outlook.com (20.177.49.207) by VI1PR04MB3246.eurprd04.prod.outlook.com (10.170.229.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.28; Thu, 11 Oct 2018 05:22:34 +0000 Received: from VI1PR04MB4942.eurprd04.prod.outlook.com ([fe80::5e6:9297:95e9:4775]) by VI1PR04MB4942.eurprd04.prod.outlook.com ([fe80::5e6:9297:95e9:4775%5]) with mapi id 15.20.1228.020; Thu, 11 Oct 2018 05:22:34 +0000 From: Priyanka Jain To: "u-boot@lists.denx.de" , York Sun Thread-Topic: [PATCH] board/freescale/vid: Add vdd table for NXP LX2160A SoC Thread-Index: AQHUYSJqqp7IaqA28k++y9/kr7TwYg== Date: Thu, 11 Oct 2018 05:22:34 +0000 Message-ID: <1539235250-21282-1-git-send-email-priyanka.jain@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR01CA0091.apcprd01.prod.exchangelabs.com (2603:1096:3:15::17) To VI1PR04MB4942.eurprd04.prod.outlook.com (2603:10a6:803:57::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=priyanka.jain@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB3246; 6:gvpWN0I77ieIErjdJ1g+1ID/yLMfyxHACuf9dJpfxbiKLd6T7XjXEKhFLRo/s3MirIgnRTOaGhtjiCvec8WG/p0HLcm4mjqDte0fRijDlduaW4NYmJKX8NGh9QBBkXFY5wNLzj84j47i12ViFeT4LLzARXHm3MlZIoRvCxgXJSD099Jhe/vYy3r68F76qxDZYMA8GKnzUuqP7knu18b3uo+Cwk3ihTgxsMUVLh3Iuks8WyPHqvt632eWs8z0TngL2kth7HLPWkgRkSj5psLVyjYFC5oii14UuWcSaJUvUqje5DHDtiMbHmhMpYtrk+WTpe+3t8zcie8VwTWw6QHPbcm2j4wiGozm95YrxVg+ZZbbVCArQxU3lMshCEH/XNImo8TMFpeUwsuberoI64s6Y9rWksjdGRJj75Pf3FgYU7bJ1xr3WMqizLhpurIJJHlr8AJqLO1T4Ws9vuFn28VVvw==; 5:X9cByWyAeKLcRkRT3hbY8vPc8vB4tmiR2E8PHSs7SmGPJbGiQN5K2KZ2M2iC45Z3MBqoUOs4RNi+eO1+jZQD1LK2sq7LkOcpVCH8fGX/0ivXW+V35MngHpXK6bPvaEbxSZJXdTnoSRxOk0oqqQmBO3Xfe4UlrusBLlPThi3A0/U=; 7:q0kYH5Hlmsgj2mnqNkiAmynXv1EiWeV2Zc68qd1CD5CIgCKRf+DxuHdJ3fstrskyStnqqHXAAvL2nrj6Pr6HTOGn5uSnZtSkpd/8fM0iLdvjOgJhj8dfDaRVed5NllA0iI+lH71My3o9CMGV2NJFKvoeTjcVvYUQl/51Pkeu8iwiuT9BdQqrqaP6ajQe3KDy15I8jU60vZhLHRrJmE3EFKrN5LPgdMTqihiicBHMg+YpvXsk3ypVkJGoYXs/4ecJ x-ms-office365-filtering-correlation-id: c648ce96-9481-4892-cc34-08d62f398c67 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB3246; x-ms-traffictypediagnostic: VI1PR04MB3246: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051); SRVR:VI1PR04MB3246; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB3246; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(346002)(376002)(39860400002)(396003)(199004)(189003)(97736004)(36756003)(68736007)(4326008)(2906002)(71190400001)(71200400001)(26005)(55236004)(186003)(102836004)(478600001)(316002)(66066001)(86362001)(14454004)(486006)(8936002)(81166006)(81156014)(2900100001)(476003)(2616005)(25786009)(5250100002)(44832011)(8676002)(52116002)(106356001)(53936002)(99286004)(1857600001)(6506007)(6512007)(386003)(2501003)(5660300001)(256004)(7736002)(6436002)(305945005)(110136005)(6486002)(6636002)(3846002)(105586002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB3246; H:VI1PR04MB4942.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-microsoft-antispam-message-info: SmGem/AjHBrQxTPgkGO94hxxU34ND60kcxp4Q6kJW2hCpky0VetTuVrUiQA7hi09QnMGF8fh70KrB80XGFfZTuFfkXnEnA1WlsDGMfS6Toi74TRUNxuz08jrrkGzqVU+t1GCWfOO1LNBbT2d/zAl4zSCvd+eMgMRBOzw7HmwLgrKJiar3HzxuhQ04VJKCl4dq3Nr0LNZOSzBdmuFN/PhMtChu+FtoLPMubbBy54TFrsWWiJqoSEbJrQ7IRbOZLBlqmV9jba3Y85e4pjJfy6XSxg1555KXJXBRuSNkYxp0ArpgLeme6LL3SE+JOhhluQ0cYJnO7DslYlFhG/ut5Nsa0XE7gXSzH8nxb9F6deeYQk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c648ce96-9481-4892-cc34-08d62f398c67 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 05:22:34.1892 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3246 Cc: Priyanka Jain Subject: [U-Boot] [PATCH] board/freescale/vid: Add vdd table for NXP LX2160A SoC 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" Signed-off-by: Priyanka Jain --- board/freescale/common/vid.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c index eb5cf88..8d90135 100644 --- a/board/freescale/common/vid.c +++ b/board/freescale/common/vid.c @@ -379,6 +379,42 @@ int adjust_vdd(ulong vdd_override) int ret, i2caddress; unsigned long vdd_string_override; char *vdd_string; +#ifdef CONFIG_ARCH_LX2160A + static const u16 vdd[32] = { + 8250, + 7875, + 7750, + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 8000, + 8125, + 8250, + 0, /* reserved */ + 8500, + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + 0, /* reserved */ + }; +#else #ifdef CONFIG_ARCH_LS1088A static const uint16_t vdd[32] = { 10250, @@ -451,6 +487,7 @@ int adjust_vdd(ulong vdd_override) 0, /* reserved */ }; #endif +#endif struct vdd_drive { u8 vid; unsigned voltage;