Message ID | 20200706200120.23093-6-rasmus.villemoes@prevas.dk |
---|---|
State | Accepted |
Commit | 29f965a7ec2bc32be3282eac0645b6e5ea2112ab |
Delegated to: | Heiko Schocher |
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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=YoBOHpSt; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4B0xLf0sr4z9sR4 for <incoming@patchwork.ozlabs.org>; Tue, 7 Jul 2020 06:02:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DE53C81BAB; Mon, 6 Jul 2020 22:01:39 +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="YoBOHpSt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3159181B93; Mon, 6 Jul 2020 22:01:35 +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 EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20719.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::719]) (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 269AE81B63 for <u-boot@lists.denx.de>; Mon, 6 Jul 2020 22:01:31 +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=T/GI9zHlqbu9bkRJ/li6UPMcXM0t6eChrZivR9ClIsmMAMsf7KgMAzT5euHAgN2L4aTWEkEKexQSq/aETK2AcNyDEX4Wrb0Dynk7q7W52nHh4qKOS18H8Oq2YCsJ/qfZHOGmj8a+O6ZKOO6gBuVyKTKuEXK17HHBO1tCdrJg3AQztML5f0repQ/VFi2HOMqroq8F/lodZDrOGNGXM8HgutBGWJNRtQox+loRPbPIZKfPcuCMuZUYERiuzgphBSZXqUv7r9esr4pPi1SqM7r/jw1qoOUMCkODPo8meiTZ0HFN4uM2p5QPl3HjTdTbh5xbIYp1WVO/zcVk3h5H6d0a+Q== 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=0lVlPQ30d8lhL/chxraZgP+ziIvSrKCX/YiiMyIYRBo=; b=hPE4xVs6raQZMi3Belgoxjuw68oId37fC6aa74SeJKtr/XfEt0i1NBH9TgpbCcL1WKJrVUAylmLmfpI+Db3YKFvenS5SjlFiF1oTthsUwRwFsIyiOdmEWg7sRX6dmtLfcQYvoSopS7IUSkpt5vSkWNZEudDeJWrpfYDsUktWAIfU7tdijzEY8rqzDk1rxcTrA5RObkOOrVA30vJX5PBZ50ibUEhZ5YbdNvZC4knrMx74C+S3+EkvggH02ZArnXOn2OEYfGelOIzH/grRjctjUrYmg/NuOpKwRf6tkbhUu8rtmTx8rP+Uyt1LpcFfFWDqPtS8gmrZ5qySuAU5FYanzw== 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=0lVlPQ30d8lhL/chxraZgP+ziIvSrKCX/YiiMyIYRBo=; b=YoBOHpStA7J7cqSq28BFoQJIK6+Gi+iw47EfYPyQpzEhlgZ0De5E4BWhC0QBuhsxZ15M0G2QDxzPvw9aNLHvD43pG/1hGGQVd2ZTg6UjfjEfh83FkPxMixvNMAMp5qtCOnW0fgb2txnRbh3ub9e9spMFVGmt57D99mH557tq00M= 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 AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:3f::10) by AM0PR10MB3587.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:144::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.20; Mon, 6 Jul 2020 20:01:30 +0000 Received: from AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM ([fe80::91fd:aebc:e8cb:a663]) by AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM ([fe80::91fd:aebc:e8cb:a663%7]) with mapi id 15.20.3153.029; Mon, 6 Jul 2020 20: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 v4 05/11] rtc: pcf2127: provide ->write method Date: Mon, 6 Jul 2020 22:01:14 +0200 Message-Id: <20200706200120.23093-6-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200706200120.23093-1-rasmus.villemoes@prevas.dk> References: <20200706200120.23093-1-rasmus.villemoes@prevas.dk> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM6PR0502CA0046.eurprd05.prod.outlook.com (2603:10a6:20b:56::23) To AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:3f::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prevas-ravi.prevas.se (5.186.112.31) by AM6PR0502CA0046.eurprd05.prod.outlook.com (2603:10a6:20b:56::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.20 via Frontend Transport; Mon, 6 Jul 2020 20:01:30 +0000 X-Mailer: git-send-email 2.23.0 X-Originating-IP: [5.186.112.31] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d6eb0f24-158d-467c-d772-08d821e75feb X-MS-TrafficTypeDiagnostic: AM0PR10MB3587: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <AM0PR10MB358796BBE5B1CAC015733CA693690@AM0PR10MB3587.EURPRD10.PROD.OUTLOOK.COM> X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-Forefront-PRVS: 04569283F9 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MnKttx3g5kRqXmB8vexq+pHnL2mu0PZ/0zCPp+bazbMfeiaFLpmssM/PrUimqw/We9MJQ6g8Ml4SOYJwZuVNweBkQdw8x20Hkq+sh9xPvef1fKys4scGA5ZUt41Q/zbYkWxQ5+wPL1PbJ98EjhOJrke9+CQ6KtNtGieraUQKcF1sasqcY5Uamejm0Q+p0ESZtq1ubbkq2W3wJ4wPn47fLqxHaIjtN8Ov8VCo9wbw7QWQRelowMCYKQjL9Z2HrGngm7sZAuPE7WxkeTWbod6ClwfsjFyu6nmnXeu3/PtE1LMADej8duA0siZJJgOQNJ4R3u7JUSQNVDfa9nQSO+DePg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(39850400004)(346002)(136003)(396003)(376002)(366004)(5660300002)(6506007)(6666004)(26005)(54906003)(4744005)(66476007)(36756003)(8976002)(8936002)(6512007)(66556008)(66946007)(52116002)(478600001)(44832011)(86362001)(1076003)(107886003)(2906002)(186003)(6486002)(8676002)(16526019)(956004)(4326008)(316002)(2616005)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: qb/PpN8XQ/JFtAqoYkB2tUG3rRFjCkGFKvS6NvYoCj8DzYq0yYzpKpxvMQCXvoIXREl/DONYg5OeB9tSXpghi20E3M2I/7oXMsZ2LmK+FCWe3Jyrgv25AvTe4hr4AfPLmGKHWw9/py39fOXuThQ9ykcLogSMzPuAbO6s427aq8LPewaZarqu3nzUSAAtaXsdY8LPRJtrkFWbTe+fF9wo9sqv3ZQ7XtTb71+LdGk5KI8UDEhSh2KS9qPSdy57qjnuvVq1uDZxUbg+R5RPao9JciQwuV3HiDz35qz5ojfAsGotpIKU/boDFvZtZ7Q7+hVUD/npBsUKoS7vORUqCbnZl72+DPOOHs24KsKQUMp+G477aZ8LIX2Q5VRdEzC4BLc8YatY3wxPVrMcdQHNuQ1wIwNWhsYjBbPGxoTXmtfYAQPPp1+eCjG722BIuTbw4VbMn29U40LdfvfEOwaanD3gBzJWHQMjj6wtzVdfDlV0mC8= X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: d6eb0f24-158d-467c-d772-08d821e75feb X-MS-Exchange-CrossTenant-AuthSource: AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2020 20:01:30.4698 (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: QnOfwSzoRGb0BUF/ZLafIqfdAsG8sAa4+6ngbnO7g0iGQoSTBxnu+xYVYBfMYi0GWTj5aWNGp/YLTavWnYRtLsI1UxMDpcrnQBf4tBMqOXY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR10MB3587 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
new rtc methods, rtc command, and tests
|
expand
|
Hello Rasmus, Am 06.07.2020 um 22:01 schrieb Rasmus Villemoes: > Reviewed-by: Simon Glass <sjg@chromium.org> > Reviewed-by: Heiko Schocher <hs@denx.de> > Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> > --- > drivers/rtc/pcf2127.c | 7 +++++++ > 1 file changed, 7 insertions(+) Applied to u-boot-i2c.git master Thanks! bye, Heiko
diff --git a/drivers/rtc/pcf2127.c b/drivers/rtc/pcf2127.c index eea72ad522..88ff8c52c3 100644 --- a/drivers/rtc/pcf2127.c +++ b/drivers/rtc/pcf2127.c @@ -43,6 +43,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}; @@ -110,6 +116,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[] = {