Skip to content

Commit

Permalink
sh: Kill off broken snapgear ds1302 code.
Browse files Browse the repository at this point in the history
This will force the snapgear boards to use the on-chip SH RTC instead,
until the rtc-ds1302 driver is merged. The current code is broken
and hasn't built in some time, so just kill it off and get the board
working again.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Nov 8, 2007
1 parent cbeb134 commit 6d1c76d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 326 deletions.
3 changes: 1 addition & 2 deletions arch/sh/boards/snapgear/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
# Makefile for the SnapGear specific parts of the kernel
#

obj-y := setup.o io.o rtc.o

obj-y := setup.o io.o
309 changes: 0 additions & 309 deletions arch/sh/boards/snapgear/rtc.c

This file was deleted.

16 changes: 1 addition & 15 deletions arch/sh/boards/snapgear/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,15 @@
#include <asm/snapgear.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <asm/rtc.h>
#include <asm/cpu/timer.h>

extern void secureedge5410_rtc_init(void);
extern void pcibios_init(void);

/****************************************************************************/
/*
* EraseConfig handling functions
*/

static irqreturn_t eraseconfig_interrupt(int irq, void *dev_id)
{
volatile char dummy __attribute__((unused)) = * (volatile char *) 0xb8000000;
(void)ctrl_inb(0xb8000000); /* dummy read */

printk("SnapGear: erase switch interrupt!\n");

Expand Down Expand Up @@ -75,20 +70,11 @@ static void __init init_snapgear_IRQ(void)
plat_irq_setup_pins(IRQ_MODE_IRQ);
}

/*
* Initialize the board
*/
static void __init snapgear_setup(char **cmdline_p)
{
board_time_init = secureedge5410_rtc_init;
}

/*
* The Machine Vector
*/
static struct sh_machine_vector mv_snapgear __initmv = {
.mv_name = "SnapGear SecureEdge5410",
.mv_setup = snapgear_setup,
.mv_nr_irqs = 72,

.mv_inb = snapgear_inb,
Expand Down

0 comments on commit 6d1c76d

Please sign in to comment.