From patchwork Tue Aug 6 04:38:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969299 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=BOPNVnIu; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLDy17Csz1yYD for ; Tue, 6 Aug 2024 14:39:30 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E26A1889CD; Tue, 6 Aug 2024 06:39:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BOPNVnIu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DA734889CB; Tue, 6 Aug 2024 06:39:14 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 902D9889BB for ; Tue, 6 Aug 2024 06:39:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1fd6ed7688cso3662295ad.3 for ; Mon, 05 Aug 2024 21:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919146; x=1723523946; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ukeCMLwYRHDf2yq7KGfmMBIhPCpdtd9C7ivv0G4sgRo=; b=BOPNVnIuFTiXg8Yq/7gLB6S/bQ+UBxY6JD+nTwf6Xk211gtLIf0KcDI/XN8sz7Ap+e U/NLcIs6xTwc5kYpE1YxEWHgX0jlSrqKlPZccvPWu5wsvReX9MW37CI5iDohmrsrOFJ4 1EhbPlVQ8nK0Z47FYKRwQayPU0rKrsRGkzFlD7pXAZHUdILobFEAom0QTgRvRUy3jEz4 WEocQT6IEO7ihtgye0+yltohGRVlssq7UvYgelxEqrI0zNEqhkWEx5POIRhbTqstklaR cBYRmox6NoUX37ekXXNcQKM8vVPGezFW9QOESBbhg3YNzHJz50bkOU+p8qsnGDz/9Y2T /RIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919146; x=1723523946; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ukeCMLwYRHDf2yq7KGfmMBIhPCpdtd9C7ivv0G4sgRo=; b=gTWME+U8xEqlLeJwlVO2HN33tTobOmKlQaIrJwDEJsFAhDoo7vAfJsKgN3C5LOa5wm GrsD4l3GFIoWqG8L5Y2A1I3/JDpE91SUxPosqlCumrHXqIMmWVHwIgxinE14p4Dcr4HU 1l2wkliT1HdA80YB9XgObCLYl90H3A2atMz0YmUUcmbxWlq5K1M7zr+h2Be+51ReSbIQ 32aEKsKoCHVIc7nSqLv4+qibN68VGY5hwHpUUiqjuJdAGJfjaQcOTlP5PaH1GrUelxcr YKuT8uuWr9Zx1BgbH/4qepd4oUXBmzxPy5rNlctHuHaZHPrwvzriJFsXpzIxlc70hSGt LxXA== X-Forwarded-Encrypted: i=1; AJvYcCUqGNu/ZG3MDYHsf6F1YpmdqnNExdTjchWnerRPxIaCCXiDuSawHXwJYLGz8ZIL4ZwTbY1G/vwMy9HJwnXWcfojhU/WpQ== X-Gm-Message-State: AOJu0YwyXtiTPTb0fZb24IUgIcnk6B6qbdZusFzt40NVvROmZlHwexsY JgSRlUyf4UxJXElkF7Ba+UIEW3VIUIjztk9TJRndC556oTtODuEdSpjOPQ== X-Google-Smtp-Source: AGHT+IFHsKUgR8W/URqMgGBGZjct2I2IpXbLC7obKMr58V/8EbQN2bpnTbO9Rl1KvUpupJtxetqR5g== X-Received: by 2002:a17:903:1ca:b0:1fd:a72a:f44 with SMTP id d9443c01a7336-1ff57261dc8mr146021385ad.17.1722919146001; Mon, 05 Aug 2024 21:39:06 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:05 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 01/12] arm: rockchip: rk3399: Remove unused syscon drivers code Date: Tue, 6 Aug 2024 04:38:38 +0000 Message-ID: <20240806043849.3607-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Since commit 95397385091d ("treewide: Use OF_REAL instead of !OF_PLATDATA"), the OF_PLATDATA code, As OF_PLATDATA is no longer enabled, the related code is removed. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c b/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c index b92ad54ede5..5895fa373ec 100644 --- a/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c @@ -25,48 +25,3 @@ U_BOOT_DRIVER(syscon_rk3399) = { #endif .of_match = rk3399_syscon_ids, }; - -#if CONFIG_IS_ENABLED(OF_PLATDATA) -static int rk3399_syscon_bind_of_plat(struct udevice *dev) -{ - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return 0; -} - -U_BOOT_DRIVER(rockchip_rk3399_grf) = { - .name = "rockchip_rk3399_grf", - .id = UCLASS_SYSCON, - .of_match = rk3399_syscon_ids, - .bind = rk3399_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3399_pmugrf) = { - .name = "rockchip_rk3399_pmugrf", - .id = UCLASS_SYSCON, - .of_match = rk3399_syscon_ids + 1, - .bind = rk3399_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3399_pmusgrf) = { - .name = "rockchip_rk3399_pmusgrf", - .id = UCLASS_SYSCON, - .of_match = rk3399_syscon_ids + 2, - .bind = rk3399_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3399_cic) = { - .name = "rockchip_rk3399_cic", - .id = UCLASS_SYSCON, - .of_match = rk3399_syscon_ids + 3, - .bind = rk3399_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3399_pmu) = { - .name = "rockchip_rk3399_pmu", - .id = UCLASS_SYSCON, - .of_match = rk3399_syscon_ids + 4, - .bind = rk3399_syscon_bind_of_plat, -}; -#endif From patchwork Tue Aug 6 04:38:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969300 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=QZw6jFFH; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLF236MKz1yYD for ; Tue, 6 Aug 2024 14:39:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 40563889D5; Tue, 6 Aug 2024 06:39:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QZw6jFFH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA5A8889BB; Tue, 6 Aug 2024 06:39:14 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B51FD889BE for ; Tue, 6 Aug 2024 06:39:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1fc56fd4de1so3175895ad.0 for ; Mon, 05 Aug 2024 21:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919149; x=1723523949; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2Ic1wNzajHlb6CXgByYsvFXAVospEWVfRvCEd078WWE=; b=QZw6jFFHHnnbndowYYbmfR7lx1cLqAZ4cmkAVcK6+O8zWS6bPHlyEjWclf7tYQ6s57 3493As78zPB6KayQ0Trj62FGY/d+nka45uP81bktTkC3GTsHyqePynXdhlels7TllqN6 w5rLPXhGqdEWIOV2nDgOkjsbcql6R5ZzWgKo+SO+3SlfWcgWuQmYzW6DvpTNBVUbY1W7 xMtplBpugd7h3bRH1HFoT8xSd2l4rPxquisHmuzU81LA2T4YszCpoVzuaP+wN87dFYh9 GL/vYmwIzod6apVynYQ0ikXWbGztTi3yrEbYNpHG7SekFf6rd9plQPUmnxKvIY30Ftp7 EJaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919149; x=1723523949; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2Ic1wNzajHlb6CXgByYsvFXAVospEWVfRvCEd078WWE=; b=tj7uo1yAcJKVLiMJEcUfmoB6dMojEZIJSKxtohJF8/KpWV1aRbLkdjpgrEbrFVNVX+ PDM86qFbOY0cfXDHtOUOju3Z9/Kvtmfgr6B0E6g0cZ7Z0R71vSpbIaO73u0S/FsmMJvN tp5JnY46nlYH/Fs5Jv783pe3/aTWlsLYIG/TlWT6CC6N60QgxcN96PZZEQDr2ahbt99X 34iK65XHUl9ljnA0Gfur8wHlpHPjcGgw+ZcYuJmk/uY+vhVqExLsEQf094labdB1dCqu WHD9iTxgwOvFq0rAnXGeYwrK/5sXjJWWNinCWwCUQ1e9yfqZlgFM3YPlumtFcB+JPOse JulQ== X-Forwarded-Encrypted: i=1; AJvYcCXKFRgP8ePFfifT5OjJDrta5YTySPQukhfUn7dJRbNZ/uvVjklK7utO1L+zCWpLdpq7nPNaqXQeDLrXDz9CfvVNZiP/ZA== X-Gm-Message-State: AOJu0YydxcWii3h3PjwtgwqilQ2RAAIEy4Q4nXUZjVtjRM0VaNkHjqu+ Y7Eh2L4MTKMi/7ZywnL0DEM2j9EpHv8bkSjhkE+OleBlt2AdLeokkjJSKg== X-Google-Smtp-Source: AGHT+IFiXfnmesckqq8T/+uYxglQTY1PQyEYC0xbXjnF3u00QgvxNCUTwfUiaqgy6WPq33A7de2kGw== X-Received: by 2002:a17:902:f650:b0:1fb:d07c:64cd with SMTP id d9443c01a7336-1ff52492003mr240811565ad.21.1722919148895; Mon, 05 Aug 2024 21:39:08 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:08 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 02/12] arch: rockchip: rv1126: Update syscon driver binding method Date: Tue, 6 Aug 2024 04:38:39 +0000 Message-ID: <20240806043849.3607-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Updated the binding method to use `dm_scan_fdt_dev` when `OF_REAL` is enabled. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rv1126/syscon_rv1126.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c b/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c index 67d2f18a8d0..d66d84c836d 100644 --- a/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c +++ b/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c @@ -18,6 +18,9 @@ static const struct udevice_id rv1126_syscon_ids[] = { U_BOOT_DRIVER(syscon_rv1126) = { .name = "rv1126_syscon", .id = UCLASS_SYSCON, +#if CONFIG_IS_ENABLED(OF_REAL) + .bind = dm_scan_fdt_dev, +#endif .of_match = rv1126_syscon_ids, }; From patchwork Tue Aug 6 04:38:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969301 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=KJZOgZRQ; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLFF1Jzwz1yYD for ; Tue, 6 Aug 2024 14:39:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9D0B9889D4; Tue, 6 Aug 2024 06:39:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KJZOgZRQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A54A3889E9; Tue, 6 Aug 2024 06:39:18 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3A43D8898E for ; Tue, 6 Aug 2024 06:39:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1fc491f9b55so1350625ad.3 for ; Mon, 05 Aug 2024 21:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919152; x=1723523952; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3O+s90oacWXLqmpoD2b4HNlYQ4e1wcmFosoQ7sR3oVs=; b=KJZOgZRQ7MhaFdVH+K9pZKeoCEhwntWNXqFPhpaQfOrbi3p95+bhTuAr1Nge/s9WZ+ qHmPekGifG1p/SIa7BNoR63Ob0rudSaEFmHPLhjTgD83MW26RcAsCo9n5a/tmmcabsxq G6Gcl2jfmJExSuu3zkURhaG20X0tICfWsvNm9eDOiMBXteHarQbZtB4FyWqpfFItgTyB D2tFkvLvK3Il87zIxpBlR1oNl+LQ9YquRWDSAnqUzer1I1ONgKWWoHPmrQBceo2ZfTvm H6wiSw2jOiz/FOG+OTXJCH5R1bA35ufrsxjNjQjsp9r8vl8ud6e1gP4m59SL6Sapzuhc 6H/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919152; x=1723523952; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3O+s90oacWXLqmpoD2b4HNlYQ4e1wcmFosoQ7sR3oVs=; b=U1rSnRtNaskwwkU74rTzoDMHXp4/5eF96nejlFLdqjtHkKBZdJOmIFt9RhcCj9DBUQ hbnT1xR4UQ90+dwURkpFUNqn+IHjNLEn28wUeKue4l2GScfvRLaKRMWSwlixbunz3aBP NOuP/Sel1xpzu6dfYNS8+dbTLvoqYc9tUq7VWdMFLyr7PuMS6NZJ7xmxPdY8bj7JAh57 iIJRBqWxHBO3wNU64/yg7cX7RiVvw73tGXlZ/TGOj3a2A4v4i6P2tGxHvr3taMfC13eH 7iX3n+fMRl7k/DUAyMLNplYn4/3mJID64G+x0RSe2c518BwelCGZN8nudFssRrYEXjBq dnHw== X-Forwarded-Encrypted: i=1; AJvYcCVJ/UVOCCQlJYkt3ZhGFc4T0uRwEwZGYhEImfoZM50UGn0GLff4YwtEjm1kYS4HtZROm2hKtXUzvAhqGaM7xuv0jf0ArQ== X-Gm-Message-State: AOJu0Yy6MeV4ihp7TW41SGcjc3pMsgF1foIMx4b9in28kkwMDpOdgzGD i8fOF7okb8vkcFicv3ZWzlRjgATK0ntGUjC6n0NBhicxT2c2GCNI X-Google-Smtp-Source: AGHT+IESdaXyK89/3cxfi9XaozXUyAFZLXBE4YeRiKW0lf1IHoO55BwFSazd+NpT82XL+1P4J6Fl1Q== X-Received: by 2002:a17:903:1108:b0:1fb:7c7f:6458 with SMTP id d9443c01a7336-1ff572ba310mr142723945ad.32.1722919151831; Mon, 05 Aug 2024 21:39:11 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:11 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 03/12] arm: rockchip: rv1126: Remove unused syscon drivers code Date: Tue, 6 Aug 2024 04:38:40 +0000 Message-ID: <20240806043849.3607-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Since commit 95397385091d ("treewide: Use OF_REAL instead of !OF_PLATDATA"), the OF_PLATDATA code, As OF_PLATDATA is no longer enabled, the related code is removed. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rv1126/syscon_rv1126.c | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c b/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c index d66d84c836d..4c0690f1ba2 100644 --- a/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c +++ b/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c @@ -23,27 +23,3 @@ U_BOOT_DRIVER(syscon_rv1126) = { #endif .of_match = rv1126_syscon_ids, }; - -#if CONFIG_IS_ENABLED(OF_PLATDATA) -static int rv1126_syscon_bind_of_plat(struct udevice *dev) -{ - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return 0; -} - -U_BOOT_DRIVER(rockchip_rv1126_pmu) = { - .name = "rockchip_rv1126_pmu", - .id = UCLASS_SYSCON, - .of_match = rv1126_syscon_ids, - .bind = rv1126_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rv1126_pmugrf) = { - .name = "rockchip_rv1126_pmugrf", - .id = UCLASS_SYSCON, - .of_match = rv1126_syscon_ids + 1, - .bind = rv1126_syscon_bind_of_plat, -}; -#endif From patchwork Tue Aug 6 04:38:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969302 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=dnnPikkL; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLFR3j1zz1yYD for ; Tue, 6 Aug 2024 14:39:55 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 01BC888A01; Tue, 6 Aug 2024 06:39:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dnnPikkL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AB1EB8898E; Tue, 6 Aug 2024 06:39:18 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7D5EF889BB for ; Tue, 6 Aug 2024 06:39:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-70ea2f25bfaso111483b3a.1 for ; Mon, 05 Aug 2024 21:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919155; x=1723523955; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6bpbZtMxXabJPCk+UIbCwETf4kl9EjfoyomrDTu9j7M=; b=dnnPikkLwZI6XdGQ2s9DMNuPC4cYi4FZ9vNeWY7O8zVgUhQBP8i0/4/LGVqLlayDM9 g5HOjKSq0Cys6KsMYbEJCej627fG/ibvkY/MfGDg8oy95YQcOGMO94Zm4Cg+Z42u3I09 JUFvvKSvxNZr/c/9eeeaf/JXdcOSxnv1f83d+kI0v9ApreKWEiXV3Hwko2WmLO8hGvve y+LoOhfG3RXwitBEwrO7cXn1vvQvAWRWomN5Q4bbJ3XHPSyg/RT0a7C39TLYF7TG411S mvvXoQpiYTRFDTe+eBji2xDRAjzeKviqVF5TeloWR5BTiYI+M7yfMSUd0ZfhgkYpVH5q o7rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919155; x=1723523955; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6bpbZtMxXabJPCk+UIbCwETf4kl9EjfoyomrDTu9j7M=; b=LOh8COqDAzXkwGl89wEcBoNdX4FImPW2lNm90Yb4CnltLef44Jw5oi+mtcw3ZcGt9Z /YS/5cJZupBmXkHs+EL34Eaz8aaYewnlOVNfB8c8AYUV9b3m0t302P8yYDWbZ8UNlYLn p5eu1UfnZExP3IQX/E3G3TWWbgt22VWKTC/hll/G/Csbw6K8WMdAyURgFUJX21cJ+WK5 rrTD6lFyidRCqO010t5nw31NzG8iGk4uZgCXkIgRikPZEJQ/q4H+sWpImSAsJyjxvjBv w+Woqr0SBSRjhhKMdsW+9vCRqp9v9o7WFfOkyr8X0+oqFTtmCteKryNJDeW9/XWeAKh1 qZXQ== X-Forwarded-Encrypted: i=1; AJvYcCVAdf/uGXYnVHPzxUs/dwZNJ5cbJYFO50P0hJHnGk8pG36gz3GP3M/9WiSC5sCsMQgYOAug/Uf3XAGiMjd5ZAq4PP6dQQ== X-Gm-Message-State: AOJu0YyWlVf2HHBMSNLIoJ0gwjtjI3ROeqGbcxUjsPnzp1C0KcxS3/9w xHyM0s+mjOqsM9eTPHVTu0Zk0dwrFQiV36kgah6z/HOdaNmOHh03 X-Google-Smtp-Source: AGHT+IExjCqoQs/CyXq3TNwIXgbOCfTHkxQoMPK1WYp8Ig4q+W/fRDnbEZbHg+TV5v0dfpedoP3CUg== X-Received: by 2002:a05:6a20:918c:b0:1c0:bd9c:adf with SMTP id adf61e73a8af0-1c699616e6cmr15112712637.50.1722919154737; Mon, 05 Aug 2024 21:39:14 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:14 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 04/12] arm: rockchip: px30: Remove unused syscon drivers code Date: Tue, 6 Aug 2024 04:38:41 +0000 Message-ID: <20240806043849.3607-5-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Since commit 95397385091d ("treewide: Use OF_REAL instead of !OF_PLATDATA"), the OF_PLATDATA code. As OF_PLATDATA is no longer enabled, the related code is removed. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/px30/syscon_px30.c | 31 ----------------------- 1 file changed, 31 deletions(-) diff --git a/arch/arm/mach-rockchip/px30/syscon_px30.c b/arch/arm/mach-rockchip/px30/syscon_px30.c index 893a5234baa..cc5adc71569 100644 --- a/arch/arm/mach-rockchip/px30/syscon_px30.c +++ b/arch/arm/mach-rockchip/px30/syscon_px30.c @@ -23,34 +23,3 @@ U_BOOT_DRIVER(syscon_px30) = { #endif .of_match = px30_syscon_ids, }; - -#if CONFIG_IS_ENABLED(OF_PLATDATA) -static int px30_syscon_bind_of_plat(struct udevice *dev) -{ - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return 0; -} - -U_BOOT_DRIVER(rockchip_px30_pmu) = { - .name = "rockchip_px30_pmu", - .id = UCLASS_SYSCON, - .of_match = px30_syscon_ids, - .bind = px30_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_px30_pmugrf) = { - .name = "rockchip_px30_pmugrf", - .id = UCLASS_SYSCON, - .of_match = px30_syscon_ids + 1, - .bind = px30_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_px30_grf) = { - .name = "rockchip_px30_grf", - .id = UCLASS_SYSCON, - .of_match = px30_syscon_ids + 2, - .bind = px30_syscon_bind_of_plat, -}; -#endif From patchwork Tue Aug 6 04:38:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969303 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=BGa0bUJY; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLFf1dlBz1yXs for ; Tue, 6 Aug 2024 14:40:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 616E9889BE; Tue, 6 Aug 2024 06:39:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BGa0bUJY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D16A889BB; Tue, 6 Aug 2024 06:39:21 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 705FD8898E for ; Tue, 6 Aug 2024 06:39:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-7a103ac7be3so142069a12.3 for ; Mon, 05 Aug 2024 21:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919158; x=1723523958; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Jf/b6iiVz/UaBb6ZBEUBNk3d6OpI3PR+OhPNq5FDTRE=; b=BGa0bUJYzHKfVQlTOjQrlmlXc+X4OLn3r37Cw3luYudMgIZv72VCVjLW+aPyyBnJ1A NDNblDXmUJFWfMxFlJQCgWGKfur8W2VRxqNFeUDfI3r/7+wOje+FASU/f5VrSccVJJ0a 2qpVac1ekFsLItQNbslO1vsdPhioa8Cw8yqh0OVEwgwpSii6RLWpJg6hQsCpupVdYW5K sB2nU6emNlMAApimbkFzkqUk8Sjyov0343p/5EMGHnBRUM5MgcOuvZBPR00Zz3l+aQpW JR0dDBHGbeSGnb4qqY9ZTsdP+UQCDcwDXuuMOoPT71asd5aWyD9eHOfl7wMK56O6lbKX mYBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919158; x=1723523958; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jf/b6iiVz/UaBb6ZBEUBNk3d6OpI3PR+OhPNq5FDTRE=; b=v+Any8Ov0pVK2LshQ19f74r1Wp+3bsOInmp4eRwROL46oEY9TfMU+fSLYgTsVaWop+ 0PAd6WViJgbrPD2/xzagaUC4WvOVxgKX4zXNRit+GcirjHdZ+yZdn5AWD78f2DfjyTj8 jhDfUnUI1GXt3zhZuJ65JXI6O+RHsICjumprlqjA6wj39b1sa9ybrczlNXGUhxyFP9l2 Fww4YVq2qCkP4oWgzz0yUszUfgIe28wlVoC/WYH5n+VQTTD+BlWO+9BAkIAqkoa+PZ0N uJoFh6dbs0wMc3RchTHsujU6KmsCX8rBaZA/I+7HiuMWZ266ZSj42ILA/N6FF1PVJ2GX h9sQ== X-Forwarded-Encrypted: i=1; AJvYcCWMfVT7m4qu/c015PHn1DnLMOO6gJclQ/LDQ8MFbdYDPfgEq2sH0fTGXxsB/svCzPV8YZUNnY1/zZIsi0bA5KCkRCc1Og== X-Gm-Message-State: AOJu0YzitidHekxTmY6nGtz+hiUIIO16s7YQ6y462v14Bcduf7M0gPkq j+906ZhdYErvFeu9G7lQIAnQeIXoKoWSaeb3pAup5UJMU5cQ+9y+ X-Google-Smtp-Source: AGHT+IFI/ycXybbHs7syvhQ/MdfibP+qIejJVXO3ScKooVOWsAnTXeV54tQ5/kuzsH8+rMPr0vzjSw== X-Received: by 2002:a05:6a20:2589:b0:1c4:b302:ad14 with SMTP id adf61e73a8af0-1c6995856d0mr15192275637.24.1722919157627; Mon, 05 Aug 2024 21:39:17 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:17 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 05/12] arch: rockchip: rk3066: Update syscon driver binding method Date: Tue, 6 Aug 2024 04:38:42 +0000 Message-ID: <20240806043849.3607-6-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Updated the binding method to use `dm_scan_fdt_dev` when OF_REAL` is enabled. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3066/syscon_rk3066.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3066/syscon_rk3066.c b/arch/arm/mach-rockchip/rk3066/syscon_rk3066.c index ff269b53b54..4e13aeca03e 100644 --- a/arch/arm/mach-rockchip/rk3066/syscon_rk3066.c +++ b/arch/arm/mach-rockchip/rk3066/syscon_rk3066.c @@ -19,6 +19,9 @@ static const struct udevice_id rk3066_syscon_ids[] = { U_BOOT_DRIVER(syscon_rk3066) = { .name = "rk3066_syscon", .id = UCLASS_SYSCON, +#if CONFIG_IS_ENABLED(OF_REAL) + .bind = dm_scan_fdt_dev, +#endif .of_match = rk3066_syscon_ids, }; From patchwork Tue Aug 6 04:38:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969304 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=nF1/+4FM; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLFr2nvkz1yZl for ; Tue, 6 Aug 2024 14:40:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F076D889E3; Tue, 6 Aug 2024 06:39:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nF1/+4FM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6AE96889E3; Tue, 6 Aug 2024 06:39:24 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 499E58898E for ; Tue, 6 Aug 2024 06:39:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1fd69e44596so3231345ad.1 for ; Mon, 05 Aug 2024 21:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919161; x=1723523961; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uNjA3778HVdhdsxGGLYQUqQqlF+4Xu/JGaednZBiZU4=; b=nF1/+4FM5qTakR1FBrkN4JzUvtQMWjG+Pv1ra62Jn4UpC7FBSFq6cfVDxuG/7R4uCr Ea3GCMPrLY+YF56tsHziHfjYGsbEKk3QQDtA7Vb6MgXR4vS8kX0iNiXWx3lbxk1VpXYg 9ant9fsAHff9jW5k2t8GRMsKEFZ8lEsSec7ih65yP072PKu/MwDZvSLDCc3thG7J4QfF a2IvdcBJOGTkbxEJwyjPJEsFyPO2QhLNtOdrmdVGDhAdkGRN9GHbAWnlTd6BGBVccuPZ NcuPRFX3yuwzeVhMghR0b+ld/52eNs2rQxXu2dAOviBfIsPVOVuMu4JTm3udsKLyDONh 8mlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919161; x=1723523961; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uNjA3778HVdhdsxGGLYQUqQqlF+4Xu/JGaednZBiZU4=; b=WFqvIUP/IiHABNFiT72YtHDJQ2lnNb3I/rVvFjHmQoS1ZzzQrK/UoPJb/8KN+0k9L+ jDUJLoSzEoC1K+mFXfc7dnxAkWlkkDlNBZchlTj8+jWW8wXAOk30VYuqvhXCl1CGP+fg k8KXzB+BWo8pr4QyKj2alFhpkUZfBbmQEiUYLtZT6/1BIUe72Lj7phoz7PuHojsGnK+E DEktu2ZovFIfbGDoT1uHq8y6mNAxk3LL7MVxnsuOP9LjovrA1QhtscAFVP7pADFp595H YI2XB284vArEICxSaBp/TMdeWkJKr2RAPwaKLKS7fYWeKuj7YRrrSHrYJnBg8w4iRe/D K8BA== X-Forwarded-Encrypted: i=1; AJvYcCUII5c9BIGitmrJr+gggkCumjAYtJp+R8YH4gT5Ym2wj2VWrcfU0Xmnr2OSWcKOmGYtnWfana5rw2lcIwamdDU5AukU0Q== X-Gm-Message-State: AOJu0YyJO5zYJ8wuTw1zpqi+tDk/q0XsJjR5jZngW5UsBWIm+kngWF+t oxGL5T4k6NJw3QjH5lRDUcVFb+VHEhquZpR6cxFO6I/QxjcYdje4 X-Google-Smtp-Source: AGHT+IG6ymMIEDyQtWvWfeNG/3nABXUxGObejMWu4fqBT7LsLHhXAvs8Rb1jy7T/QHxhDbxlFY4XrA== X-Received: by 2002:a17:902:f54c:b0:1fc:4680:820d with SMTP id d9443c01a7336-1ff57b819c1mr189253545ad.9.1722919160624; Mon, 05 Aug 2024 21:39:20 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:20 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 06/12] arm: rockchip: rk3066: Remove unused syscon drivers code Date: Tue, 6 Aug 2024 04:38:43 +0000 Message-ID: <20240806043849.3607-7-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Since commit 95397385091d ("treewide: Use OF_REAL instead of !OF_PLATDATA"), the OF_PLATDATA code. As OF_PLATDATA is no longer enabled, the related code is removed. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3066/syscon_rk3066.c | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3066/syscon_rk3066.c b/arch/arm/mach-rockchip/rk3066/syscon_rk3066.c index 4e13aeca03e..18f006610d0 100644 --- a/arch/arm/mach-rockchip/rk3066/syscon_rk3066.c +++ b/arch/arm/mach-rockchip/rk3066/syscon_rk3066.c @@ -24,34 +24,3 @@ U_BOOT_DRIVER(syscon_rk3066) = { #endif .of_match = rk3066_syscon_ids, }; - -#if CONFIG_IS_ENABLED(OF_PLATDATA) -static int rk3066_syscon_bind_of_plat(struct udevice *dev) -{ - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return 0; -} - -U_BOOT_DRIVER(rockchip_rk3066_noc) = { - .name = "rockchip_rk3066_noc", - .id = UCLASS_SYSCON, - .of_match = rk3066_syscon_ids, - .bind = rk3066_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3066_grf) = { - .name = "rockchip_rk3066_grf", - .id = UCLASS_SYSCON, - .of_match = rk3066_syscon_ids + 1, - .bind = rk3066_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3066_pmu) = { - .name = "rockchip_rk3066_pmu", - .id = UCLASS_SYSCON, - .of_match = rk3066_syscon_ids + 2, - .bind = rk3066_syscon_bind_of_plat, -}; -#endif From patchwork Tue Aug 6 04:38:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969305 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=CN+KkLc2; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLG1715Fz1yZl for ; Tue, 6 Aug 2024 14:40:25 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 54C9188A12; Tue, 6 Aug 2024 06:39:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CN+KkLc2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 42A2A889F8; Tue, 6 Aug 2024 06:39:27 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 22C018898E for ; Tue, 6 Aug 2024 06:39:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-75a6c290528so69513a12.1 for ; Mon, 05 Aug 2024 21:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919163; x=1723523963; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zm+lewJzulVV0Jb7pfNAsttbE//2ARpPeBbMmvNfcN0=; b=CN+KkLc2Z1zjiNBv5nWuQCkG/CVSjBVuonrZ+GDQGsFxDWq8SUw7jxUg5pDnl6hPi8 p0nPZjcfaVh5jFk/ZYd8o39ysAcDp3mz0fC3wHJnHADb9Gka8QzJBkGlcVM4T7RlswRF nt5pkB4ttpj6t7tgQkLvY2BRH6c+a/eM2U77D7Ur2gu+5BYbD5AbEDFJMsmrUzGbJKT9 XORQBPbBkmqunvdq0TbEpxAi3a0MCO5wqn/CavxiQ3wTVLs8m1JuJbyseB7/klDqwPFQ dXtSAAlJt6+VgreLtdO2/hjtM0avnpbRSwQDPXuZh+YBzd+a0Ft8fIo/EhEbKFj9JLJi tJQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919163; x=1723523963; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zm+lewJzulVV0Jb7pfNAsttbE//2ARpPeBbMmvNfcN0=; b=T5bccybTAZ+3j1Q/iE9w0jHg/xMW+ozTBkuvuTZPN7YrqRCxro3VrAdSpdybceOjJ9 qucPC5WgGZIiiInVI4osnY0fwqHSrj/XU5O5rnttC0BL6OHIexrw/xF+3/0WfCqyBxvq PmMK9XePea5OTkbCFoYAyMrK6/huB4Y5rVDT4+KUlnSLqcmapCHbw4jsjg1UHYH4XL1a LgAVsySpDk0IpoRfiPUbbmo7lu/jekfjvYbOh/uIDFt/9zjzdpP2PoQjqc2ApJRlFjeu E8gSP6eYshF/T6IJFNRmNS+/Pr5FPnIQJeZFzN9ksVR1t8GQtd7gx9soy4ImhZAux6IJ eRNQ== X-Forwarded-Encrypted: i=1; AJvYcCWVqJyhdvkyGEGnnkOFrpVQvef+OrRhCZRntisx37vNqf+Aw1nVappcMlLmN0YUhpvY+H3vGt2MvXmbaKcyQlp/uHKhZg== X-Gm-Message-State: AOJu0Yz3jcrUFkosUp6SlzHPowL0fOWT5s3lSHHcQ7O+NlhbFY1lERB3 mLrMSB4+dIZrOrwsDnidgqict9K60Y9kcvmvUTjYBX9+3T+Xomf3 X-Google-Smtp-Source: AGHT+IH2f42mxjoVHoZ8mVm9qfyDA0yFsMz54yvNPfvf9QkYmSzRCOguh3u2n8F4MxKR9/jW23YmJg== X-Received: by 2002:a05:6a20:a9a9:b0:1c4:87b2:e069 with SMTP id adf61e73a8af0-1c69965b000mr10271078637.36.1722919163453; Mon, 05 Aug 2024 21:39:23 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:23 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 07/12] arch: rockchip: rk3368: Update syscon driver binding method Date: Tue, 6 Aug 2024 04:38:44 +0000 Message-ID: <20240806043849.3607-8-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Updated the binding method to use `dm_scan_fdt_dev` when OF_REAL` is enabled. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3368/syscon_rk3368.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c b/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c index 7389c028364..89caa6c310c 100644 --- a/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c +++ b/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c @@ -25,6 +25,9 @@ static const struct udevice_id rk3368_syscon_ids[] = { U_BOOT_DRIVER(syscon_rk3368) = { .name = "rk3368_syscon", .id = UCLASS_SYSCON, +#if CONFIG_IS_ENABLED(OF_REAL) + .bind = dm_scan_fdt_dev, +#endif .of_match = rk3368_syscon_ids, }; From patchwork Tue Aug 6 04:38:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969306 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Qq4/a56E; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLGC5gx7z1yZl for ; Tue, 6 Aug 2024 14:40:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AFD71889EE; Tue, 6 Aug 2024 06:39:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Qq4/a56E"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9351C889F8; Tue, 6 Aug 2024 06:39:31 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 15F5E889BA for ; Tue, 6 Aug 2024 06:39:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1fc65329979so1539385ad.0 for ; Mon, 05 Aug 2024 21:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919166; x=1723523966; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CRhIXqG5F1SwKhAB30UT9E7h2/Jmx7h+5p6IQ6v5rqw=; b=Qq4/a56EJ9N3T2KP+quy708U0eenN+xKBaVDpXEycQMRfdh45+/D+5u448Ju21YfyV AOK/Ofrs4ZmK8RrNGuYGiaW3AAjfG5A6P+bEBrykBTYsGuD5Qn/0yq0iqLmuwy2vbGkd H8ZlGWYrtYE9jWbzhLnMULlLEjbe6vLdAj4w0FP+COpXXAKl5Cyrp20zPiATIo40RvWU rKyNVg4+wf0Y39QcBGepqL8lutjsp0/6f160C3jEWaRu4NQdWru2bBfq6+oghHBCPAvi kF3isxIXMou7XKa0JR/5ubKBWEdz9JezsfG0ouRYy1FeOz5q3u3AnAv77er0Snp9L/9F p48Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919166; x=1723523966; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CRhIXqG5F1SwKhAB30UT9E7h2/Jmx7h+5p6IQ6v5rqw=; b=q4dOx9cKcTtnqLKzuXkscqpyx7/e+Dp4QOEjMFKIfB5vWtZo3aLEI9svfZjpg7+zym DCojdwoin++BfNUqVpIS4d34khoWlYD1qmhF0+LbDJXJZw4t05T3XTiv8dwh6ECFE4Ly RGYRkvG1iRrU+xvfbFs5KE+9Szhm+bbM2Y1XAzOKYRw0j5LJzjWmUwZAL0PtxPoPn9tv 72REciv11nBktjEeEiM1SAOIsnN2tyd+09+S4k/y1fPxBdx2qjBE71tyk9d/rpEyyiFf IeuuI9uv4IdjzHEBkreYWdDm3SLCX3wqdS9gct68d7fkTTZ7QXJ31NKVWkTUKKue68FV CKGA== X-Forwarded-Encrypted: i=1; AJvYcCXRYaFHB2io5mUSQ7pgGaZXIQvXpFn/QzrrVT/VpK/tKY4xkGxUl937hHSXnJrzvsywiB0IA5jB4XgPjh0Hu3pmxqVDXw== X-Gm-Message-State: AOJu0Yw8Ek30Vh60XTYTANnBK2BNPodIa/WwvrgzgGsYDcKUEp/Mf8vP tj8bt5WfdayycQ6mwM9do2hiFhEja+JlQN3mF3w61Uu8Z6BM/H/Z X-Google-Smtp-Source: AGHT+IGzc+OIG+mZCfMRQ+Yz+kVlt2D2wFHk8R+Gtux9YWWa4S16YpLj/+GMxWle0/zryCWDj8C3Iw== X-Received: by 2002:a17:902:e544:b0:1ff:4d2a:fe43 with SMTP id d9443c01a7336-1ff574a17demr205888995ad.61.1722919166316; Mon, 05 Aug 2024 21:39:26 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:26 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 08/12] arm: rockchip: rk3368: Remove unused syscon drivers code Date: Tue, 6 Aug 2024 04:38:45 +0000 Message-ID: <20240806043849.3607-9-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Since commit 95397385091d ("treewide: Use OF_REAL instead of !OF_PLATDATA"), the OF_PLATDATA code. As OF_PLATDATA is no longer enabled, the related code is removed. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3368/syscon_rk3368.c | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c b/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c index 89caa6c310c..0381a22453f 100644 --- a/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c +++ b/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c @@ -30,41 +30,3 @@ U_BOOT_DRIVER(syscon_rk3368) = { #endif .of_match = rk3368_syscon_ids, }; - -#if CONFIG_IS_ENABLED(OF_PLATDATA) -static int rk3368_syscon_bind_of_plat(struct udevice *dev) -{ - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return 0; -} - -U_BOOT_DRIVER(rockchip_rk3368_grf) = { - .name = "rockchip_rk3368_grf", - .id = UCLASS_SYSCON, - .of_match = rk3368_syscon_ids, - .bind = rk3368_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3368_pmugrf) = { - .name = "rockchip_rk3368_pmugrf", - .id = UCLASS_SYSCON, - .of_match = rk3368_syscon_ids + 1, - .bind = rk3368_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3368_msch) = { - .name = "rockchip_rk3368_msch", - .id = UCLASS_SYSCON, - .of_match = rk3368_syscon_ids + 2, - .bind = rk3368_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3368_sgrf) = { - .name = "rockchip_rk3368_sgrf", - .id = UCLASS_SYSCON, - .of_match = rk3368_syscon_ids + 3, - .bind = rk3368_syscon_bind_of_plat, -}; -#endif From patchwork Tue Aug 6 04:38:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969307 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=mHHOIsOc; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLGN6fJnz1yZl for ; Tue, 6 Aug 2024 14:40:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 14558889BA; Tue, 6 Aug 2024 06:39:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mHHOIsOc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 471BC88A0C; Tue, 6 Aug 2024 06:39:33 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 270B2889EB for ; Tue, 6 Aug 2024 06:39:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1fdd6d81812so1233015ad.1 for ; Mon, 05 Aug 2024 21:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919169; x=1723523969; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2PanVgp+C4VZ55RyPX0AQuUyYeWg3odMdo/uDoZc1e8=; b=mHHOIsOcdGN0LDRAWH/jE/N14YTuRvn/en/nDgy3HwmQI6xyE76FQTlr/fDvdMKm9E nJ7xC4pgvuIkitH3CFB2Ncl260x5IdsHWDQavlAUOEn9gQYa+jwxUY47YW4dllvGCmeF nWUT7PQxVfj/vhAIh4MJ/hemeY76r7Xp2tKburqPY22TbJabbkeMJ8IHwM8i+3RBygqN uKE5ZYXiQ0VzUnD3qpF/npvFv8AWm4IFt4JjQ6cq1UZUyUegC4e4fTZwlth1TFZPJfft PcwXuRsUmbwbRZZ0tbP9R4BUSeI6OgBpasw0IBkuJTG96LkcOrkBiIORgSlzrY7/IYBo hiPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919169; x=1723523969; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2PanVgp+C4VZ55RyPX0AQuUyYeWg3odMdo/uDoZc1e8=; b=GWc3+TbUhZOk+3t010BJVUlk/DsNPOk5LsnuFoe2h6aPlx9wUCpfcNLe8un03WsTat CQoCwq8dkQJ5O4lTUeuOFaTipfQcKLCCAvRPd9An5HdXvJ4ZxSBCwcJytOrPehZC23U4 xqf94T+FVSlu6Sj5DJuHuBNHAEHWj8mPUdXa8upi83jgDrtvfrm46C8Z2ybRq7gcSJdA S9Z7qv8BPsiJnNppSujkYNWFu3Ut2LViArEKiYQvdnMQPP4AnJjCmKY8Uz/UJ5KYfiZ0 n7xqy5X9aEtmp7xNW4mzy2nsO5Ne3Oj4FujbaG0we5DSU4PlXGb0BAWiOerWOdSpFKF3 bEUA== X-Forwarded-Encrypted: i=1; AJvYcCUnMA4UoUJgfAJ78uC7pI8jcDkykNbgDaZz4UjSvV/HBKbkO9Ul0IW/J5tDFFHwwIJ+8LJEVcEhCWPtxtIBbljApymKOg== X-Gm-Message-State: AOJu0Yxx+TzPhAVTpYHknXa06YhH6oSZCxoBpFTXXZZ9AXp3YwCAztKQ GQoFKrSvQkJW7jD5X5dUO3vEchNCt4CT466FoMlbr8Dw1rSOD5lB X-Google-Smtp-Source: AGHT+IGqjAuRKUe69OVGIhijhkvSooBYD1bWWqqBcW5ciAd5NDBSRF92i6xnAqBnh9u7SJESQyr99g== X-Received: by 2002:a17:903:1251:b0:1fb:98db:ad5f with SMTP id d9443c01a7336-1ff5722de68mr180794945ad.5.1722919169181; Mon, 05 Aug 2024 21:39:29 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:28 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 09/12] arch: rockchip: rk3188: Update syscon driver binding method Date: Tue, 6 Aug 2024 04:38:46 +0000 Message-ID: <20240806043849.3607-10-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Updated the binding method to use `dm_scan_fdt_dev` when OF_REAL` is enabled. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3188/syscon_rk3188.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c b/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c index 6df054e5b27..bcd7870c503 100644 --- a/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c +++ b/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c @@ -19,6 +19,9 @@ static const struct udevice_id rk3188_syscon_ids[] = { U_BOOT_DRIVER(syscon_rk3188) = { .name = "rk3188_syscon", .id = UCLASS_SYSCON, +#if CONFIG_IS_ENABLED(OF_REAL) + .bind = dm_scan_fdt_dev, +#endif .of_match = rk3188_syscon_ids, }; From patchwork Tue Aug 6 04:38:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969308 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=C02OuW0u; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLGZ3NYmz1yZl for ; Tue, 6 Aug 2024 14:40:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 682A488A11; Tue, 6 Aug 2024 06:39:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="C02OuW0u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F0AD088A0C; Tue, 6 Aug 2024 06:39:37 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B9E9B88A0C for ; Tue, 6 Aug 2024 06:39:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1fc566ac769so3586765ad.1 for ; Mon, 05 Aug 2024 21:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919172; x=1723523972; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l+fse6ptb2IcSQIa2dk+hg1xlZxbH9qepqlS+54M9NI=; b=C02OuW0ueP7E4XzMy5vNDvWwRchTxqx4FueehRcDDE7JGqLrYvD/7zsI2/FgZOjK7T 2FAnZ8KGaEPSV36F9PJrb6YN1xnwdwvDhAIRwyjKZHvSr8MdOP18YnvLndzAM6+mf4Gw Jk8G5ZbNhylob9f82xcspJnp9+pcP6WX8JCRMKI72A6X74FnvhQNK0NDCC3OX9P7sEFI XTU7ID8HCXHLyAL9VKGYxbJvnU9xnkEMyjY13kEdyNhT1cicHR7hjfYg7IWC9O1oXAVS naJBlhj0nu3hfTCHXUAOXQMMv5f2sFrm6jdY1pJaVfeEhKQKBigiChvjtlc8DGTqhQFC sNLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919172; x=1723523972; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l+fse6ptb2IcSQIa2dk+hg1xlZxbH9qepqlS+54M9NI=; b=AOvDi982yweLJM7S6al0fACZVCYxAD7h1vCQuCW7OGF3O9kVcmOsrsKL1b1ZVE2q+C 5V4/AibMlIoy3ewlEz8VQinicqspDg50WHwfygahmVX1Fz7aPf4Gi7Q0Zk3gUEeuiIcy vBRoo9cRiAGKT/6Pv2uwUkzu1Haukl2KNqksvsfxc06MvyEblEA7m8cRQNUYNYZR07L5 RA53kD4Q0tq+ZlPf4vmdPWhc3hU8j0jYLwRB1x6KkxvyM8Nj+uI3XBT+F/7t/Ah88jTH 4lrkEmNDR15XN+D2QIPeKlmZxKzAQ6Cj4YMriG3EQtoIpoEVJNxkIzdIWw4bg8KcqGh9 pHnw== X-Forwarded-Encrypted: i=1; AJvYcCUrVQXFiguJPrardvz6gcLkm6w3TEeibXsgDCbHBOsubWWpMV6d5sFTCJIWaOkyKXK0gSt1dADjy7jHIV9ilVUgQtJ86Q== X-Gm-Message-State: AOJu0YytSbkY+Gld5mzjvsKzrfkUJC8VDnu9C1kNyo4vs7Qc3Vu5t6Eg xoUb64jUvso5XbT5EakGubCq1W262rM+pTH6+cV7lqgGfZ1Osv5Y X-Google-Smtp-Source: AGHT+IFf8aRqL8wLG+gnL2NOz4dAx5ZDrGd5X5wCroxzvCrAcRfEapgKGzxU6xwI1p+3tlvQeHioyg== X-Received: by 2002:a17:903:1c2:b0:1fd:63d7:5d21 with SMTP id d9443c01a7336-1ff574218c3mr122456175ad.47.1722919172048; Mon, 05 Aug 2024 21:39:32 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:31 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 10/12] arm: rockchip: rk3188: Remove unused syscon drivers code Date: Tue, 6 Aug 2024 04:38:47 +0000 Message-ID: <20240806043849.3607-11-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Since commit 95397385091d ("treewide: Use OF_REAL instead of !OF_PLATDATA"), the OF_PLATDATA code. As OF_PLATDATA is no longer enabled, the related code is removed. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3188/syscon_rk3188.c | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c b/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c index bcd7870c503..94dbd6f8644 100644 --- a/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c +++ b/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c @@ -24,34 +24,3 @@ U_BOOT_DRIVER(syscon_rk3188) = { #endif .of_match = rk3188_syscon_ids, }; - -#if CONFIG_IS_ENABLED(OF_PLATDATA) -static int rk3188_syscon_bind_of_plat(struct udevice *dev) -{ - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return 0; -} - -U_BOOT_DRIVER(rockchip_rk3188_noc) = { - .name = "rockchip_rk3188_noc", - .id = UCLASS_SYSCON, - .of_match = rk3188_syscon_ids, - .bind = rk3188_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3188_grf) = { - .name = "rockchip_rk3188_grf", - .id = UCLASS_SYSCON, - .of_match = rk3188_syscon_ids + 1, - .bind = rk3188_syscon_bind_of_plat, -}; - -U_BOOT_DRIVER(rockchip_rk3188_pmu) = { - .name = "rockchip_rk3188_pmu", - .id = UCLASS_SYSCON, - .of_match = rk3188_syscon_ids + 2, - .bind = rk3188_syscon_bind_of_plat, -}; -#endif From patchwork Tue Aug 6 04:38:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969309 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Y+ANpOUv; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLGn33G3z1yZl for ; Tue, 6 Aug 2024 14:41:05 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C462E88A27; Tue, 6 Aug 2024 06:39:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Y+ANpOUv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0137588A27; Tue, 6 Aug 2024 06:39:40 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D67528898E for ; Tue, 6 Aug 2024 06:39:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-7104f939aa7so171181b3a.1 for ; Mon, 05 Aug 2024 21:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919175; x=1723523975; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ap6TK4A44M8K8TqgEbPaiY6M6+j88P5fr+yCZ0hsozg=; b=Y+ANpOUvPTzgmvPwkllJ/ozeiB2B88XmJtxRvshnYNtbpcPS7VWXRCh169NopvTo4z lnPzcUiyo4LeazjBFpnjBJyDKFRDV9qHZLWvZ3h/xZ/mOWKmKAcJmWk8Hrsts7DtBXd8 qIoi/H4EOPy+p+H3ymzpRegOHLQsB7zvIIiaUXKDcrxdLS0RKoCBm9nsY7DJ6QVdEHs1 8nOqhDoni6JkXUuQYkuomCo1OV5vDZ1pXuLGtzzfmWgH0DV+uYGC6efYrcg0AFMqnM0v pIvjPAJpx8Ev4oLI+F6FHzoH9EVyxy5JE2EjfpsVpuDChWKD/kryKd1xvSq1bZ94g7Ld WMzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919175; x=1723523975; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ap6TK4A44M8K8TqgEbPaiY6M6+j88P5fr+yCZ0hsozg=; b=fXhmByjZfc26MfxN92/Q6peUAYbACaybw524Srg7dfQmiaeKUncKCTTAVwVyH2BPE5 U0YtZFuKy/BIu5h5aBYR1nZuwDxnGaZ/rWmxdlux2jm+5MWU+b8mYACa6u4ClqxtQJCT FvRba5nDkEDNUqFROdB8gz7uLPGMa7pcerF5oAdbek4E1ZyMhvoYGjFClHA+jxm5xgpm Pa7qAAN8Yozste2TfG/JUPnAxxRh5kZ9ekGs2SemXUglJwH4Dm69WRns6F/KjhG9aIbk lwmAFXJUpprlEnDKI5gJTaEI/ZUYjX3oTz+cQyx+1C09SMmPK0R3Kj+E2Sh78vcKNpCp k23A== X-Forwarded-Encrypted: i=1; AJvYcCWYDhBrWRG3oHpfCnhSJLhH0stIs6PGs1DmKO2pHTHtMQYEXNCjco/rudKgFd2OMtImo8cBPkCp6DgsundUiFyvterAfA== X-Gm-Message-State: AOJu0Yz18rLAJVABEY2eth+E4VbL3w/P7t1o9ub+UDBPDbPSNIBsozDY ah0xbiBK+DbMQ2Gev99e/RUKs59cbZjBL7lVM6KszcuaifMGLmjI X-Google-Smtp-Source: AGHT+IEeXBvDlLFAsLbrlLYksbKxTCWxP0AH4iyqEtSV/YZqiJdDTxE9CIqfXFMtzLMgOdqzAdL+rQ== X-Received: by 2002:a05:6a21:99a0:b0:1c0:e1ed:1e9 with SMTP id adf61e73a8af0-1c699554b50mr19959370637.6.1722919174863; Mon, 05 Aug 2024 21:39:34 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:34 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 11/12] arch: rockchip: rk3288: Update syscon driver binding method Date: Tue, 6 Aug 2024 04:38:48 +0000 Message-ID: <20240806043849.3607-12-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Updated the binding method to use `dm_scan_fdt_dev` when `OF_REAL` is enabled. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3288/syscon_rk3288.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3288/syscon_rk3288.c b/arch/arm/mach-rockchip/rk3288/syscon_rk3288.c index 6413d0a88a1..4030e919134 100644 --- a/arch/arm/mach-rockchip/rk3288/syscon_rk3288.c +++ b/arch/arm/mach-rockchip/rk3288/syscon_rk3288.c @@ -23,6 +23,9 @@ static const struct udevice_id rk3288_syscon_ids[] = { U_BOOT_DRIVER(syscon_rk3288) = { .name = "rk3288_syscon", .id = UCLASS_SYSCON, +#if CONFIG_IS_ENABLED(OF_REAL) + .bind = dm_scan_fdt_dev, +#endif .of_match = rk3288_syscon_ids, }; From patchwork Tue Aug 6 04:38:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1969310 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Kqfolyka; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WdLGz14sMz1yZl for ; Tue, 6 Aug 2024 14:41:15 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 29D6C88A29; Tue, 6 Aug 2024 06:39:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Kqfolyka"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D70EA889AA; Tue, 6 Aug 2024 06:39:45 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 93F1188A10 for ; Tue, 6 Aug 2024 06:39:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1fd90c2fc68so3151675ad.1 for ; Mon, 05 Aug 2024 21:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722919178; x=1723523978; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/6nvekmqmRBIX+dJKxOAVGiSmae2bsgiXsItAJVwGcI=; b=KqfolykaVS6IHEoTMC7Mzus45RVnBolp5s0U9mX2vOHOMXh5tvUV/QGfBnGoitIqFL zp6S/zVkOH/GiveDH4adJmgyHobV5DzxcPrD8apDGDtGQZQyVKlBrjk4bYIJ8VrJ9H3L +/o4YBPhFr1nRkfGNbkHdBT5vjR+TM9Vh1WRbG4m/K6fozsFFVlngFjjmWyleFU81WTQ /u6zmTj5cx6ilLaxQwviZw45hmXOt2Fwma4qrttNjKwhaSZZ4Zlv2mWRnGg2v1uKUh7+ +fQ/MRN5wCl40KEp+H+0HE+nk/z2w1Zg9aYBuGNZz5qfQdaSzkMqQeD6zkAzT+Ps/O8K IzLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722919178; x=1723523978; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/6nvekmqmRBIX+dJKxOAVGiSmae2bsgiXsItAJVwGcI=; b=pWyrhCXecS6dl3R21x0+Ac9HUpU9+nss9GLfM2XuQvOk9dfEVb8vAnfBBcFRGb4sVc ILb3gyyrA0Di/XizcdJDXNpObU9UwDoG7rDBO0XxMLejT7XGBtZfbTxbs7pVTnVOK1vR JYaBOGomn42SMgkmy6JSPriu+4n9LuqJWpvB5eOFRo2UvzHwxtgUQo7jU+NGPCOcJArS 3bHGTm4Eu7BNFvsSC4lwUusdYQwlvBT/8JGXNgVzivBx+66mZHftDPsnR4HmKVwiDWbl doa7mytVUatqraog2xqsFoVvj7JOhaJLb2BxWNz7GajPsEtmRArbtkCC4xJx007t9Jg2 27bA== X-Forwarded-Encrypted: i=1; AJvYcCUUcWdBSRh6vYHQaW+xUYGY0JRrLuh4ZjMfkFMLONgCbkOyw+srL08aabVu+PKiCsZ208NAcgaBymdoomvgUDOGr1ERGA== X-Gm-Message-State: AOJu0Yz1cXkzVid6rS24u/4zx+teJVTjIfKNwWFpAFEvNWFz2sMMFYwv bJ8w9KePGQ9O1qxxpOlabcuKbKeMj1di05ZeH5VvpDRiFkdU4BbP X-Google-Smtp-Source: AGHT+IEVSmk6mlU5mrjkSdG+G4nW2ic+bO87b7P70lCAVecY4Ih/7/wruUQCTYSPNWn7ynj4wALU/A== X-Received: by 2002:a17:902:db11:b0:1fd:d807:b29e with SMTP id d9443c01a7336-1ff5730a2e8mr150894025ad.35.1722919177673; Mon, 05 Aug 2024 21:39:37 -0700 (PDT) Received: from localhost.localdomain ([113.30.217.222]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20077164e0esm5823485ad.185.2024.08.05.21.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 21:39:37 -0700 (PDT) From: Anand Moon To: Tom Rini , Simon Glass , Kever Yang , Jonas Karlman , Quentin Schulz , u-boot@lists.denx.de Cc: Anand Moon Subject: [PATCH v1 12/12] arm: rockchip: rk3288: Remove unused syscon drivers code Date: Tue, 6 Aug 2024 04:38:49 +0000 Message-ID: <20240806043849.3607-13-linux.amoon@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806043849.3607-1-linux.amoon@gmail.com> References: <20240806043849.3607-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Since commit 95397385091d ("treewide: Use OF_REAL instead of !OF_PLATDATA"), the OF_PLATDATA code. As OF_PLATDATA is no longer enabled, the related code is removed. Signed-off-by: Anand Moon --- arch/arm/mach-rockchip/rk3288/syscon_rk3288.c | 156 ------------------ 1 file changed, 156 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288/syscon_rk3288.c b/arch/arm/mach-rockchip/rk3288/syscon_rk3288.c index 4030e919134..e2e1eb624ec 100644 --- a/arch/arm/mach-rockchip/rk3288/syscon_rk3288.c +++ b/arch/arm/mach-rockchip/rk3288/syscon_rk3288.c @@ -28,159 +28,3 @@ U_BOOT_DRIVER(syscon_rk3288) = { #endif .of_match = rk3288_syscon_ids, }; - -#if CONFIG_IS_ENABLED(OF_PLATDATA) -#if IS_ENABLED(CONFIG_FDT_64BIT) -struct rockchip_rk3288_noc_plat { - struct dtd_rockchip_rk3288_noc dtplat; -}; - -struct rockchip_rk3288_grf_plat { - struct dtd_rockchip_rk3288_grf dtplat; -}; - -struct rockchip_rk3288_sgrf_plat { - struct dtd_rockchip_rk3288_sgrf dtplat; -}; - -struct rockchip_rk3288_pmu_plat { - struct dtd_rockchip_rk3288_pmu dtplat; -}; - -static int rk3288_noc_bind_of_plat(struct udevice *dev) -{ - struct rockchip_rk3288_noc_plat *plat = dev_get_plat(dev); - struct syscon_uc_info *priv = dev_get_uclass_priv(dev); - int size = dev->uclass->uc_drv->per_device_auto; - - if (size && !priv) { - priv = calloc(1, size); - if (!priv) - return -ENOMEM; - dev_set_uclass_priv(dev, priv); - } - - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return regmap_init_mem_plat(dev, plat->dtplat.reg, sizeof(plat->dtplat.reg[0]), - ARRAY_SIZE(plat->dtplat.reg) / 2, &priv->regmap); -} - -static int rk3288_grf_bind_of_plat(struct udevice *dev) -{ - struct rockchip_rk3288_grf_plat *plat = dev_get_plat(dev); - struct syscon_uc_info *priv = dev_get_uclass_priv(dev); - int size = dev->uclass->uc_drv->per_device_auto; - - if (size && !priv) { - priv = calloc(1, size); - if (!priv) - return -ENOMEM; - dev_set_uclass_priv(dev, priv); - } - - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return regmap_init_mem_plat(dev, plat->dtplat.reg, sizeof(plat->dtplat.reg[0]), - ARRAY_SIZE(plat->dtplat.reg) / 2, &priv->regmap); -} - -static int rk3288_sgrf_bind_of_plat(struct udevice *dev) -{ - struct rockchip_rk3288_sgrf_plat *plat = dev_get_plat(dev); - struct syscon_uc_info *priv = dev_get_uclass_priv(dev); - int size = dev->uclass->uc_drv->per_device_auto; - - if (size && !priv) { - priv = calloc(1, size); - if (!priv) - return -ENOMEM; - dev_set_uclass_priv(dev, priv); - } - - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return regmap_init_mem_plat(dev, plat->dtplat.reg, sizeof(plat->dtplat.reg[0]), - ARRAY_SIZE(plat->dtplat.reg) / 2, &priv->regmap); -} - -static int rk3288_pmu_bind_of_plat(struct udevice *dev) -{ - struct rockchip_rk3288_pmu_plat *plat = dev_get_plat(dev); - struct syscon_uc_info *priv = dev_get_uclass_priv(dev); - int size = dev->uclass->uc_drv->per_device_auto; - - if (size && !priv) { - priv = calloc(1, size); - if (!priv) - return -ENOMEM; - dev_set_uclass_priv(dev, priv); - } - - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return regmap_init_mem_plat(dev, plat->dtplat.reg, sizeof(plat->dtplat.reg[0]), - ARRAY_SIZE(plat->dtplat.reg) / 2, &priv->regmap); -} -#else -static int rk3288_syscon_bind_of_plat(struct udevice *dev) -{ - dev->driver_data = dev->driver->of_match->data; - debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data); - - return 0; -} -#endif - -U_BOOT_DRIVER(rockchip_rk3288_noc) = { - .name = "rockchip_rk3288_noc", - .id = UCLASS_SYSCON, - .of_match = rk3288_syscon_ids, -#if IS_ENABLED(CONFIG_FDT_64BIT) - .bind = rk3288_noc_bind_of_plat, - .plat_auto = sizeof(struct rockchip_rk3288_noc_plat), -#else - .bind = rk3288_syscon_bind_of_plat, -#endif -}; - -U_BOOT_DRIVER(rockchip_rk3288_grf) = { - .name = "rockchip_rk3288_grf", - .id = UCLASS_SYSCON, - .of_match = rk3288_syscon_ids + 1, -#if IS_ENABLED(CONFIG_FDT_64BIT) - .bind = rk3288_grf_bind_of_plat, - .plat_auto = sizeof(struct rockchip_rk3288_grf_plat), -#else - .bind = rk3288_syscon_bind_of_plat, -#endif -}; - -U_BOOT_DRIVER(rockchip_rk3288_sgrf) = { - .name = "rockchip_rk3288_sgrf", - .id = UCLASS_SYSCON, - .of_match = rk3288_syscon_ids + 2, -#if IS_ENABLED(CONFIG_FDT_64BIT) - .bind = rk3288_sgrf_bind_of_plat, - .plat_auto = sizeof(struct rockchip_rk3288_sgrf_plat), -#else - .bind = rk3288_syscon_bind_of_plat, -#endif -}; - -U_BOOT_DRIVER(rockchip_rk3288_pmu) = { - .name = "rockchip_rk3288_pmu", - .id = UCLASS_SYSCON, - .of_match = rk3288_syscon_ids + 3, -#if IS_ENABLED(CONFIG_FDT_64BIT) - .bind = rk3288_pmu_bind_of_plat, - .plat_auto = sizeof(struct rockchip_rk3288_pmu_plat), -#else - .bind = rk3288_syscon_bind_of_plat, -#endif -}; -#endif