From patchwork Wed Oct 19 09:00:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nehal-bakulchandra Shah X-Patchwork-Id: 9384847 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2D99260762 for ; Wed, 19 Oct 2016 16:34:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EB7128694 for ; Wed, 19 Oct 2016 16:34:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1305928DBC; Wed, 19 Oct 2016 16:34:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EA8728694 for ; Wed, 19 Oct 2016 16:34:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756393AbcJSQeM (ORCPT ); Wed, 19 Oct 2016 12:34:12 -0400 Received: from mail-cys01nam02on0048.outbound.protection.outlook.com ([104.47.37.48]:27264 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756348AbcJSQeK (ORCPT ); Wed, 19 Oct 2016 12:34:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5HA02VNC5Y0bF4exM38I6J85+JpO0fLVK+mDroYvVHc=; b=gWpQRgO8bBCYiTPzsNlmIxLaaB+J98sxjAKFiOvovGXGi+ZSLgMsWhb7Ea+j7j/KQhwrLGOnY1yVgTDBD9SZfZ5eKneBS3SnXv3BXW06x5I2Pg0F940sFHZ7oLWuNz7DOZIgLFMPQwGeXL1jdaPZim2bhn6rBz8gCdN9j7B/EX0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Nehal-bakulchandra.Shah@amd.com; Received: from [10.136.131.124] (202.56.249.162) by BN6PR12MB1345.namprd12.prod.outlook.com (10.168.228.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Wed, 19 Oct 2016 09:01:10 +0000 To: , CC: , From: Nehal Shah Subject: [PATCH] i2c: designware: Add clock frequency for future AMD I2C controller Message-ID: <0e262a14-4483-7983-7341-703c8b4d7fd6@amd.com> Date: Wed, 19 Oct 2016 14:30:32 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: MAXPR01CA0022.INDPRD01.PROD.OUTLOOK.COM (10.164.147.29) To BN6PR12MB1345.namprd12.prod.outlook.com (10.168.228.15) X-MS-Office365-Filtering-Correlation-Id: 7162ae87-9da1-4744-b511-08d3f7fe7969 X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1345; 2:+9nY0tJ5ALBC0t2z/Jiuks/TIgHMn9EEi50EQHN7hN260Qs+7WOrqLXcjXKVZpwg14URjBrws2M7HZU6VCmf0F+mzalRXb9r56sr+cJmpnsZWe4u6inl8zqkfFJ3aFCY/32mXvHQ/jeaN10q7xewU+f/JjwnVxcy2xTWTJukv4ylCHBIrW24PY4vAs7wmjyQoAHbyI0sc+9zXDz/prbCxA==; 3:hgvICV0AwsmGrTQL1LH9hheMIIBRAfo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96qG6zl8ftPCOlUeegE28T98ZNKNx/V3g6dYloyyBf8WPSmwDYI45jA0+6s6Csp0aNz9o5FQcgrRQ82ZjH7/cPpC+9TBTo3R659Q5pD2P4DM+opUGn/wUHuK9yQ55fAsQXcVJs3dOXid20PyfmGZ1EnOn4kqrjv59krmPEocW/yRbqUXDeYK7du+TLdE6d6ncQQuP9Yasj; 20:De8gpHH0W2iPq8uTwJtUBaTYS+klBKAa6pFG7741HP9f4ZJuUvACsLo6ZLpYkmY+DnaBMHIdb06kVh11X3LJyvxbzfaFx6kI8S0awmtyqXSe9YO6iMdohVXphEA3Y9LRYCVW7WnXgEh4+n1ufgkf2pc9dURlY8Oj2rBRVKISj5fKBiu9VScOnPAkh4KtYmx0Ixtw47sihHF8/rLV6J4m6vAEPQnvR+lN1kUo6ZYViZwzCzgYBMFHMgvSxsGWnooQrY08a9uQyedhtl5DVHfh9iuVHYY6R+t4KvEP6teN+I1ok5LcOfPQkzvDaLyvBJH5VJgu05G6bda9+YuQzGtcywaAWhsBPgfG59EmjSGi1A+NzubUoX4PMicpIpdSZHLY1XlwMX+Eoy0XBIZxTEWJVdQi5hZCCExPbXkQpaBLRC0pPxKtg9sKBgUaC4HgUn7yg6Uw99xAL6UrrNMd/Os662dHM0gNjJiuvTf+5K4T2XjBAK/0Y1okUA4cBAH9q44j X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BN6PR12MB1345; BCL:0; PCL:0; RULEID:; SRVR:BN6PR12MB1345; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1345; 4:MMkuPCNkflBQNRkXMHaOW6WwdJxZHJNTzu6RpquCETDE6qxwO6xaBXRk593WzWMtCcIS5dln3jvbp5qDB7lW75DWpRQj3eIUqyYMm1MndrLSTfObEaLMyF/ls9tIn2etv5dzlFRaoX8xvonsygzkbsjksE05YfCwfc7uCP8wf9STBb5gWQ2Mfn+al1OXvjmtqAvG82V7mjV+ont3cVityIRIGSSE2nwnBNF/3/0SaXYmPBWy4ls5JYmQodxh4PnAerscGtvcbrVPjl9KR1Qw5yULSgl2LlnrdAQuN0cdb9+RBrchyhzQyPIBuS1wkB/d9IuHo4eTW6FilqTDyN5lNQGsPgcDG4iZsWpgvXzZgh+Fv1Vt6w+XhJZFGXVmU3t3X221XJOqifrkan4R3ei2cT4xXCR3euGrrzCOSJkr/juPj2kkSjxO9C/MByDoEhVii02FSVlhYEMegDt6dyefmA== X-Forefront-PRVS: 0100732B76 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(7916002)(199003)(189002)(305945005)(77096005)(50986999)(33646002)(64126003)(586003)(106356001)(4001350100001)(5001770100001)(97736004)(229853001)(5660300001)(65826007)(31696002)(68736007)(6116002)(3846002)(86362001)(92566002)(54356999)(7846002)(7736002)(19580395003)(19580405001)(2906002)(6666003)(101416001)(23676002)(4326007)(230700001)(83506001)(50466002)(105586002)(31686004)(36756003)(8676002)(42186005)(65956001)(189998001)(81156014)(66066001)(47776003)(81166006)(65806001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1345; H:[10.136.131.124]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMzQ1OzIzOlRTb3FFbE9NNFRHbFFncHJpN1JZYnFzbldX?= =?utf-8?B?UlVRZEZCVXpSdUtDUnpqcHFzNlpIZVZaQzJoY0N2eHVqTFRUTitWNUp0L2xy?= =?utf-8?B?bnhSMTZQSzVVZC9TbW9McldVZVVHRW9BSGN6bjZRSWhuTGdDTDArZHl0RGpV?= =?utf-8?B?TjFZZjZJSnQ1NWswcytibk1iMDRXaGpVVlVtWEhtMldmVzN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a2IBjzI8CuPxWeOzwvnDlxBcekqhxP0WisNpET6B+sRwytlZEkIsQvSRWFoLOBNxV8=; 5:4tlGUije13mwHiaC7SbPwL1AJ1Lfm9NK5pgSTZxNbQWWD6bS3NVz8ilC7lOgSXb3W9One0UW2DS/uevdhNsGeCZ1Nt0s56FJ1kPOFQAcME/NaZDdHUv3tHku8/fJdWTdHRv4Z+LSh6q6gYpEAP1Ag522uPBy1cxecPs/G05Td4I=; 24:FecCo6gmAnkQF0sylB1km0sPN/YHvSye3SW0AdwI/aXGHNTpwb1nnDAal1JK2q5EbKHb6LSAHRgGndTWWgDJkpW19WAMnweNREMAmkTRAmE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1345; 7:u1McyY6X1RSbbJ45zCG9y3oZDLeS4RIUiEHa+lefJtMic96lOXQKVWdJb8prmWShw82rxYGWPRI3ZDyktNxa+W/z+TIIZ6mkkUiT71htnxYPGZ8apfAeAseQOKiHpSpeNTFM54Lt4KHHcjP/y03k7zBwzbuji3ieBCMADaWOCBRiWbYE9k/+0zxkA3d4QOQvEnWqA0Tw2YYSS3GXbdZTqipMpbJUki4lUpj2zpubSSGXhPYlaOT5vzxCJn/AHvYt6Wm4LCWDYLSLt/URtYlYYo5CIEtjny5UwH8h1q4SrBqNMHknYE+bt+DXRWMkDFfqR6kWd7C5YObYUe5jHjlhmGt70I5PjirnwLQvGqzAe0Q=; 20:qtX9OPqw20sgmkmSMCpPVR5cJ1bphPFvCYfogfB03mujXiMl2bos8Bj8VSP9zBXHtoKXGfLfVV36JQqwEpQSyOWqCIwMEmY2FS0iwn+fig+nP/UD3Q5Xa2jrwSdzchvhsLE74b7iBg7NjPDQuYKJld2dnighO6sYYf0voucJrSG61yxEuWq12ujEqmkbT0vHgxV7suUiHmbci+x5NbJx6JSVjoLAHMc60hEc7+tblDTMK5B81b2ZTtPU8ehyZy5K X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2016 09:01:10.4424 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1345 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch supports 150 Mhz i2c clock frequency for Designware ip of future AMD I2C controller. Reviewed-by: S-k, Shyam-sundar Signed-off-by: Shah, Nehal-bakulchandra --- drivers/acpi/acpi_apd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c index d58fbf7..5ec7f3a 100644 --- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -77,6 +77,11 @@ static const struct apd_device_desc cz_i2c_desc = { .fixed_clk_rate = 133000000, }; +static const struct apd_device_desc wt_i2c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate = 150000000, +}; + static struct property_entry uart_properties[] = { PROPERTY_ENTRY_U32("reg-io-width", 4), PROPERTY_ENTRY_U32("reg-shift", 2), @@ -162,7 +167,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = { /* Generic apd devices */ #ifdef CONFIG_X86_AMD_PLATFORM_DEVICE { "AMD0010", APD_ADDR(cz_i2c_desc) }, - { "AMDI0010", APD_ADDR(cz_i2c_desc) }, + { "AMDI0010", APD_ADDR(wt_i2c_desc) }, { "AMD0020", APD_ADDR(cz_uart_desc) }, { "AMDI0020", APD_ADDR(cz_uart_desc) }, { "AMD0030", },