]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/mips/tx4938/toshiba_rbtx4938/setup.c
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
[mv-sheeva.git] / arch / mips / tx4938 / toshiba_rbtx4938 / setup.c
index 6ed39a5aea7262b0e9941818234e0b7cfc712771..f236b1ff89235bbe1e6adea98d54b133c7feffb0 100644 (file)
@@ -657,7 +657,7 @@ void __init tx4938_board_setup(void)
 
        /* clocks */
        if (txx9_master_clock) {
-               /* calculate gbus_clock and cpu_clock from master_clock */
+               /* calculate gbus_clock and cpu_clock_freq from master_clock */
                divmode = (unsigned long)tx4938_ccfgptr->ccfg & TX4938_CCFG_DIVMODE_MASK;
                switch (divmode) {
                case TX4938_CCFG_DIVMODE_8:
@@ -691,7 +691,7 @@ void __init tx4938_board_setup(void)
                if (txx9_cpu_clock == 0) {
                        txx9_cpu_clock = 300000000;     /* 300MHz */
                }
-               /* calculate gbus_clock and master_clock from cpu_clock */
+               /* calculate gbus_clock and master_clock from cpu_clock_freq */
                cpuclk = txx9_cpu_clock;
                divmode = (unsigned long)tx4938_ccfgptr->ccfg & TX4938_CCFG_DIVMODE_MASK;
                switch (divmode) {
@@ -773,10 +773,6 @@ void __init tx4938_board_setup(void)
                 txboard_add_phys_region(base, size);
        }
 
-       /* IRC */
-       /* disable interrupt control */
-       tx4938_ircptr->cer = 0;
-
        /* TMR */
        /* disable all timers */
        for (i = 0; i < TX4938_NR_TMR; i++) {
@@ -875,9 +871,6 @@ void __init toshiba_rbtx4938_setup(void)
        if (txx9_master_clock == 0)
                txx9_master_clock = 25000000; /* 25MHz */
        tx4938_board_setup();
-       /* setup irq stuff */
-       TX4938_WR(TX4938_MKA(TX4938_IRC_IRDM0), 0x00000000);    /* irq trigger */
-       TX4938_WR(TX4938_MKA(TX4938_IRC_IRDM1), 0x00000000);    /* irq trigger */
        /* setup serial stuff */
        TX4938_WR(0xff1ff314, 0x00000000);      /* h/w flow control off */
        TX4938_WR(0xff1ff414, 0x00000000);      /* h/w flow control off */
@@ -897,7 +890,7 @@ void __init toshiba_rbtx4938_setup(void)
                        req.iotype = UPIO_MEM;
                        req.membase = (char *)(0xff1ff300 + i * 0x100);
                        req.mapbase = 0xff1ff300 + i * 0x100;
-                       req.irq = 32 + i;
+                       req.irq = RBTX4938_IRQ_IRC_SIO(i);
                        req.flags |= UPF_BUGGY_UART /*HAVE_CTS_LINE*/;
                        req.uartclk = 50000000;
                        early_serial_txx9_setup(&req);
@@ -1115,14 +1108,14 @@ static void __init txx9_spi_init(unsigned long base, int irq)
                        .flags  = IORESOURCE_IRQ,
                },
        };
-       platform_device_register_simple("txx9spi", 0,
+       platform_device_register_simple("spi_txx9", 0,
                                        res, ARRAY_SIZE(res));
 }
 
 static int __init rbtx4938_spi_init(void)
 {
        struct spi_board_info srtc_info = {
-               .modalias = "rs5c348",
+               .modalias = "rtc-rs5c348",
                .max_speed_hz = 1000000, /* 1.0Mbps @ Vdd 2.0V */
                .bus_num = 0,
                .chip_select = 16 + SRTC_CS,