Skip to content

Commit

Permalink
[PATCH] sh: consolidate hp620/hp680/hp690 targets into hp6xx
Browse files Browse the repository at this point in the history
Most of the reasons for keeping these separate before was due to hp690
discontig, and since we have a workaround for that now (abusing some shadow
space so everything is magically contiguous), there's no reason to keep the
targets separate.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Paul Mundt authored and Linus Torvalds committed Jan 17, 2006
1 parent 5ebdce7 commit 0025835
Show file tree
Hide file tree
Showing 12 changed files with 289 additions and 253 deletions.
6 changes: 6 additions & 0 deletions arch/sh/boards/hp6xx/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# Makefile for the HP6xx specific parts of the kernel
#

obj-y := mach.o setup.o

6 changes: 0 additions & 6 deletions arch/sh/boards/hp6xx/hp620/Makefile

This file was deleted.

52 changes: 0 additions & 52 deletions arch/sh/boards/hp6xx/hp620/mach.c

This file was deleted.

45 changes: 0 additions & 45 deletions arch/sh/boards/hp6xx/hp620/setup.c

This file was deleted.

6 changes: 0 additions & 6 deletions arch/sh/boards/hp6xx/hp680/Makefile

This file was deleted.

6 changes: 0 additions & 6 deletions arch/sh/boards/hp6xx/hp690/Makefile

This file was deleted.

48 changes: 0 additions & 48 deletions arch/sh/boards/hp6xx/hp690/mach.c

This file was deleted.

15 changes: 4 additions & 11 deletions arch/sh/boards/hp6xx/hp680/mach.c → arch/sh/boards/hp6xx/mach.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* linux/arch/sh/boards/hp6xx/hp680/mach.c
* linux/arch/sh/boards/hp6xx/mach.c
*
* Copyright (C) 2000 Stuart Menefy (stuart.menefy@st.com)
*
Expand All @@ -8,19 +8,12 @@
*
* Machine vector for the HP680
*/

#include <linux/init.h>

#include <asm/machvec.h>
#include <asm/rtc.h>
#include <asm/machvec_init.h>

#include <asm/hd64461.h>
#include <asm/io.h>
#include <asm/hd64461/hd64461.h>
#include <asm/hp6xx/io.h>
#include <asm/irq.h>

struct sh_machine_vector mv_hp680 __initmv = {
struct sh_machine_vector mv_hp6xx __initmv = {
.mv_nr_irqs = HD64461_IRQBASE + HD64461_IRQ_NUM,

.mv_inb = hd64461_inb,
Expand Down Expand Up @@ -50,4 +43,4 @@ struct sh_machine_vector mv_hp680 __initmv = {
.mv_irq_demux = hd64461_irq_demux,
};

ALIAS_MV(hp680)
ALIAS_MV(hp6xx)
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,45 @@

#include <linux/config.h>
#include <linux/init.h>
#include <asm/hd64461/hd64461.h>
#include <asm/io.h>
#include <asm/hd64461.h>
#include <asm/hp6xx/hp6xx.h>
#include <asm/cpu/dac.h>

const char *get_system_type(void)
{
return "HP680";
return "HP6xx";
}

int __init platform_setup(void)
{
u8 v8;
u16 v;
v = inw(HD64461_STBCR);
v |= HD64461_STBCR_SURTST | HD64461_STBCR_SIRST |
HD64461_STBCR_STM1ST | HD64461_STBCR_STM0ST |
HD64461_STBCR_SAFEST | HD64461_STBCR_SPC0ST |
HD64461_STBCR_SMIAST | HD64461_STBCR_SAFECKE_OST |
HD64461_STBCR_SAFECKE_IST;
#ifndef CONFIG_HD64461_ENABLER
v |= HD64461_STBCR_SPC1ST;
#endif
outw(v, HD64461_STBCR);
v = inw(HD64461_GPADR);
v |= HD64461_GPADR_SPEAKER | HD64461_GPADR_PCMCIA0;
outw(v, HD64461_GPADR);

outw(HD64461_PCCGCR_VCC0 | HD64461_PCCSCR_VCC1, HD64461_PCC0GCR);

#ifndef CONFIG_HD64461_ENABLER
outw(HD64461_PCCGCR_VCC0 | HD64461_PCCSCR_VCC1, HD64461_PCC1GCR);
#endif

sh_dac_output(0, DAC_SPEAKER_VOLUME);
sh_dac_disable(DAC_SPEAKER_VOLUME);
v8 = ctrl_inb(DACR);
v8 &= ~DACR_DAE;
ctrl_outb(v8,DACR);

return 0;
}
Loading

0 comments on commit 0025835

Please sign in to comment.