* [PATCH 06/14] ARM : SAMSUNG : S3C2416 Added io mapping for Static memory controller. [not found] <static_memory> @ 2011-10-22 4:21 ` Paul Schilling 2011-10-22 21:43 ` Heiko Stübner 0 siblings, 1 reply; 3+ messages in thread From: Paul Schilling @ 2011-10-22 4:21 UTC (permalink / raw) To: linux-arm-kernel Added MMU access to the Static Memory Controller. Signed-off-by: Paul Schilling <paul.s.schilling@gmail.com> --- arch/arm/mach-s3c2416/s3c2416.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s3c2416/s3c2416.c b/arch/arm/mach-s3c2416/s3c2416.c index 494ce91..823a034 100644 --- a/arch/arm/mach-s3c2416/s3c2416.c +++ b/arch/arm/mach-s3c2416/s3c2416.c @@ -65,6 +65,18 @@ static struct map_desc s3c2416_iodesc[] __initdata = { IODESC_ENT(WATCHDOG), IODESC_ENT(CLKPWR), IODESC_ENT(TIMER), + { + .virtual = (u32)S3C2412_VA_SSMC, + .pfn = __phys_to_pfn(S3C2412_PA_SSMC), + .length = SZ_1M, + .type = MT_DEVICE, + }, + /*{ + .virtual = (u32)S3C2412_VA_EBI, + .pfn = __phys_to_pfn(S3C2412_PA_EBI), + .length = SZ_1M, + .type = MT_DEVICE, + },*/ }; struct sysdev_class s3c2416_sysclass = { -- 1.7.6.4 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 06/14] ARM : SAMSUNG : S3C2416 Added io mapping for Static memory controller. 2011-10-22 4:21 ` [PATCH 06/14] ARM : SAMSUNG : S3C2416 Added io mapping for Static memory controller Paul Schilling @ 2011-10-22 21:43 ` Heiko Stübner 2011-10-23 16:44 ` Paul Schilling 0 siblings, 1 reply; 3+ messages in thread From: Heiko Stübner @ 2011-10-22 21:43 UTC (permalink / raw) To: linux-arm-kernel Am Samstag 22 Oktober 2011, 06:21:41 schrieb Paul Schilling: > Added MMU access to the Static Memory Controller. > > Signed-off-by: Paul Schilling <paul.s.schilling@gmail.com> > --- > arch/arm/mach-s3c2416/s3c2416.c | 12 ++++++++++++ > 1 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-s3c2416/s3c2416.c > b/arch/arm/mach-s3c2416/s3c2416.c index 494ce91..823a034 100644 > --- a/arch/arm/mach-s3c2416/s3c2416.c > +++ b/arch/arm/mach-s3c2416/s3c2416.c > @@ -65,6 +65,18 @@ static struct map_desc s3c2416_iodesc[] __initdata = { > IODESC_ENT(WATCHDOG), > IODESC_ENT(CLKPWR), > IODESC_ENT(TIMER), > + { > + .virtual = (u32)S3C2412_VA_SSMC, > + .pfn = __phys_to_pfn(S3C2412_PA_SSMC), > + .length = SZ_1M, > + .type = MT_DEVICE, > + }, > + /*{ > + .virtual = (u32)S3C2412_VA_EBI, > + .pfn = __phys_to_pfn(S3C2412_PA_EBI), > + .length = SZ_1M, > + .type = MT_DEVICE, > + },*/ > }; why are you adding disabled code? Btw. it seems your posts got mangled somehow... only your patches 2,5 and 6 of 14 made it to linux-kernel and linux-arm-kernel. Heiko ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 06/14] ARM : SAMSUNG : S3C2416 Added io mapping for Static memory controller. 2011-10-22 21:43 ` Heiko Stübner @ 2011-10-23 16:44 ` Paul Schilling 0 siblings, 0 replies; 3+ messages in thread From: Paul Schilling @ 2011-10-23 16:44 UTC (permalink / raw) To: linux-arm-kernel Why did I add disabled code. I didn't want to enable it if no one is using it at the moment. But, I took me long enough to figure out how to enable the Static memory Controller in the MMU with out any hints to begin with. Also the EBI portion is present in a vendor kernel version 2.6.21. The Static Memory Controller peripheral needs to be set when ethernet chips like the dm9000 is attached to the samsung ARM S3C2416. The Boardcon board is a good example. On Sat, Oct 22, 2011 at 4:43 PM, Heiko St?bner <heiko@sntech.de> wrote: > Am Samstag 22 Oktober 2011, 06:21:41 schrieb Paul Schilling: >> Added MMU access to the Static Memory Controller. >> >> Signed-off-by: Paul Schilling <paul.s.schilling@gmail.com> >> --- >> ?arch/arm/mach-s3c2416/s3c2416.c | ? 12 ++++++++++++ >> ?1 files changed, 12 insertions(+), 0 deletions(-) >> >> diff --git a/arch/arm/mach-s3c2416/s3c2416.c >> b/arch/arm/mach-s3c2416/s3c2416.c index 494ce91..823a034 100644 >> --- a/arch/arm/mach-s3c2416/s3c2416.c >> +++ b/arch/arm/mach-s3c2416/s3c2416.c >> @@ -65,6 +65,18 @@ static struct map_desc s3c2416_iodesc[] __initdata = { >> ? ? ? IODESC_ENT(WATCHDOG), >> ? ? ? IODESC_ENT(CLKPWR), >> ? ? ? IODESC_ENT(TIMER), >> + ? ? { >> + ? ? ? ? ? ? .virtual ? ? ? ?= (u32)S3C2412_VA_SSMC, >> + ? ? ? ? ? ? .pfn ? ? ? ? ? ?= __phys_to_pfn(S3C2412_PA_SSMC), >> + ? ? ? ? ? ? .length ? ? ? ? = SZ_1M, >> + ? ? ? ? ? ? .type ? ? ? ? ? = MT_DEVICE, >> + ? ? }, >> + ? ? /*{ >> + ? ? ? ? ? ? .virtual ? ? ? ?= (u32)S3C2412_VA_EBI, >> + ? ? ? ? ? ? .pfn ? ? ? ? ? ?= __phys_to_pfn(S3C2412_PA_EBI), >> + ? ? ? ? ? ? .length ? ? ? ? = SZ_1M, >> + ? ? ? ? ? ? .type ? ? ? ? ? = MT_DEVICE, >> + ? ? },*/ >> ?}; > why are you adding disabled code? > > Btw. it seems your posts got mangled somehow... only your patches 2,5 and 6 of > 14 made it to linux-kernel and linux-arm-kernel. > > Heiko > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-23 16:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <static_memory>
2011-10-22 4:21 ` [PATCH 06/14] ARM : SAMSUNG : S3C2416 Added io mapping for Static memory controller Paul Schilling
2011-10-22 21:43 ` Heiko Stübner
2011-10-23 16:44 ` Paul Schilling
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox