From patchwork Mon Jul 13 00:59:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 11658505 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8422722 for ; Mon, 13 Jul 2020 01:01:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B1BE5206D9 for ; Mon, 13 Jul 2020 01:01:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="jmNcGWe+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726262AbgGMBBM (ORCPT ); Sun, 12 Jul 2020 21:01:12 -0400 Received: from mail-bn7nam10on2054.outbound.protection.outlook.com ([40.107.92.54]:13281 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726261AbgGMBBK (ORCPT ); Sun, 12 Jul 2020 21:01:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nuqbzZWw5eB/3bm1VLIx9hK77ylbfYOKTdQ5m77uydfJfv9nk7TJyBnMsr5w5Qz2EwC3TPBmcZ/bt9/HeKdOX2CqOdNPy1zimjyBACRbceaVhdLqTWpqtiLIRDmXHlKbYVy+J2HmyvxzzarwDtG7xZiLg0dHYpf8PPw48y2NaGt+ckV0ly6OxLEhXaAbkIcgNIeDhPesmSBwzlB5Zt1Q9YzGOmqHp8mk3Rb6EXSzocuIibj+exjBvOOYy6RpVJk8BdQii9eOzcj2TpHW28ylrzVIrey6kF0WO9Ycu6yvEQO19aN2r69huWvWh5MpmV6YVa8UeTEsWWPS5HB13o7UeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wg23GWQxOXVPN9lG8c190hSKuu6xf2gHNLBKYE7EQyU=; b=DzXazzNf2cBzKsmwbZRkPx5egQ26EMcj6BF527wPXtFyPvSLI/VmlPJLHPLmZiXyjVK9jDnAzeQtoSPD3LH/ubfONbm+LIQohmXpEHVIJIiIlO7gql1bdPpEEvgEND/AJFJebJ8vbdau/IG/xnb+jkIZ3t/rqEgap9oNaLXwoNtiRr4k/YWgcUi/NUwDUM3ncUaVraz7yKIHkIAs1OaA7E9bSyuJOgAy3ickuYi+xN9BuVi2Mcggm0KSG5LrQF+BGYj6sVfXFsj2IoSlPVunHqbpHula4LLK7fIsPCUuW+/Rz26virin+xyLyvjXVl7rnpBbyW7YTeCDrDAMgzjChQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wg23GWQxOXVPN9lG8c190hSKuu6xf2gHNLBKYE7EQyU=; b=jmNcGWe+v1+xKweaDNft5LXdn5smyS+GUh3cat8kBALvoRnKgTW672+TJhxECk/33HeOi96tK8AChLji9F5nxCgMSNjTlZ0PStPUhHPBI0bJrl3eW5of3AGVToQli5Fk87Fn1V76e+H3gKNYeGqFQMbVh8zr8nob7ofPitt+PNk= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from MWHPR12MB1599.namprd12.prod.outlook.com (2603:10b6:301:10::12) by MWHPR12MB1600.namprd12.prod.outlook.com (2603:10b6:301:f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Mon, 13 Jul 2020 01:01:03 +0000 Received: from MWHPR12MB1599.namprd12.prod.outlook.com ([fe80::25b9:83b0:4b17:2c63]) by MWHPR12MB1599.namprd12.prod.outlook.com ([fe80::25b9:83b0:4b17:2c63%12]) with mapi id 15.20.3174.025; Mon, 13 Jul 2020 01:01:03 +0000 From: Akshu Agrawal To: akshu.agrawal@amd.com Cc: sboyd@kernel.org, "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org (open list:ACPI), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/5] ACPI: APD: Change name from ST to FCH Date: Mon, 13 Jul 2020 06:29:49 +0530 Message-Id: <20200713010001.18976-1-akshu.agrawal@amd.com> X-Mailer: git-send-email 2.20.1 X-ClientProxiedBy: MAXPR0101CA0056.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::18) To MWHPR12MB1599.namprd12.prod.outlook.com (2603:10b6:301:10::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from local.mshome.net (122.167.38.75) by MAXPR0101CA0056.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20 via Frontend Transport; Mon, 13 Jul 2020 01:01:00 +0000 X-Mailer: git-send-email 2.20.1 X-Originating-IP: [122.167.38.75] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 76dde9fe-1276-4d6f-eb2b-08d826c83703 X-MS-TrafficTypeDiagnostic: MWHPR12MB1600: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hc/rTk8V9EkAOKpTpg7vfGfWzwpoSvYdvdwgzZQsIiLXSkTqT8DEza2BpcErGEzvScnTglt6t8CExowHg2wPviK/AT6OjnNLDG4O2/EtWkLz4Er9Zczlspijm4zqFFZbNoeRfeOn6cuwjhn6aVip4ZmLkJv7JkBFHWwMo2LgoaoEzxA0hM+61WcpWc+5PPy84TBf7Ct9D3Z5IyZI4jNGxAk5crqG7mDfiYsSrrike2h/sJ2MY8JNXGmlyKBcIlbuP6Bzla1bEvfYg68Qdq0z0NMi4AeNdwYUY2lfVh4qjWa5c8dnRzoqD3UoTLHjJVv9HXniIVzUlv6uSHFGi3DiLA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR12MB1599.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(136003)(346002)(376002)(396003)(39860400002)(52116002)(478600001)(2906002)(1076003)(54906003)(316002)(6666004)(34206002)(4326008)(8936002)(6506007)(37006003)(5660300002)(186003)(956004)(83380400001)(2616005)(16526019)(44832011)(6512007)(36756003)(26005)(66556008)(66476007)(86362001)(66946007)(8676002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: WbPyfZ6nEtsRAvTKW0SwOFgjU9AcOvNkuWrPBJj6h48gCvBb3SGEiOEWDdxfWSt2zTCmWdQUVClI+2betExRNbTduTTMQPEehAfpaID1N+pgaDlIQdNUl/HEA/CRZ2+p0YidN5eEyPSdlt2SW/nXKGCx+voLR1lGUm5S8YHIvhrq6FxOIpDtvpla0GlLEO689ZrYWfdtPfSv38AnOgHBw61ILqq+CZ1ok2ImJN5esIBVmsZ1XMEGZXtfx3HKKAKs0CQqW5Ig0SPzHP+dXePcYMFic17u3J6fPCn+y7RCzzJPVXWCK3+VAPNfhOQIUWCP7UFUAf4oOEqV0clYzcz2xSfKkycAj+EUSgLN7g3DYiFcr0tPcAK7YZj0Bhhzwl8mcsQhu5uiTIaL9tPny3DIHpIBLc4+yOP/qj0+ASs+rN0i+XBdi8efXfQLbhq3aJV2/Fpp/fsAgcW8dH9NVuNZbYiGuvtigc1PRfsTOgpymBs= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76dde9fe-1276-4d6f-eb2b-08d826c83703 X-MS-Exchange-CrossTenant-AuthSource: MWHPR12MB1599.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2020 01:01:03.3822 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FrqTtGu/BvI3lRODtKf9+juM6boeBGZvH2EC3DLJW+pa5xO0Kk+9l4Hw55fJUvshZ8vsIYTkYKZPH9V2qAgl/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1600 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org AMD SoC general pupose clk is present in new platforms with same MMIO mappings. We can reuse the same clk handler support for other platforms. Hence, changing name from ST(SoC) to FCH(IP) Signed-off-by: Akshu Agrawal --- drivers/acpi/acpi_apd.c | 14 +++++++------- .../linux/platform_data/{clk-st.h => clk-fch.h} | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) rename include/linux/platform_data/{clk-st.h => clk-fch.h} (53%) diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c index ba2612e9a0eb..2d99e46add1a 100644 --- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -8,7 +8,7 @@ */ #include -#include +#include #include #include #include @@ -79,11 +79,11 @@ static int misc_check_res(struct acpi_resource *ares, void *data) return !acpi_dev_resource_memory(ares, &res); } -static int st_misc_setup(struct apd_private_data *pdata) +static int fch_misc_setup(struct apd_private_data *pdata) { struct acpi_device *adev = pdata->adev; struct platform_device *clkdev; - struct st_clk_data *clk_data; + struct fch_clk_data *clk_data; struct resource_entry *rentry; struct list_head resource_list; int ret; @@ -106,7 +106,7 @@ static int st_misc_setup(struct apd_private_data *pdata) acpi_dev_free_resource_list(&resource_list); - clkdev = platform_device_register_data(&adev->dev, "clk-st", + clkdev = platform_device_register_data(&adev->dev, "clk-fch", PLATFORM_DEVID_NONE, clk_data, sizeof(*clk_data)); return PTR_ERR_OR_ZERO(clkdev); @@ -135,8 +135,8 @@ static const struct apd_device_desc cz_uart_desc = { .properties = uart_properties, }; -static const struct apd_device_desc st_misc_desc = { - .setup = st_misc_setup, +static const struct apd_device_desc fch_misc_desc = { + .setup = fch_misc_setup, }; #endif @@ -239,7 +239,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = { { "AMD0020", APD_ADDR(cz_uart_desc) }, { "AMDI0020", APD_ADDR(cz_uart_desc) }, { "AMD0030", }, - { "AMD0040", APD_ADDR(st_misc_desc)}, + { "AMD0040", APD_ADDR(fch_misc_desc)}, #endif #ifdef CONFIG_ARM64 { "APMC0D0F", APD_ADDR(xgene_i2c_desc) }, diff --git a/include/linux/platform_data/clk-st.h b/include/linux/platform_data/clk-fch.h similarity index 53% rename from include/linux/platform_data/clk-st.h rename to include/linux/platform_data/clk-fch.h index 7cdb6a402b35..850ca776156d 100644 --- a/include/linux/platform_data/clk-st.h +++ b/include/linux/platform_data/clk-fch.h @@ -1,17 +1,17 @@ /* SPDX-License-Identifier: MIT */ /* - * clock framework for AMD Stoney based clock + * clock framework for AMD misc clocks * * Copyright 2018 Advanced Micro Devices, Inc. */ -#ifndef __CLK_ST_H -#define __CLK_ST_H +#ifndef __CLK_FCH_H +#define __CLK_FCH_H #include -struct st_clk_data { +struct fch_clk_data { void __iomem *base; }; -#endif /* __CLK_ST_H */ +#endif /* __CLK_FCH_H */ From patchwork Mon Jul 13 00:59:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 11658509 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B2CFE14B7 for ; Mon, 13 Jul 2020 01:02:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A684206B6 for ; Mon, 13 Jul 2020 01:02:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="2tGQKnm8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728154AbgGMBCC (ORCPT ); Sun, 12 Jul 2020 21:02:02 -0400 Received: from mail-eopbgr700088.outbound.protection.outlook.com ([40.107.70.88]:48481 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728010AbgGMBCC (ORCPT ); Sun, 12 Jul 2020 21:02:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ej1zyNdT7lCaj3tsgWrKGTN7gtNpT5xlUuteExj/aqf0ui7zwrrsDGm94dG7fCFo4Kouylia/piS53npxTRyvxO3NkyU59SJSGj2acbGRSleKAwqRJBNBlpS2ufKruubB6FURr7JDvjnqy8R/fuiyuX5cQbna8O5lXT1t1QFvItBgiwYRlM9RzKou1uGZF4q9WzfOP1g58u6FXqKIpTqAvIu06XhO8hhJKhYQrgg6TaUOcqZT97hwPyUgNh5nejEvrFVgnRtH5zHKZx3DiH0hgMmPIychAkiBqKuKgQgEQmUB52aqncnedhz2qUrOAu2iZ290MkikaweZ1pm69t09g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wfCk201FvWlIusiJ20M931+ZD+2bvTDB4nRyCEUoB8M=; b=Q+r7/MRBXGBLXJVy+X81hbYQAw/mkv9WgCVy96o7+nuETpB9H4BR6GT7EN4TVdsdtI/UDh5D0lRDa/cH5FitCxC7pgVC54uHO8Fl0ag0r62jU3kSqe9Wwu8Hq2oht8v5hqyd0W8KUQVIojBrUFDcX2KfKxfWbRb5UfSMEE33efEvk0ryNrzOI8bfN36i0QgsjEA9finloPKeLn8XUDGYT19UMrRSEwpR6vIDrDSpH39gbF1pEZ+dvzXeFqM/wL2dSBH+hQLLvcptbEFTBB6+ZX6GVukSzJ8y9/hi2ZJgC2Smo44KH23AtJbWRrXgZeMP9s0Na9v4/lfWCaIeAIZLLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wfCk201FvWlIusiJ20M931+ZD+2bvTDB4nRyCEUoB8M=; b=2tGQKnm8tRvtXPF3fKDZiGdXuHJvKiXVCPog3KZYoJthT+CvtNpGPGGcuE32SWML8GBqg+HTErnK5JXw0N8R8QWhGBYFpAtVFVe9RXFUOaQ7D8TgLzDf8VyciNVtpZhnJM+Z+IzjWrjlGp/+HMQ3SRydI67p+l3/O6hWgN6m1XE= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from MWHPR12MB1599.namprd12.prod.outlook.com (2603:10b6:301:10::12) by MWHPR12MB1600.namprd12.prod.outlook.com (2603:10b6:301:f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Mon, 13 Jul 2020 01:01:59 +0000 Received: from MWHPR12MB1599.namprd12.prod.outlook.com ([fe80::25b9:83b0:4b17:2c63]) by MWHPR12MB1599.namprd12.prod.outlook.com ([fe80::25b9:83b0:4b17:2c63%12]) with mapi id 15.20.3174.025; Mon, 13 Jul 2020 01:01:59 +0000 From: Akshu Agrawal To: akshu.agrawal@amd.com Cc: sboyd@kernel.org, "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org (open list:ACPI), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/5] ACPI: APD: Add a fmw property is_raven Date: Mon, 13 Jul 2020 06:29:51 +0530 Message-Id: <20200713010001.18976-3-akshu.agrawal@amd.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200713010001.18976-1-akshu.agrawal@amd.com> References: <20200713010001.18976-1-akshu.agrawal@amd.com> X-ClientProxiedBy: MAXPR0101CA0056.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::18) To MWHPR12MB1599.namprd12.prod.outlook.com (2603:10b6:301:10::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from local.mshome.net (122.167.38.75) by MAXPR0101CA0056.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20 via Frontend Transport; Mon, 13 Jul 2020 01:01:57 +0000 X-Mailer: git-send-email 2.20.1 X-Originating-IP: [122.167.38.75] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c4e809c8-8fab-45c5-1c0a-08d826c85840 X-MS-TrafficTypeDiagnostic: MWHPR12MB1600: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Okn5yMXAF0Ay7momAzQLdPGTYgXYHxq46D93IG+rx2CF1r7IlLLZ1wD8DqOIdc03gaeDV4id7Mp9bXTvs8MScVCZmndiheCbmMiSrd9Y3+/SK0Tt8KE6qptFvn1MvbULDM5dIysqOwXnWhahcGjf0w8Bah10UhfclG8V3G3dLkv6u3DkOlrZGFhzlDgR1lrdihDP4UHP9yJLay5rMbbZR87p9DpfA+RXzLy8Ae9tvq8K9dsoNHMGMKM6cu9+ZT28I6MdWKzFqsP3/lUxXs6NBm6JhlRpipgtSIavzJXrKmXZLTSKK5hbY0wH03Q4fmaVrWq+ZiptjlmScfZ7MDxCXQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR12MB1599.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(136003)(346002)(376002)(396003)(39860400002)(52116002)(478600001)(2906002)(1076003)(54906003)(316002)(6666004)(34206002)(4326008)(8936002)(6506007)(37006003)(5660300002)(186003)(956004)(2616005)(16526019)(44832011)(6512007)(36756003)(26005)(66556008)(66476007)(86362001)(66946007)(8676002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Cy4Z61W5dz2Irs6uIu8kqAb5h4Wc7Jp/lUv8lix85NEfteIqh0yUBsF89+XpNKsHsQ9FdUpqw2cwLnpRu2rv+xoJobfmTUW8DtXiBaCRFtU6dearwlBbkz6MZmT2RM9sjVS8rg4lG55LWxY9H3j7zx1cmbaBQM26aXSaU6CBCyVaJ2r8YBJl5Q9/zhTSvA7wD6GWXBiUWfmMPt5sEk7VT0NHht5gmoAuKrHuFGdJSCA8h35kiYACh3DQQW4SLMyptOBXCkO7pDAfBL9YBXuxqxeh/lDnPY8C+NRHCWWlympt9niHOfAwSTVJL5WTzHroF1L7mnNS5ZeI+eomS40EhaFL66t8ESh8hSuKk1QoCkFxyb/2SIKW77FroYOrnt9iQe8Hme4p5cQ2uyPfKzjEL2dSFj3OOePbr2KIxrBoP0MKoOiZjDpYkX4yo24e39qtbbVazO16Kypo4LP4d+H64eb2cgEJGtNNmJLic17LQTg= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4e809c8-8fab-45c5-1c0a-08d826c85840 X-MS-Exchange-CrossTenant-AuthSource: MWHPR12MB1599.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2020 01:01:59.1455 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XIf7Qyeqrv9MF184BWiGHVPIGoOF5OtthkmRfoSexYoi6EkZHkFkeDj3nEJFKHUAtnPZ10M5df8d3nJX1cIcfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1600 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Since there is slight difference in AMD RV based soc in misc clk architecture. The fmw property will help in differentiating the SoCs. Signed-off-by: Akshu Agrawal --- drivers/acpi/acpi_apd.c | 4 ++++ include/linux/platform_data/clk-fch.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c index 2d99e46add1a..d879ba28826c 100644 --- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -82,6 +82,7 @@ static int misc_check_res(struct acpi_resource *ares, void *data) static int fch_misc_setup(struct apd_private_data *pdata) { struct acpi_device *adev = pdata->adev; + const union acpi_object *obj; struct platform_device *clkdev; struct fch_clk_data *clk_data; struct resource_entry *rentry; @@ -98,6 +99,9 @@ static int fch_misc_setup(struct apd_private_data *pdata) if (ret < 0) return -ENOENT; + acpi_dev_get_property(adev, "is-rv", ACPI_TYPE_INTEGER, &obj); + clk_data->is_rv = obj->integer.value; + list_for_each_entry(rentry, &resource_list, node) { clk_data->base = devm_ioremap(&adev->dev, rentry->res->start, resource_size(rentry->res)); diff --git a/include/linux/platform_data/clk-fch.h b/include/linux/platform_data/clk-fch.h index 850ca776156d..b9f682459f08 100644 --- a/include/linux/platform_data/clk-fch.h +++ b/include/linux/platform_data/clk-fch.h @@ -12,6 +12,7 @@ struct fch_clk_data { void __iomem *base; + u32 is_rv; }; #endif /* __CLK_FCH_H */