diff options
author | Yusuke Goda <goda.yusuke@renesas.com> | 2008-03-05 14:30:02 +0900 |
---|---|---|
committer | Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | 2008-03-28 14:16:12 +0900 |
commit | 1a2334a4eb6386d7cd35d9de5fa39af2c764ad28 (patch) | |
tree | 3bdad7825893b07bfa8c24d77a35878a3af9cd56 /include/asm-sh/pci.h | |
parent | b55523efff2ae11f0b9ae3cc405893c32eb78156 (diff) | |
download | u-boot-imx-1a2334a4eb6386d7cd35d9de5fa39af2c764ad28.zip u-boot-imx-1a2334a4eb6386d7cd35d9de5fa39af2c764ad28.tar.gz u-boot-imx-1a2334a4eb6386d7cd35d9de5fa39af2c764ad28.tar.bz2 |
sh: Add support PCI of SuperH and SH7780
This patch add support PCI of SuperH base code and SH7780 specific code.
Signed-off-by: Yusuke Goda <goda.yusuke@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'include/asm-sh/pci.h')
-rw-r--r-- | include/asm-sh/pci.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/asm-sh/pci.h b/include/asm-sh/pci.h new file mode 100644 index 0000000..821961f --- /dev/null +++ b/include/asm-sh/pci.h @@ -0,0 +1,46 @@ +/* + * SH4 PCI Controller (PCIC) for U-Boot. + * (C) Dustin McIntire (dustin@sensoria.com) + * (C) 2007 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> + * (C) 2008 Yusuke Goda <goda.yusuke@renesas.com> + * + * u-boot/include/asm-sh/pci.h + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ +#ifndef _ASM_PCI_H_ +#define _ASM_PCI_H_ + +#include <pci.h> + +#if defined(CONFIG_CPU_SH7780) +int pci_sh7780_init(struct pci_controller *hose); +#else +#error "Not support PCI." +#endif + +/* PCI dword read for sh4 */ +int pci_sh4_read_config_dword(struct pci_controller *hose, + pci_dev_t dev, int offset, u32 *value); + +/* PCI dword write for sh4 */ +int pci_sh4_write_config_dword(struct pci_controller *hose, + pci_dev_t dev, int offset, u32 value); + +#endif /* _ASM_PCI_H_ */ |