From patchwork Sun Nov 18 15:14:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 999503 X-Patchwork-Delegate: sjg@chromium.org 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=chromium.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42ybGC0DlXz9s3C for ; Mon, 19 Nov 2018 02:18:43 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 409C7C22413; Sun, 18 Nov 2018 15:18:02 +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=none 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 DC18CC22435; Sun, 18 Nov 2018 15:15:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 297D3C22424; Sun, 18 Nov 2018 15:15:02 +0000 (UTC) Received: from mail-it1-f202.google.com (mail-it1-f202.google.com [209.85.166.202]) by lists.denx.de (Postfix) with ESMTPS id D6928C22414 for ; Sun, 18 Nov 2018 15:14:58 +0000 (UTC) Received: by mail-it1-f202.google.com with SMTP id p78-v6so5102344itb.1 for ; Sun, 18 Nov 2018 07:14:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=aNcuN09C7bflYirVPrlO1L5fMST4JzOxz6rv9eBsG2s=; b=Su9ZiSIQMDayR3A1Wv59eK3DoO6bwRJ0CDGyz1bhcTnldQbwJNJDDgm3wpJwCha+lm hmb9vvALlO/6R7xPghiBy0IHpxegsVrlmJIuqA5w/ct5GRixA5dA34/XT8sOA9DGt7Az 4/fSwO/nIOT0EVJf84tu6OWFmiqmi7SNiXuRVMR5wbElZmr6fRq4sKowRz3+ZdH/zpRn DbMAzRvbAWNALnpoXUJQsXh1kZc3+ybSL6pf7yTnzAmtfrnyyZ5JRlTpwAzL70U+cXSN SWF6dnFX5+ub90IsvxdkXMNXSjOjmyctXhMrr9GU4jpmteRH7d3BntQROEEyJzSZ0fkY ZZaA== X-Gm-Message-State: AGRZ1gLskI4qVYV3MK8ImeV2so1H7uWynp6GDFvpAvh+8OwVeASmEqMe KiG5t8fDCaQcrsv/H+jo5HM1hVw= X-Google-Smtp-Source: AFSGD/X49LLl+zCwp4oGKk3mdIOKM+SRem3dlLCIYLSq7Plld1622W6W6QHOzv421fA9SSjHZ2vzQis= X-Received: by 2002:a24:10ca:: with SMTP id 193-v6mr4772410ity.14.1542554097942; Sun, 18 Nov 2018 07:14:57 -0800 (PST) Date: Sun, 18 Nov 2018 08:14:35 -0700 In-Reply-To: <20181118151435.111676-1-sjg@chromium.org> Message-Id: <20181118151435.111676-11-sjg@chromium.org> Mime-Version: 1.0 References: <20181118151435.111676-1-sjg@chromium.org> X-Mailer: git-send-email 2.19.1.1215.g8438c0b245-goog From: Simon Glass To: U-Boot Mailing List Subject: [U-Boot] [PATCH v2 10/10] rtc: Allow child drivers 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" Some RTC chips have child drivers, e.g. to provide access to their non-volatile RAM. Scan for these when binding. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- Changes in v2: - Drop patches previously applied - Add new patches to support the RTC change drivers/rtc/rtc-uclass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c index c676f0ff359..a0a238aedda 100644 --- a/drivers/rtc/rtc-uclass.c +++ b/drivers/rtc/rtc-uclass.c @@ -122,4 +122,5 @@ int rtc_write32(struct udevice *dev, unsigned int reg, u32 value) UCLASS_DRIVER(rtc) = { .name = "rtc", .id = UCLASS_RTC, + .post_bind = dm_scan_fdt_dev, };