Message ID | 20200519220117.24448-6-rasmus.villemoes@prevas.dk |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=GwGPPZSL; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49RVHM6bPsz9sT6 for <incoming@patchwork.ozlabs.org>; Wed, 20 May 2020 08:02:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B48D81E4F; Wed, 20 May 2020 00:02:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=prevas.dk 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=prevas.dk header.i=@prevas.dk header.b="GwGPPZSL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 55D2981E28; Wed, 20 May 2020 00:01:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0718.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::718]) (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 31FF581E36 for <u-boot@lists.denx.de>; Wed, 20 May 2020 00:01:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gqvkzf9isCizCfmz7lBykdjNfh+l7FrqlO4wk+/OZ+6gybzlDiARAHlCDZzVFwaqqiO2RcTssaGMIE3eY+13M6kOCjity0vCTpNwypoenZlLdsZnIpU5DXT/zNMS9yrfKqDxHKMULs792n/IX9w9LdFrmdmQBhY/Sm+LCxG11AtDpoz6cPwSgec23+dkYsxYCH1/j8i17Z6LDAOaP87yPLJ0k6hkLCVXiNMji55afI5fDbQ0A+Vo1McHjuPHCBEUxRFy0krNeCBk1aaF2p1ysqub6wXHxxScQ1ofTFc3Mylk1RZMXy1GoUrdz0PN26xnHQbdzOQKsIQ8nstV4k3mLg== 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=Ji1WsWuJXmfZDwZCmzC428dhGhM16h4UOVgRQrctP68=; b=S3Ivhjh3dK58116OT+51wkGebr7PlDmGFoit6wjstnlq+V3QfSPBAoIQyinI63YYjMLsSKxz1jzl4fLqsZ2pigwsFK6LxQ4WzdJAqQEnC4T2Gcb/JU4LuyWm88B+x2N3cNQPVbyDggOOF2HaLmxhZ9E6N0ZmCa1BZEXzGVsfwciwxyjVF0REvIOKxO8/jV0aKH9lVgg3Rq0nTA3VX0USPCHINvOd7lU7UzQRbfkPG9QLnF9RyeuYbh/bEbIYsLI2ZsH9f3wSqxBufHrylaMKT8c2XW2efbdUCMt8+sHbz5qqYDqvBcEebKNTs4c9xS6J+I1ADiHCi4C4MryR0Eua1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ji1WsWuJXmfZDwZCmzC428dhGhM16h4UOVgRQrctP68=; b=GwGPPZSLj3+NhZdOdn2wUTEpREenfzBZu/y473Oajk4NwfUZZlXU8Ug9L5u91HMrMyZUczme0B4xGE1nagK7vo2qF7CpwzZr6uzAnQ0Ir4TsNl0eqFSaIfY6fAcc7HGOh9DTT6Rd/t4bL3f+xkw8l9Vbnwb8ED3uszMEAZE/Nm4= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=prevas.dk; Received: from VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:e1::21) by VI1PR10MB2061.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:3a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20; Tue, 19 May 2020 22:01:30 +0000 Received: from VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM ([fe80::f0ac:4e97:2536:faa]) by VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM ([fe80::f0ac:4e97:2536:faa%7]) with mapi id 15.20.3000.034; Tue, 19 May 2020 22:01:30 +0000 From: Rasmus Villemoes <rasmus.villemoes@prevas.dk> To: u-boot@lists.denx.de Cc: Simon Glass <sjg@chromium.org>, Heiko Schocher <hs@denx.de>, Biwen Li <biwen.li@nxp.com>, Rasmus Villemoes <rasmus.villemoes@prevas.dk> Subject: [PATCH v2 05/10] rtc: pcf2127: provide ->write method Date: Wed, 20 May 2020 00:01:12 +0200 Message-Id: <20200519220117.24448-6-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200519220117.24448-1-rasmus.villemoes@prevas.dk> References: <20200504212032.3759-1-rasmus.villemoes@prevas.dk> <20200519220117.24448-1-rasmus.villemoes@prevas.dk> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM5PR04CA0032.eurprd04.prod.outlook.com (2603:10a6:206:1::45) To VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:e1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prevas-ravi.prevas.se (5.186.116.45) by AM5PR04CA0032.eurprd04.prod.outlook.com (2603:10a6:206:1::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.26 via Frontend Transport; Tue, 19 May 2020 22:01:29 +0000 X-Mailer: git-send-email 2.23.0 X-Originating-IP: [5.186.116.45] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df2a3ed4-ea4c-44dc-24fe-08d7fc402f73 X-MS-TrafficTypeDiagnostic: VI1PR10MB2061: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR10MB20614487A47721D2BF7A301193B90@VI1PR10MB2061.EURPRD10.PROD.OUTLOOK.COM> X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-Forefront-PRVS: 040866B734 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wfS+5Txy2hnM0CWiFdf1JNnxu4IGXI1l0mZ1e0ILIYoMVwt5Hr6FLMDjxrQyd/zHAz6mMg2agAPyuYFvOef7QevYr8Lke0XGYMidjgp6y7sWPsxBFvFpxqShr/si7L+klhdRgFhoY0iXQ69BFQqN0Jrne4zwfgpGKvenckc3P62djU1Tsq3iwP9XzWrZhV3ROfPZdw/2moxhn3Q+9vvFzKlhPYsnVlpnyN48Bnk2K/eSG60o4Fv6BRhDHUpHSyGyqxpHFigCFwbLzvnErKMdQ6So5uCrizgUo95PcOLgtp/2pYe7bxVCa2YiToyy7Sfdw2PPtlmvUEzWrfT4xw+8OfCxkKQGKkSHujh9J9nCgrOO3rV5Ogs9VIWkyW2vrL4m4yvvcsBp3L3CH1RfHnZL7YIGcUWG1G4b6gCfMgmR20mBmXhoy9lrfpNFis3nvWhr X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(396003)(376002)(366004)(39830400003)(346002)(136003)(6486002)(2906002)(86362001)(4744005)(186003)(16526019)(26005)(66556008)(2616005)(66946007)(44832011)(66476007)(956004)(1076003)(8976002)(6916009)(6666004)(316002)(5660300002)(107886003)(54906003)(8676002)(6506007)(478600001)(4326008)(36756003)(52116002)(6512007)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: v/U2ohhbUZYjrVesk/n2FV4ZfhuskFCPktD8xU0SYK9CmQEZa8x03/aXsl+P9+5Icli3NLkTUITxByJWSLwKm0v+9Q1J8SN2KQPm2VCoPfJlfTH82bSlWrkI2lYLp+Bs2xrR5ddWLJHBOJdeVpz4J+mJemgbk8OdbiUhEuB6EsSM/MHEb+mz5L6P/A/NnTogv4ClWLQJi9HLZHdzVzHb4/87XQSVopG/WImjalyvQGxX5J1/Icgia9yZrpbixEsvK0oV8ZvqmH/YsdTcDVpg3OzKWHtksvq1iBtKouLlVQhrJ53ldlrmvHP/tvOMziOtymmfJmnXhYRcSWFCIBHpfyJjTMRVnQNuh/PArOPcrrMLv2DQb3GK5gC4ikNkz2R+T+Q6rIjfq0PoR3dkieA0emREehtKL8b4Paofisk2dlEGTcZ8Yv8OtJyNPqSj6UF3rsShF3eedIfRuYDghNn4v6Vrqh2dxRmvUmBdi+zJoJQ= X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: df2a3ed4-ea4c-44dc-24fe-08d7fc402f73 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2020 22:01:30.2445 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hYRAGqJtxGr4hYZLhwGot3ySgYY1/Te2MfFe7pl6NLY/MTDUy0hBg9qOQ5DAKSmJm0PJowpcszH8YgNLL5ZiWpPlG6Wt56G6GE/lH97EK68= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB2061 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
new rtc methods, rtc command, and tests
|
expand
|
diff --git a/drivers/rtc/pcf2127.c b/drivers/rtc/pcf2127.c index f48cd8cb18..a3faf62ee0 100644 --- a/drivers/rtc/pcf2127.c +++ b/drivers/rtc/pcf2127.c @@ -42,6 +42,12 @@ static int pcf2127_rtc_read(struct udevice *dev, uint offset, u8 *buffer, uint l return dm_i2c_xfer(dev, &msg, 1); } +static int pcf2127_rtc_write(struct udevice *dev, uint offset, + const u8 *buffer, uint len) +{ + return dm_i2c_write(dev, offset, buffer, len); +} + static int pcf2127_rtc_set(struct udevice *dev, const struct rtc_time *tm) { uchar buf[7] = {0}; @@ -109,6 +115,7 @@ static const struct rtc_ops pcf2127_rtc_ops = { .set = pcf2127_rtc_set, .reset = pcf2127_rtc_reset, .read = pcf2127_rtc_read, + .write = pcf2127_rtc_write, }; static const struct udevice_id pcf2127_rtc_ids[] = {