aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2008-07-10 14:29:55 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-07-15 13:44:36 -0400
commit5b438c44082d9f09fed10f3621fe8d5c93d3676d (patch)
treee420164247b35796f1132345791252b8ef6f492d /arch/mips
parentbf744d417ff2fe1e8e386c7ad06e79c34a078642 (diff)
[MIPS] IP22/28: Add platform devices for HAL2
Create platform devices for hal2 and add option for selecting HAL2 alsa driver. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/Kconfig5
-rw-r--r--arch/mips/sgi-ip22/ip22-platform.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 72baa1a70fcb..d23204e29e16 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -385,6 +385,8 @@ config SGI_IP28
385 select SGI_HAS_DS1286 385 select SGI_HAS_DS1286
386 select SGI_HAS_I8042 386 select SGI_HAS_I8042
387 select SGI_HAS_INDYDOG 387 select SGI_HAS_INDYDOG
388 select SGI_HAS_HAL2
389 select SGI_HAS_HAL2
388 select SGI_HAS_SEEQ 390 select SGI_HAS_SEEQ
389 select SGI_HAS_WD93 391 select SGI_HAS_WD93
390 select SGI_HAS_ZILOG 392 select SGI_HAS_ZILOG
@@ -868,6 +870,9 @@ config SGI_HAS_DS1286
868config SGI_HAS_INDYDOG 870config SGI_HAS_INDYDOG
869 bool 871 bool
870 872
873config SGI_HAS_HAL2
874 bool
875
871config SGI_HAS_SEEQ 876config SGI_HAS_SEEQ
872 bool 877 bool
873 878
diff --git a/arch/mips/sgi-ip22/ip22-platform.c b/arch/mips/sgi-ip22/ip22-platform.c
index 28ffec8e5d1a..d93d07a8c317 100644
--- a/arch/mips/sgi-ip22/ip22-platform.c
+++ b/arch/mips/sgi-ip22/ip22-platform.c
@@ -175,3 +175,10 @@ static int __init sgiseeq_devinit(void)
175} 175}
176 176
177device_initcall(sgiseeq_devinit); 177device_initcall(sgiseeq_devinit);
178
179static int __init sgi_hal2_devinit(void)
180{
181 return IS_ERR(platform_device_register_simple("sgihal2", 0, NULL, 0));
182}
183
184device_initcall(sgi_hal2_devinit);