aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-09-10 19:25:12 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-09-10 19:25:12 +0000
commitb8174937ed2c885aca5b9b08773a34397d802717 (patch)
treee249bb8fc8c80164ed471cba7f468b8f20352665 /hw/sun4m.c
parent519945dfbe270059cf012863b97343c752f634cf (diff)
dummy cs4231 audio driver for sun4m (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2157 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index 94629364d0..a636638b5f 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -55,6 +55,9 @@
#define PHYS_JJ_FDC 0x71400000 /* Floppy */
#define PHYS_JJ_FLOPPY_IRQ 22
#define PHYS_JJ_ME_IRQ 30 /* Module error, power fail */
+#define PHYS_JJ_CS 0x6c000000 /* Crystal CS4231 */
+#define PHYS_JJ_CS_IRQ 5
+
#define MAX_CPUS 16
/* TSC handling */
@@ -260,6 +263,7 @@ static void sun4m_init(int ram_size, int vga_ram_size, int boot_device,
fdctrl_init(PHYS_JJ_FLOPPY_IRQ, 0, 1, PHYS_JJ_FDC, fd_table);
main_esp = esp_init(bs_table, PHYS_JJ_ESP, dma);
slavio_misc = slavio_misc_init(PHYS_JJ_SLAVIO, PHYS_JJ_ME_IRQ);
+ cs_init(PHYS_JJ_CS, PHYS_JJ_CS_IRQ, slavio_intctl);
sparc32_dma_set_reset_data(dma, main_esp, main_lance);
prom_offset = ram_size + vram_size;