diff options
| author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 16:53:07 +0100 | 
|---|---|---|
| committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 16:53:07 +0100 | 
| commit | cb5473205206c7f14cbb1e747f28ec75b48826e2 (patch) | |
| tree | 8f4808d60917100b18a10b05230f7638a0a9bbcc /drivers/pci/pci_sh7780.c | |
| parent | baf449fc5ff96f071bb0e3789fd3265f6d4fd9a0 (diff) | |
| parent | 92c78a3bbcb2ce508b4bf1c4a1e0940406a024bb (diff) | |
| download | olio-uboot-2014.01-cb5473205206c7f14cbb1e747f28ec75b48826e2.tar.xz olio-uboot-2014.01-cb5473205206c7f14cbb1e747f28ec75b48826e2.zip | |
Merge branch 'fixes' into cleanups
Conflicts:
	board/atmel/atngw100/atngw100.c
	board/atmel/atstk1000/atstk1000.c
	cpu/at32ap/at32ap700x/gpio.c
	include/asm-avr32/arch-at32ap700x/clk.h
	include/configs/atngw100.h
	include/configs/atstk1002.h
	include/configs/atstk1003.h
	include/configs/atstk1004.h
	include/configs/atstk1006.h
	include/configs/favr-32-ezkit.h
	include/configs/hammerhead.h
	include/configs/mimc200.h
Diffstat (limited to 'drivers/pci/pci_sh7780.c')
| -rw-r--r-- | drivers/pci/pci_sh7780.c | 15 | 
1 files changed, 8 insertions, 7 deletions
| diff --git a/drivers/pci/pci_sh7780.c b/drivers/pci/pci_sh7780.c index 2d04b4fc6..7555d9606 100644 --- a/drivers/pci/pci_sh7780.c +++ b/drivers/pci/pci_sh7780.c @@ -25,9 +25,10 @@  #include <common.h> +#include <pci.h>  #include <asm/processor.h> +#include <asm/pci.h>  #include <asm/io.h> -#include <pci.h>  #define SH7780_VENDOR_ID	0x1912  #define SH7780_DEVICE_ID	0x0002 @@ -41,10 +42,10 @@  #define SH7780_PCICR_PRST	0x00000002  #define SH7780_PCICR_CFIN	0x00000001 -#define p4_in(addr)			*((vu_long *)addr) -#define p4_out(data,addr)	*(vu_long *)(addr) = (data) -#define p4_inw(addr)		*((vu_short *)addr) -#define p4_outw(data,addr)	*(vu_short *)(addr) = (data) +#define p4_in(addr)			(*(vu_long *)addr) +#define p4_out(data, addr)	(*(vu_long *)addr) = (data) +#define p4_inw(addr)		(*(vu_short *)addr) +#define p4_outw(data, addr)	(*(vu_short *)addr) = (data)  int pci_sh4_read_config_dword(struct pci_controller *hose,  				    pci_dev_t dev, int offset, u32 *value) @@ -72,9 +73,9 @@ int pci_sh7780_init(struct pci_controller *hose)  	p4_out(0x01, SH7780_PCIECR);  	if (p4_inw(SH7780_PCIVID) != SH7780_VENDOR_ID -	    && p4_inw(SH7780_PCIDID) != SH7780_DEVICE_ID){ +	    && p4_inw(SH7780_PCIDID) != SH7780_DEVICE_ID) {  		printf("PCI: Unknown PCI host bridge.\n"); -		return; +		return -1;  	}  	printf("PCI: SH7780 PCI host bridge found.\n"); |