From patchwork Wed Dec 19 17:19:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13662 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 8B1BB2418A for ; Wed, 19 Dec 2012 17:19:57 +0000 (UTC) Received: from mail-ia0-f179.google.com (mail-ia0-f179.google.com [209.85.210.179]) by fiordland.canonical.com (Postfix) with ESMTP id 2AE6CA19537 for ; Wed, 19 Dec 2012 17:19:57 +0000 (UTC) Received: by mail-ia0-f179.google.com with SMTP id o25so1941003iad.38 for ; Wed, 19 Dec 2012 09:19:56 -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:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=R2yjO4+ay4HMz636l74XxhzI4A357b+IRR4A7rYeq6s=; b=LYftndxeeQs0XA6WIB9ZF5RQXw1UKcc74hzqSmX0vSC5eyZisjD9ypQQ3mIsVmBpUK wWgP8xQZfeS5yVJURk9gqbVZ0W7uMZhHiIi2GFtHKD920+Q7+RoeYczuVjdJxLrL+aA3 Z7cgc2GIurUXa2ZRis3SAMIk347QWuV3fFeDH4l/A+aGNnXRK0P39FNTzIkxF5Mn4C+5 poSnCsXsSOS5RNN8CsIP/oKIzM1IZ1UpT2c10HRbjgijMVcRjI8WDBw7MfvsXLfEwNv6 6F0I5U6OlJr5VILCuXMqAS+HvmfIhVZZlOitM2KjH1OowJk6kPuAW0ul37ePtUZKlE+6 BBew== X-Received: by 10.50.220.166 with SMTP id px6mr7879948igc.8.1355937596485; Wed, 19 Dec 2012 09:19:56 -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.50.67.115 with SMTP id m19csp251268igt; Wed, 19 Dec 2012 09:19:55 -0800 (PST) X-Received: by 10.194.78.207 with SMTP id d15mr12824295wjx.52.1355937595475; Wed, 19 Dec 2012 09:19:55 -0800 (PST) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx.google.com with ESMTPS id y7si9256488wix.4.2012.12.19.09.19.55 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Dec 2012 09:19:55 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.177; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f177.google.com with SMTP id hm2so1398779wib.4 for ; Wed, 19 Dec 2012 09:19:55 -0800 (PST) X-Received: by 10.194.83.36 with SMTP id n4mr12790717wjy.59.1355937595004; Wed, 19 Dec 2012 09:19:55 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id i2sm21415170wiw.3.2012.12.19.09.19.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Dec 2012 09:19:54 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones , Mike Turquette , Ulf Hansson Subject: [PATCH 3/4] clk: ux500: Provide an alias for the SMSC911x Ethernet chip Date: Wed, 19 Dec 2012 17:19:46 +0000 Message-Id: <1355937587-31730-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1355937587-31730-1-git-send-email-lee.jones@linaro.org> References: <1355937587-31730-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmSz2EUQAm/u+cwBGKnjFCNkSfmuTKqyTOLzI1YoIY5PMYGOVevVqzk0h3otRoOaxLY7MZk In the case of some of the ux500 platforms, an Ethernet chip is placed on an extended bus which is traditionally used as a NAND flash chip placeholder. The p3_pclk0 clock is used to control it, so we are required to provide and easy way to access it from the SMSC911x driver. We do this using an alias provided by this patch. Cc: Mike Turquette Cc: Ulf Hansson Signed-off-by: Lee Jones --- drivers/clk/ux500/u8500_clk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/ux500/u8500_clk.c b/drivers/clk/ux500/u8500_clk.c index a601802..9d9add1 100644 --- a/drivers/clk/ux500/u8500_clk.c +++ b/drivers/clk/ux500/u8500_clk.c @@ -325,6 +325,7 @@ void u8500_clk_init(void) clk = clk_reg_prcc_pclk("p3_pclk0", "per3clk", U8500_CLKRST3_BASE, BIT(0), 0); clk_register_clkdev(clk, "fsmc", NULL); + clk_register_clkdev(clk, NULL, "smsc911x"); clk = clk_reg_prcc_pclk("p3_pclk1", "per3clk", U8500_CLKRST3_BASE, BIT(1), 0);