Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp66852rwd; Wed, 31 May 2023 19:09:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7AKPjpgFYFCGFVCH2T22F5HWrdv/+rExDFXWu6r2TlPEpNdAMbJcNpf32cDqZ8B2Xt0a1+ X-Received: by 2002:a05:622a:188e:b0:3ef:3960:a1b4 with SMTP id v14-20020a05622a188e00b003ef3960a1b4mr9855708qtc.10.1685585362997; Wed, 31 May 2023 19:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685585362; cv=none; d=google.com; s=arc-20160816; b=cJ6H3CKeCGv1vjeCqiA1dL9abkGnf0nALHZqXiXBG6Bm6MZAKIy44CQB8TpX8fWsDr tSgHgbB393LtaXwhpmBaY4aEcyZf1DR1TyH5PNFP4Ktq2/XHlHJKmup61KbMd0iyhca0 n/2xJj3FfwInnb1peBoq9fM/Si+hyAxbc9AXEwYhEEtc5dg9OONxlif67QlEs5jhX/CX OAQ3HlrFZnyl6x4lGWRjXxoKSWqIQ4u028QagUMVuYYmh7NbS52CJasdmuApu+AwKBKO XlObIrjnMCayjLCCuAVzcoHX1N2VG3T5HuI/a9TprYY9X2gxXvQGXKLMuJ0X6OZWB6Ha kkAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yQoSuTtBJera/qhqdd1CLT9tpMgseaYL+q7uiB1AsuM=; b=nPwO8pvuUoxq2l4WTvPn3DKL0iMXKCepQ4fC6dLyb9epDVfeU3WImW/lQo0nQO+DZL o2j+nCJ3QTBjyMC603iy45Wzvt3p9OWsLuqf3lOE8WHR4Y4xY3BBui7AjjEvkpt/eMB4 I68m7+Z3PNoyEPgEFxXxpNbCMX4boSEz/t07t6+n10SiF07uXl1h9wX6lryr5voOpfhI zL4+H9FSy8ohpSsdVBLCRDVWpvd/owPCBzO6YhI/T9kMZz5n8Tfa7duY0dQO6ehpO7r1 eJmTfSTyRe/mDpogOgDWYA4QKLtLvuA3od3DzE6ph7v9Mu205iSEx7cmnU2ZgfNec98D 18Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LpZNjTPW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a637f12000000b005347fcae977si989534pgd.832.2023.05.31.19.09.06; Wed, 31 May 2023 19:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LpZNjTPW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbjFABv0 (ORCPT + 99 others); Wed, 31 May 2023 21:51:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjFABvZ (ORCPT ); Wed, 31 May 2023 21:51:25 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F44B121; Wed, 31 May 2023 18:51:24 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-394c7ba4cb5so133230b6e.1; Wed, 31 May 2023 18:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685584283; x=1688176283; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yQoSuTtBJera/qhqdd1CLT9tpMgseaYL+q7uiB1AsuM=; b=LpZNjTPWWTW9bKG6YL5+Dip/n97HBUvZDnnqz85s2nXvj+FqLQET0foMLYYmzV9moY y5AkTd93XzYUyp7je0hwV7cZIh9Yk0m4871CqMVKrpI+HfeWAfWp5oRcJP/1C2XDQj1k N0dQHkLGaY+aL9JoOGGy8JgY1MDNfYvcjkQ5QiXNnXilNmk1hti4nbdvvn6GSq1iazm5 Rwz1y8rvQr8r6MsupjxdZrkeEscDYgfAsWpRmq0vsH72ducleha9dPnYQvphKwyiIGPy S31YEMRE0j3IBbCRrODsBarAvxrsCMd/zA2ymnMlDswpYq9CXkRP6RegdOspXiL72xIf uUHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685584283; x=1688176283; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yQoSuTtBJera/qhqdd1CLT9tpMgseaYL+q7uiB1AsuM=; b=ORkIgHIT6efujL70tOaV30972JJk0wzoTw8a9Qtc8c0xxSZADoPq48K1YcSHObl5Gv eCZUyDrIIqWG+Q+tRqLH/kNtnnxn5pxvNPdn2DAaxJ8vcpSWP3D5e3piN6mXmk5sARfm wxMowuhRzi+VvKmWq7j3MnligZZ+QHdQfVfum1ovJj42QYRcj87MF+am8OGJB/24XskI EuGIVLzwZOStPN2Ay41lcSum2crkq1Kriun/iaPB02hR/0lL7GIV0lSNIjbV06mwLoRv 4BAeTzJjoAfsfMatsu0OEb2LvMNBBqtbjvWC6mL15doipXvJlDkcafmupHQiHZmE39yb grcQ== X-Gm-Message-State: AC+VfDwLUujTp4U8T9u/Lfz3+v7jsvGnGJvvGQNoG7j1lmSjDGEnBYRB LJpdpVp7101iq3S3NA5/jTc= X-Received: by 2002:a05:6808:1890:b0:396:9fe5:1a65 with SMTP id bi16-20020a056808189000b003969fe51a65mr6693453oib.16.1685584283284; Wed, 31 May 2023 18:51:23 -0700 (PDT) Received: from localhost.localdomain (2001-b400-e454-8dbb-0377-d3ab-ebce-7b9b.emome-ip6.hinet.net. [2001:b400:e454:8dbb:377:d3ab:ebce:7b9b]) by smtp.gmail.com with ESMTPSA id e2-20020a17090a7c4200b00253239144c5sm165795pjl.42.2023.05.31.18.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 18:51:22 -0700 (PDT) From: Victor Shih To: ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw, Greg.tu@genesyslogic.com.tw, Victor Shih Subject: [PATCH V5 0/4] Add Genesys Logic GL9767 support Date: Thu, 1 Jun 2023 09:51:11 +0800 Message-Id: <20230601015115.406002-1-victorshihgli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v5 (June. 1, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * Patch#3: adjust the alignment of definitions. ----------------- original cover letter from v4 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v4 (May. 31, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * add VDD2 definition for power control-register. * Patch#4: use SDHCI_VDD2_POWER_ON to instead SDHCI_POWER_ON in gl9767_init_sd_express() function. use SDHCI_VDD2_POWER_180 to instead SDHCI_POWER_180 in gl9767_init_sd_express() function. ----------------- original cover letter from v3 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v3 (May. 31, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * Patch#2: use msleep() to instead mdelay(). * Patch#3: modify the if-else condition and content in gl9767_init_sd_express() function. adjust the order of definitions. ----------------- original cover letter from v2 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v2 (May. 30, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * Add set SDR104's clock to 205MHz and enable SSC for GL9767. * drop export sdhci_check_ro() function. * Patch#1: add gl9767_vhs_read() and gl9767_vhs_write(). * Patch#3: use mmc->ops->get_ro() to instead sdhci_check_ro(). use msleep() to instead mdelay(). modify the wait time for Power valid to CLKREQ. drop unused definitions. ----------------- original cover letter from v1 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v1 (May. 12, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * enable MSI interrupt for the GL9767. * add support SDR mode for the GL9767. * export sdhci_check_ro() function. * add support SD Express mode for the GL9767. Victor Shih (4): mmc: sdhci-pci-gli: Add Genesys Logic GL9767 support mmc: sdhci-pci-gli: Set SDR104's clock to 205MHz and enable SSC for GL9767 mmc: sdhci: Add VDD2 definition for power control register mmc: sdhci-pci-gli: Add support SD Express card for GL9767 drivers/mmc/host/sdhci-pci-core.c | 1 + drivers/mmc/host/sdhci-pci-gli.c | 406 ++++++++++++++++++++++++++++++ drivers/mmc/host/sdhci-pci.h | 2 + drivers/mmc/host/sdhci.h | 7 + 4 files changed, 416 insertions(+) -- 2.25.1