From patchwork Sun Feb 26 13:22:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 1748094 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; 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=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=F21qq4Va; 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PPkpV266dz240p for ; Mon, 27 Feb 2023 00:23:14 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6C7B385947; Sun, 26 Feb 2023 14:22:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com 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=amarulasolutions.com header.i=@amarulasolutions.com header.b="F21qq4Va"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 83BFC85945; Sun, 26 Feb 2023 14:22:52 +0100 (CET) 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,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 B37DA85927 for ; Sun, 26 Feb 2023 14:22:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com Received: by mail-pl1-x62b.google.com with SMTP id p6so3252242plf.0 for ; Sun, 26 Feb 2023 05:22:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1677417768; 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=oVwC4k6m64mBO2MXSs55L/7Jl2eFBYIP0uWLqBSFpIQ=; b=F21qq4VawhCZfu2g1EExhzDxJiUVF9SLbnZZ+b2g45aOn1SubtMQQgmmHgAo7cmoHv NiY60M8oKYBgw8dva7mo3u9uXpyC7uNrZTqltMovdcS/FICy6zMfskGfGZJLEVIfC2xk q4osrdPK5+g3yEKi04aw5g5AAZOHtzOnSRr70= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677417768; 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=oVwC4k6m64mBO2MXSs55L/7Jl2eFBYIP0uWLqBSFpIQ=; b=U4IWUVPrHnJZNvtZvYI1minvYNVuD36AhsWBM1hd1PVwVrhsZURJxpWYg4WizgaPC1 4Fg0Moep8dorLgg4I6MsE3LUqNrXREaLU/QdeZzQuSU6GG8Bx2kf3dg4Lr4AP1sxF4aH tRIvb6SIUB83PpRPnqPrqabskybRQ7u3pZ33SG4G374ZpN/scI9Qwr94QgfFo2L+AIiN k07dLbtHkXZyW1MZEU12/Sa9QONmEgYFHZIHuKNpISZALCdcD/bCzrk+cCQoKXrVUnWS RJ9SC7DPso+xtPf3kjGYVhdEsxnRMKCH2CZpxqajgOMPWIJunMufiJEEC3UqGoIicoAy 2oPA== X-Gm-Message-State: AO0yUKV9xQZ3jdQctKEU94B8ouXDaaPlkjPp02yts9lL68TTDXCGuL5u GkbszzQjlFzlnKwgHzKoPJNcPw== X-Google-Smtp-Source: AK7set9qrQguBiW75SwGKuqGc45Ngk2xEJwAbvxI748XN0EunrBW5MYrJBAe26jUWyRFEdnb6gaTbA== X-Received: by 2002:a05:6a20:4417:b0:cd:4ad1:cffb with SMTP id ce23-20020a056a20441700b000cd4ad1cffbmr351045pzb.51.1677417768107; Sun, 26 Feb 2023 05:22:48 -0800 (PST) Received: from localhost.localdomain ([49.205.253.60]) by smtp.gmail.com with ESMTPSA id e21-20020a656795000000b00502f017657dsm2324657pgr.83.2023.02.26.05.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 05:22:47 -0800 (PST) From: Manoj Sai To: Kever Yang , Philipp Tomsich , Simon Glass Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Manoj Sai Subject: [PATCH v2 2/3] rockchip: rk356x: update the dwc3_device register offset Date: Sun, 26 Feb 2023 18:52:33 +0530 Message-Id: <20230226132234.31949-2-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230226132234.31949-1-abbaraju.manojsai@amarulasolutions.com> References: <20230223163553.647775-1-abbaraju.manojsai@amarulasolutions.com> <20230226132234.31949-1-abbaraju.manojsai@amarulasolutions.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.6 at phobos.denx.de X-Virus-Status: Clean update the dwc3_device register offset in board_usb_init() for rk3568 platforms. Signed-off-by: Manoj Sai Reviewed-by: Jagan Teki --- Changes for v2:- - None --- arch/arm/mach-rockchip/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c index f1f70c81d0..c7729c966a 100644 --- a/arch/arm/mach-rockchip/board.c +++ b/arch/arm/mach-rockchip/board.c @@ -300,6 +300,9 @@ int usb_gadget_handle_interrupts(int index) int board_usb_init(int index, enum usb_init_type init) { + if (IS_ENABLED(CONFIG_ROCKCHIP_RK3568)) + dwc3_device_data.base = 0xfcc00000; + return dwc3_uboot_init(&dwc3_device_data); } #endif /* CONFIG_USB_DWC3_GADGET */