From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [RFC PATCH 05/11] mfd: omap: control: core system control driver Date: Fri, 1 Jun 2012 07:13:43 -0700 Message-ID: <20120601141342.GS12766@atomide.com> References: <1337934361-1606-1-git-send-email-eduardo.valentin@ti.com> <1337934361-1606-6-git-send-email-eduardo.valentin@ti.com> <4FBF8078.9050809@ti.com> <20120528113502.GG3923@besouro> <4FC4CE4B.8020708@ti.com> <20120601112951.GM12766@atomide.com> <4FC8C649.10507@dev.rtsoft.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:11430 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932595Ab2FAONu (ORCPT ); Fri, 1 Jun 2012 10:13:50 -0400 Content-Disposition: inline In-Reply-To: <4FC8C649.10507@dev.rtsoft.ru> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Konstantin Baydarov Cc: "Cousson, Benoit" , paul@pwsan.com, amit.kucheria@linaro.org, balbi@ti.com, kishon@ti.com, eduardo.valentin@ti.com, santosh.shilimkar@ti.com, J Keerthy , linux-pm@lists.linux-foundation.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, amit.kachhap@linaro.org * Konstantin Baydarov [120601 06:44]: > On 06/01/2012 03:29 PM, Tony Lindgren wrote: > > > > We can have a static map for the SCM, so ioremapping each driver > > individually should not be an issue. > Actually SCM registers window is mapped statically. Mapping is defined in omap44xx_io_desc[] in arch/arm/mach-omap2/io.c: > > ... > .virtual = L4_44XX_VIRT, > .pfn = __phys_to_pfn(L4_44XX_PHYS), > .length = L4_44XX_SIZE, > .type = MT_DEVICE, > ... > > > So ioremap() always returns same virtual address (0xfc002000). Hmm I guess you mean L4_44XX_VIRT + offset. Otherwise drivers would not work at all.. Or else I don't follow you. Regards, Tony