Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
ab8f4d40
Commit
ab8f4d40
authored
Mar 24, 2008
by
Nobuhiro Iwamatsu
Browse files
sh: Move SuperH PCI driver from cpu/sh4 to drivers/pci
Signed-off-by:
Nobuhiro Iwamatsu
<
iwamatsu@nigauri.org
>
parent
56693327
Changes
5
Hide whitespace changes
Inline
Side-by-side
cpu/sh4/Makefile
View file @
ab8f4d40
...
...
@@ -29,8 +29,7 @@ include $(TOPDIR)/config.mk
LIB
=
$(obj)
lib
$(CPU)
.a
START
=
start.o
OBJS
=
cpu.o interrupts.o watchdog.o time.o cache.o
\
pci-sh4.o pci-sh7780.o
OBJS
=
cpu.o interrupts.o watchdog.o time.o cache.o
all
:
.depend $(START) $(LIB)
...
...
drivers/pci/Makefile
View file @
ab8f4d40
...
...
@@ -31,6 +31,8 @@ COBJS-y += pci_auto.o
COBJS-y
+=
pci_indirect.o
COBJS-y
+=
tsi108_pci.o
COBJS-y
+=
w83c553f.o
COBJS-$(CONFIG_SH4_PCI)
+=
pci_sh4.o
COBJS-$(CONFIG_SH7780_PCI)
+=
pci_sh7780.o
COBJS
:=
$
(
COBJS-y
)
SRCS
:=
$(COBJS:.o=.c)
...
...
cpu/sh4
/pci
-
sh4.c
→
drivers/pci
/pci
_
sh4.c
View file @
ab8f4d40
/*
* SH4 PCI Controller (PCIC) for U-Boot.
* (C) Dustin McIntire (dustin@sensoria.com)
* (C) 2007 Nobuhiro Iwamatsu
* (C) 2007
,2008
Nobuhiro Iwamatsu
<iwamatsu@nigauri.org>
* (C) 2008 Yusuke Goda <goda.yusuke@renesas.com>
*
* u-boot/cpu/sh4/pci-sh4.c
...
...
@@ -27,9 +27,6 @@
#include
<common.h>
#if defined(CONFIG_PCI) && \
defined(CONFIG_SH4_PCI)
#include
<asm/processor.h>
#include
<asm/io.h>
#include
<asm/pci.h>
...
...
@@ -77,5 +74,3 @@ int pci_sh4_init(struct pci_controller *hose)
hose
->
last_busno
=
pci_hose_scan
(
hose
);
return
0
;
}
#endif
/* defined(CONFIG_PCI) && defined(CONFIG_SH4_PCI) */
cpu/sh4
/pci
-
sh7780.c
→
drivers/pci
/pci
_
sh7780.c
View file @
ab8f4d40
/*
* SH7780 PCI Controller (PCIC) for U-Boot.
* (C) Dustin McIntire (dustin@sensoria.com)
* (C) 2007 Nobuhiro Iwamatsu
* (C) 2007
,2008
Nobuhiro Iwamatsu
<iwamatsu@nigauri.org>
* (C) 2008 Yusuke Goda <goda.yusuke@renesas.com>
*
* See file CREDITS for list of people who contributed to this
...
...
@@ -25,9 +25,6 @@
#include
<common.h>
#if defined(CONFIG_PCI) && defined(CONFIG_SH4_PCI) \
&& defined(CONFIG_CPU_SH7780)
#include
<asm/processor.h>
#include
<asm/io.h>
#include
<pci.h>
...
...
@@ -108,4 +105,3 @@ int pci_sh7780_init(struct pci_controller *hose)
pci_sh4_init
(
hose
);
return
0
;
}
#endif
/* defined(CONFIG_PCI) && defined(CONFIG_CPU_SH7780) */
include/configs/r7780mp.h
View file @
ab8f4d40
...
...
@@ -125,6 +125,7 @@
#if defined(CONFIG_CMD_PCI)
#define CONFIG_PCI
#define CONFIG_SH4_PCI
#define CONFIG_SH7780_PCI
#define CONFIG_PCI_PNP
#define CONFIG_PCI_SCAN_SHOW 1
#define __io
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment