aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/generic/setup_tx4939.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2009-05-25 09:04:02 -0400
committerRalf Baechle <ralf@linux-mips.org>2009-06-17 06:06:27 -0400
commitc3b28ae260d99a5364a31210a36a3246bd9647f7 (patch)
treeb24ffef4b1352f09af2944eea78685a7e3d38686 /arch/mips/txx9/generic/setup_tx4939.c
parent05f94eebd55ef69a354d3ea70179e40ea4c34de6 (diff)
MIPS: TXx9: Add SRAMC support
Add a sysdev to access SRAM in TXx9 SoCs via sysfs. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/txx9/generic/setup_tx4939.c')
-rw-r--r--arch/mips/txx9/generic/setup_tx4939.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c
index 71396863f54e..df13a891fb4b 100644
--- a/arch/mips/txx9/generic/setup_tx4939.c
+++ b/arch/mips/txx9/generic/setup_tx4939.c
@@ -494,6 +494,12 @@ void __init tx4939_aclc_init(void)
494 TXX9_IRQ_BASE + TX4939_IR_ACLC, 1, 0, 1); 494 TXX9_IRQ_BASE + TX4939_IR_ACLC, 1, 0, 1);
495} 495}
496 496
497void __init tx4939_sramc_init(void)
498{
499 if (tx4939_sram_resource.start)
500 txx9_sramc_init(&tx4939_sram_resource);
501}
502
497static void __init tx4939_stop_unused_modules(void) 503static void __init tx4939_stop_unused_modules(void)
498{ 504{
499 __u64 pcfg, rst = 0, ckd = 0; 505 __u64 pcfg, rst = 0, ckd = 0;