Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19405
b: refs/heads/master
c: 50373c1
h: refs/heads/master
i:
  19403: b9594d1
v: v3
  • Loading branch information
Paul Mundt authored and Linus Torvalds committed Feb 1, 2006
1 parent cfd67e1 commit 48aae30
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 125 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: de02797aa744c96a90f47be7bc081ce2f74b17fd
refs/heads/master: 50373c1b7ee9cdd9b8ccaa1b58d13ad43f879908
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/unknown/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Makefile for unknown SH boards
#

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

46 changes: 0 additions & 46 deletions trunk/arch/sh/boards/unknown/io.c

This file was deleted.

67 changes: 0 additions & 67 deletions trunk/arch/sh/boards/unknown/mach.c

This file was deleted.

12 changes: 11 additions & 1 deletion trunk/arch/sh/boards/unknown/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@
* License. See linux/COPYING for more information.
*
* Setup code for an unknown machine (internal peripherials only)
*
* This is the simplest of all boards, and serves only as a quick and dirty
* method to start debugging a new board during bring-up until proper board
* setup code is written.
*/

#include <linux/config.h>
#include <linux/init.h>
#include <asm/machvec.h>
#include <asm/irq.h>

struct sh_machine_vector mv_unknown __initmv = {
.mv_nr_irqs = NR_IRQS,
};
ALIAS_MV(unknown)

const char *get_system_type(void)
{
Expand Down
13 changes: 4 additions & 9 deletions trunk/arch/sh/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static inline void parse_cmdline (char ** cmdline_p, char mv_name[MV_NAME_SIZE],

static int __init sh_mv_setup(char **cmdline_p)
{
#if defined(CONFIG_SH_UNKNOWN)
#ifdef CONFIG_SH_UNKNOWN
extern struct sh_machine_vector mv_unknown;
#endif
struct sh_machine_vector *mv = NULL;
Expand All @@ -196,7 +196,7 @@ static int __init sh_mv_setup(char **cmdline_p)

parse_cmdline(cmdline_p, mv_name, &mv, &mv_io_base, &mv_mmio_enable);

#ifdef CONFIG_SH_GENERIC
#ifdef CONFIG_SH_UNKNOWN
if (mv == NULL) {
mv = &mv_unknown;
if (*mv_name != '\0') {
Expand All @@ -206,9 +206,6 @@ static int __init sh_mv_setup(char **cmdline_p)
}
sh_mv = *mv;
#endif
#ifdef CONFIG_SH_UNKNOWN
sh_mv = mv_unknown;
#endif

/*
* Manually walk the vec, fill in anything that the board hasn't yet
Expand All @@ -231,10 +228,8 @@ static int __init sh_mv_setup(char **cmdline_p)
mv_set(readb); mv_set(readw); mv_set(readl);
mv_set(writeb); mv_set(writew); mv_set(writel);

mv_set(ioremap);
mv_set(iounmap);

mv_set(isa_port2addr);
mv_set(ioport_map);
mv_set(ioport_unmap);
mv_set(irq_demux);

#ifdef CONFIG_SH_UNKNOWN
Expand Down

0 comments on commit 48aae30

Please sign in to comment.