From patchwork Thu Feb 23 16:35:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 2731 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 379643F25C for ; Thu, 23 Feb 2023 17:36:20 +0100 (CET) Received: by mail-pl1-f197.google.com with SMTP id iw4-20020a170903044400b0019ccafc1fbesf312027plb.3 for ; Thu, 23 Feb 2023 08:36:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677170179; cv=pass; d=google.com; s=arc-20160816; b=TPjUNOX1RrNlzpirVJuM/elHn3UB+1pABaNLquxbbbsFUadT8JZ+AIFq4MlfqhpAzg OdcLr71D8DdvjcLe7wdjR64altN5ooOrre/+CTHpY9ND8US/1SJ5nRVsIYVAIjZJcyNA HM++Eg1j1nce1aHz9dQdUoj+bhTPx4X1msn0j5bq/TYj5RpCAJU8RG8lVr6NuPMDSXVY MRcOmBYkamhFZHlUEAOKL0RKsV9IqEn+EhW7/yWng3iXrw4d8oyhrRyJPl3P+qOXCNLk t9Kmh0Bkaq8OWvX8XeCRWl/vQhc2W6YYtcs2p5fvuTkjc3P5Jaz1T7BWre+i2d93zkIk BwGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=tDWdpgvh3uY0PMu+8QXmNAwnIM04jk/aLJsEadqDDgM=; b=Ey84EWLSu0YFANpTqjORnX4Sjg6h+TLzLcojJz9FM+XH7IT4j9Hjm3ZCZ1CC0Pw6io x+CmaRxJgpMmkKcBIJnqGmk9omU5eoQYlkyKIbsuzeExCV034GG6L6qWooYlAqLlG6Em fiOsI5mJZ7IzWIErIwyM9cj3RUhNqBN7yP+nPqcOoHkQ5JbNUsHnAzuwUfDTmfvmz6y8 Mxw97GZUPP9DaLDuCF5cDTdE4AVk+SNHqleyCB+OPA5tGbIN2XTdtVi77UEoAcIImfME enaIo4qd46tjxbpqu/DkhCNUnz8Ep9sfVXaEB2jODRbzJv5uuPanrkXHsQXNxVWNofSv U2SA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AjAG8PH+; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=tDWdpgvh3uY0PMu+8QXmNAwnIM04jk/aLJsEadqDDgM=; b=J/NNLqxMj9o1LcOacyxzmkujsqmTGY5TR3gfrTxqzKXpODE7NQecthEH/cPCL4xHz+ cEjdBzTmJp/X87BMuO0uwDAXrieOBFU1upuwMH8AxeU1gf9k49lWjLB9Mdc9OFB9DIfH tT0qfm47aJfLX9g1m1DXz0T6rrln9dM3E4ohk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender: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=tDWdpgvh3uY0PMu+8QXmNAwnIM04jk/aLJsEadqDDgM=; b=DZj2GaBETnMfAXjYFsE9z7Xiz6RGSMLSp7ddoy8GAHuT+s77L+iknI0n+DHtKQS04N eyBq4PqOwull80GchN0py7AtwelFUHRqNJyadMgS3AAcVEntYhxUB2lupc0127fO0FDW 90nYpgp2Ji/5HEZK6t+3pQGQZJnEAe7fsNuVdG+h/Ghcc5yuGZOS0bn3s+Q4Bjz6daMH 8vTq62TrTQGq/lWSuPJwkcC8pTeBtvIdG2nrkf1Bryq18TnWK4wM1PVLkQ/dytUw3r83 wiGtW8jhKPp9Ru3PwGQON7x0IC0YbB8BK6nDadWaaL5G2L9DtS0TvihcsM6dasZnnmXX E0ZQ== X-Gm-Message-State: AO0yUKVpLkGzYB3sEw9eduVuVsgMdZkXM3gNlDD2yvmUMvS3cOGyTyVS dJmKi9VaDnyFIQj3mwXqdqtB8lks8cyPDQ== X-Google-Smtp-Source: AK7set+LtMkI5tCHOeprEpC9kCL910YF5SOakwNwi0tIAwEcceiTASC56PlfZgWOpkgByeshiHpm6g== X-Received: by 2002:a63:7056:0:b0:502:e4df:5f3f with SMTP id a22-20020a637056000000b00502e4df5f3fmr1121046pgn.6.1677170178883; Thu, 23 Feb 2023 08:36:18 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:5d82:b0:234:2ef4:2e9 with SMTP id t2-20020a17090a5d8200b002342ef402e9ls106953pji.0.-pod-control-gmail; Thu, 23 Feb 2023 08:36:18 -0800 (PST) X-Received: by 2002:a17:90a:1e:b0:236:70e6:ef08 with SMTP id 30-20020a17090a001e00b0023670e6ef08mr11547821pja.49.1677170177958; Thu, 23 Feb 2023 08:36:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677170177; cv=none; d=google.com; s=arc-20160816; b=D/YOehIJRCFR31B6ybYuCPtHlc9CZBpRUIaZOud2Hmw4Rt7PEQVVZ+nmUX/k5KCvxA AiE7MAYoP8ihadLat775KYxD3kaJiS+e1zlhOoNdwdgJ3WPGql1s2KGV5YeABlQWTKiL /NVMh7kzrjr4pE5a4sEHuYnkEUcO75PbVXilP7LK74U5Mc/Or4bS8O6Z1mfXqRyCvn4V fQyk1eDdgRFFqEcXgpInrM50PwV/DPNO56PDvayclESScr54rYRRTqRq95QrfAtQsbsH xPQ7mOgvLeilQfBOvJY4azLLEQE72rc8RKitwsLHlXlUDTXNWVhhClDeNjDBITYORB8J 5LYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=FZzM+sDdAbPFleKvxEEx3f9KxaXSzaCSvxz7fqihY38=; b=FJwtCv/4WXOK5ENj8w0Fx9X2m/GQjDbHbqc5+COT03/+ZzFt15qBKBb+2g/lMjniP/ z0bvaz+ZpkzBOBoevkJPULB8txFn6ouJZSmseSR1A9DHXFLrzsiiHPwH+ND3sDeQUmkW BbPHV2dvQJfP8Tq6JslxlsDZ4s2oDJYBQOpuh27PgVmP1A3TTSTkiNYGJplcbvWdSW9a Lu7vjtuSLFAJ9Txbee1fZNIb6gRggp9H0sJzFgqAxFaWoh9K9ORjPQUUHz4P7j53Iu0h Kv75u6UB8uIqg4OSQSn2S4I6mAHKwnpppAj9yn2FgCUhVY364S0kdETcPUEA3Qqljjvq WgXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AjAG8PH+; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id jh19-20020a170903329300b0019c2d2ec2d3sor1822524plb.115.2023.02.23.08.36.17 for (Google Transport Security); Thu, 23 Feb 2023 08:36:17 -0800 (PST) Received-SPF: pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:e886:b0:199:15bb:8316 with SMTP id w6-20020a170902e88600b0019915bb8316mr16510049plg.68.1677170177663; Thu, 23 Feb 2023 08:36:17 -0800 (PST) Received: from localhost.localdomain ([2409:4070:4895:2597:f346:e6de:b0d0:cfd2]) by smtp.gmail.com with ESMTPSA id jf19-20020a170903269300b0019b0937003esm4379366plb.150.2023.02.23.08.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 08:36:17 -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 2/3] rockchip: rk356x: update the dwc3_device register offset Date: Thu, 23 Feb 2023 22:05:52 +0530 Message-Id: <20230223163553.647775-3-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230223163553.647775-1-abbaraju.manojsai@amarulasolutions.com> References: <20230223163553.647775-1-abbaraju.manojsai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: abbaraju.manojsai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AjAG8PH+; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , update the dwc3_device register offset in board_usb_init() for rk3568 platforms. Signed-off-by: Manoj Sai Reviewed-by: Jagan Teki --- 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 */