Skip to contentSkip to conversation

sh: Add support PCI of SuperH and SH7780

PATCH New goda.yusuke 2 participants 2 messages Mar 5, 2008 – Mar 7, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: Add support PCI of SuperH and SH7780

This patch add support PCI of SuperH base code and SH7780 specific code.

---
 cpu/sh4/Makefile            |    3 +-
 cpu/sh4/pci-sh4.c           |   81 ++++++++++++++++++++++++++++++
 cpu/sh4/pci-sh7780.c        |  111 +++++++++++++++++++++++++++++++++++++++++
 include/asm-sh/cpu_sh7780.h |  114 +++++++++++++++++++++---------------------
 include/asm-sh/pci.h        |   46 +++++++++++++++++
 lib_sh/board.c              |   13 +++++-
 6 files changed, 309 insertions(+), 59 deletions(-)
 create mode 100644 cpu/sh4/pci-sh4.c
 create mode 100644 cpu/sh4/pci-sh7780.c
 create mode 100644 include/asm-sh/pci.h
cpu/sh4/Makefile +2 -1
index 1bb8bd7..7a53cb6 100644
@@ -29,7 +29,8 @@ include $(TOPDIR)/config.mk
 LIB	= $(obj)lib$(CPU).a
 
 START	= start.o
-OBJS	= cpu.o interrupts.o watchdog.o time.o cache.o
+OBJS	= cpu.o interrupts.o watchdog.o time.o cache.o \
+		pci-sh4.o pci-sh7780.o
 
 all:	.depend $(START) $(LIB)
 
cpu/sh4/pci-sh4.c new file +81 -0

81 lines not on this page · raw message

cpu/sh4/pci-sh7780.c new file +111 -0

111 lines not on this page · raw message

include/asm-sh/cpu_sh7780.h +57 -57

120 lines not on this page · raw message

include/asm-sh/pci.h new file +46 -0

46 lines not on this page · raw message

lib_sh/board.c +12 -1
index 2cd60d7..883c381 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007
+ * Copyright (C) 2007,2008
  * Nobuhiro Iwamatsu <[email protected]>
  *
  * This program is free software; you can redistribute it and/or
@@ -95,6 +95,14 @@ static int sh_marubun_init(void)
 }
 #endif /* (CONFIG_CMD_IDE) */
 
+#if defined(CONFIG_PCI)
+static int sh_pci_init(void)
+{
+	pci_init();
+	return 0;
+}
+#endif /* CONFIG_PCI */
+
 static int sh_mem_env_init(void)
 {
 	mem_malloc_init();
@@ -141,6 +149,9 @@ init_fnc_t *init_sequence[] =
 #if defined(CONFIG_CMD_NAND)
 	sh_nand_init,		/* Flash memory (NAND) init */
 #endif
+#if defined(CONFIG_PCI)
+	sh_pci_init,		/* PCI Init */
+#endif
 	devices_init,
 	console_init_r,
 	interrupt_init,
#1 lore raw

PATCH 1/1 sh: Add support PCI of SuperH and SH7780

Quoted 3 lines · On Wed, 05 Mar 2008 17:05:28 +0900 "goda.yusuke" <[email protected]>…

This patch add support PCI of SuperH base code and SH7780 specific code.

Applied, thanks.
I put testing branch.

regards,
Nobuhiro

Signature · 5 lines
Nobuhiro Iwamatsu
	hemamu at t-base.ne.jp
	iwamatsu at debian.or.jp

	GPG ID : 3170EBE9