Skip to contentSkip to conversation

sh: trapped io support for highlander

PATCH New Magnus Damm 1 participant 2 messages Feb 6, 2008 – Feb 7, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: trapped io support for highlander

This patch converts the higlander CF device from good old machvec readb/writeb to the new shiny trapped io.

---

 arch/sh/Kconfig                        |    1 
 arch/sh/boards/renesas/r7780rp/setup.c |   49 ++++++++++++--------------------
 include/asm-sh/r7780rp.h               |    3 -
 3 files changed, 20 insertions(+), 33 deletions(-)
arch/sh/Kconfig +1 -0
@@ -471,6 +471,7 @@ config SH_HIGHLANDER
 	bool "Highlander"
 	depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
 	select SYS_SUPPORTS_PCI
+	select IO_TRAPPED
 
 config SH_EDOSK7705
 	bool "EDOSK7705"
arch/sh/boards/renesas/r7780rp/setup.c +19 -30

73 lines not on this page · raw message

include/asm-sh/r7780rp.h +0 -3
@@ -195,7 +195,4 @@ unsigned char *highlander_init_irq_r7780
 unsigned char *highlander_init_irq_r7780rp(void);
 unsigned char *highlander_init_irq_r7785rp(void);
 
-#define __IO_PREFIX	r7780rp
-#include <asm/io_generic.h>
-
 #endif  /* __ASM_SH_RENESAS_R7780RP */
#1 lore raw

PATCH 1/1 sh: trapped io support for highlander V2

This patch converts the highlander CF device from good old machvec readb/writeb to the new shiny trapped io.

---

 arch/sh/Kconfig                        |    1 
 arch/sh/boards/renesas/r7780rp/setup.c |   47 ++++++++++----------------------
 include/asm-sh/r7780rp.h               |    3 --
 3 files changed, 17 insertions(+), 34 deletions(-)
arch/sh/Kconfig +1 -0
@@ -472,6 +472,7 @@ config SH_HIGHLANDER
 	bool "Highlander"
 	depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
 	select SYS_SUPPORTS_PCI
+	select IO_TRAPPED
 
 config SH_MIGOR
 	bool "Migo-R"
arch/sh/boards/renesas/r7780rp/setup.c +16 -31

75 lines not on this page · raw message

include/asm-sh/r7780rp.h +0 -3
@@ -195,7 +195,4 @@ unsigned char *highlander_init_irq_r7780
 unsigned char *highlander_init_irq_r7780rp(void);
 unsigned char *highlander_init_irq_r7785rp(void);
 
-#define __IO_PREFIX	r7780rp
-#include <asm/io_generic.h>
-
 #endif  /* __ASM_SH_RENESAS_R7780RP */