Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18636
b: refs/heads/master
c: 0025835
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt authored and Linus Torvalds committed Jan 17, 2006
1 parent 9e87c06 commit eeca51b
Show file tree
Hide file tree
Showing 13 changed files with 290 additions and 254 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ebdce726baf17eb66c5a1bf402ae6f161a082ed
refs/heads/master: 0025835cf20e07056b8521b8c1d7d0bfe07e81f1
6 changes: 6 additions & 0 deletions trunk/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 trunk/arch/sh/boards/hp6xx/hp620/Makefile

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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 eeca51b

Please sign in to comment.