From patchwork Thu Jan 24 21:46:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 14280 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A5C0723E2E for ; Thu, 24 Jan 2013 21:46:19 +0000 (UTC) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by fiordland.canonical.com (Postfix) with ESMTP id 0CAE8A18F7F for ; Thu, 24 Jan 2013 21:46:18 +0000 (UTC) Received: by mail-vb0-f47.google.com with SMTP id e21so2623285vbm.20 for ; Thu, 24 Jan 2013 13:46:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:dkim-signature:x-received:from:to:cc:subject:date :message-id:x-mailer:x-gm-message-state; bh=/7RzEzth5naAvzpfJBmNBuShBlZXl6QbIug/sLx+dv8=; b=aFbyHOZgOGUVEPNeT7KEHV1MSuXYgeK9C0UrpWfWOnpoEo9psulsoI81MsLf0nLt4k 1BWnKkloSE9P/XJQG5SQToigwt61wjTUDQQpP8Rv0gzB/4MD2p/bla0UK4oJ8Y23ECKu kITRMxXH+8kco3/ee9l4wDkJZP8PDmCGKidshQbt3DoSJS1eKB//rtrRG/K/Dbon+2bw tQej1UGFBXpjjWjdEmR70ejMScJ9i5WQNZzw6/QGtSUsE4BwvXqo4qKWJhAp3+HX625i vfQrZUbiulEcE8UAYnOn/0/KzE9wrmstMqDeitEo36HeBR40XhJrX4OIQZA0/LWXKMWv 4f2w== X-Received: by 10.52.18.147 with SMTP id w19mr3208294vdd.94.1359063978408; Thu, 24 Jan 2013 13:46:18 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp87867veb; Thu, 24 Jan 2013 13:46:17 -0800 (PST) X-Received: by 10.60.169.140 with SMTP id ae12mr2754901oec.52.1359063976047; Thu, 24 Jan 2013 13:46:16 -0800 (PST) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx.google.com with ESMTPS id cm4si10097989obc.2.2013.01.24.13.46.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jan 2013 13:46:16 -0800 (PST) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.214.178 as permitted sender) client-ip=209.85.214.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.214.178 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by mail-ob0-f178.google.com with SMTP id eh20so10362177obb.37 for ; Thu, 24 Jan 2013 13:46:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=/7RzEzth5naAvzpfJBmNBuShBlZXl6QbIug/sLx+dv8=; b=rLXaWfEOURGmcFGZzX5iDVqxnUrHKw8BLQfQAJ8zVa/nMrIbEH5gJzkqV2EvPFq2a8 NPfJJWENyviOrhkDaKEzFoyg5fOULe8Vx8/xk3MQG8aUsoXL37wjELfUM6qsFApBZdJS +VgPGW2O9a1rXNYNVrLM3nuirIitot2Hv4/Ew3N1fpKFb4U/Uf8B1+LKIbiCRqMQjTXR ZB3uNFQjL8KDjxriGJV4/XgeL3leOt8nBnYFVDEBqNNdrGHswCQ4MVmU7EI71bc26KRb Jz+UdOTmCpijBoFyhLvBKdMcFzFGy1V/WEZqQ0dIyFeQbN9MK9raN/SWg4aUexndd0hv RRNg== X-Received: by 10.60.30.231 with SMTP id v7mr2849453oeh.22.1359063974438; Thu, 24 Jan 2013 13:46:14 -0800 (PST) Received: from localhost (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id m3sm18949050obm.21.2013.01.24.13.46.13 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Jan 2013 13:46:13 -0800 (PST) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: patches@linaro.org, Rob Clark Subject: [PATCH] drm/i2c: give i2c it's own Kconfig Date: Thu, 24 Jan 2013 15:46:07 -0600 Message-Id: <1359063967-26952-1-git-send-email-robdclark@gmail.com> X-Mailer: git-send-email 1.8.1 X-Gm-Message-State: ALoCoQlYAmDBUbbs5/uJ6mq1eTERpYy0s9El2aH6WdYuBSrumiH3cQx0KX3RhP+4gpxKB7Owo8zc Move this out of nouveau directory. As we start to add more encoder slaves used by other drivers, it makes sense to put the Kconfig bits in one place. Signed-off-by: Rob Clark --- drivers/gpu/drm/Kconfig | 2 ++ drivers/gpu/drm/i2c/Kconfig | 22 ++++++++++++++++++++++ drivers/gpu/drm/nouveau/Kconfig | 23 ----------------------- 3 files changed, 24 insertions(+), 23 deletions(-) create mode 100644 drivers/gpu/drm/i2c/Kconfig diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 718e042..6c322d6 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -69,6 +69,8 @@ config DRM_KMS_CMA_HELPER help Choose this if you need the KMS CMA helper functions +source "drivers/gpu/drm/i2c/Kconfig" + config DRM_TDFX tristate "3dfx Banshee/Voodoo3+" depends on DRM && PCI diff --git a/drivers/gpu/drm/i2c/Kconfig b/drivers/gpu/drm/i2c/Kconfig new file mode 100644 index 0000000..1611836 --- /dev/null +++ b/drivers/gpu/drm/i2c/Kconfig @@ -0,0 +1,22 @@ +menu "I2C encoder or helper chips" + depends on DRM && DRM_KMS_HELPER && I2C + +config DRM_I2C_CH7006 + tristate "Chrontel ch7006 TV encoder" + default m if DRM_NOUVEAU + help + Support for Chrontel ch7006 and similar TV encoders, found + on some nVidia video cards. + + This driver is currently only useful if you're also using + the nouveau driver. + +config DRM_I2C_SIL164 + tristate "Silicon Image sil164 TMDS transmitter" + default m if DRM_NOUVEAU + help + Support for sil164 and similar single-link (or dual-link + when used in pairs) TMDS transmitters, used in some nVidia + video cards. + +endmenu diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig index 8a55bee..47ccc1a 100644 --- a/drivers/gpu/drm/nouveau/Kconfig +++ b/drivers/gpu/drm/nouveau/Kconfig @@ -52,26 +52,3 @@ config DRM_NOUVEAU_BACKLIGHT help Say Y here if you want to control the backlight of your display (e.g. a laptop panel). - -menu "I2C encoder or helper chips" - depends on DRM && DRM_KMS_HELPER && I2C - -config DRM_I2C_CH7006 - tristate "Chrontel ch7006 TV encoder" - default m if DRM_NOUVEAU - help - Support for Chrontel ch7006 and similar TV encoders, found - on some nVidia video cards. - - This driver is currently only useful if you're also using - the nouveau driver. - -config DRM_I2C_SIL164 - tristate "Silicon Image sil164 TMDS transmitter" - default m if DRM_NOUVEAU - help - Support for sil164 and similar single-link (or dual-link - when used in pairs) TMDS transmitters, used in some nVidia - video cards. - -endmenu