* [PATCH] Pb1000: bury the remnants of the PCI code
@ 2008-04-05 18:59 Sergei Shtylyov
2008-04-08 11:19 ` Ralf Baechle
2008-04-29 18:46 ` Sergei Shtylyov
0 siblings, 2 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2008-04-05 18:59 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
PCI support for the Pb1000 board was ectomized by Pete Popov four years ago.
Unfortunately, the header file wasn't cleansed, so the remnants still get
in the way of the kernel build (due to macro redefinitions).
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
---
See the commit 709c5032ee77a340e56441f922d76f0b9bd28ed0 in the Linux/MIPS tree
for the original Pete's patch
include/asm-mips/mach-pb1x00/pb1000.h | 83 ----------------------------------
1 files changed, 83 deletions(-)
Index: linux-2.6/include/asm-mips/mach-pb1x00/pb1000.h
===================================================================
--- linux-2.6.orig/include/asm-mips/mach-pb1x00/pb1000.h
+++ linux-2.6/include/asm-mips/mach-pb1x00/pb1000.h
@@ -86,87 +86,4 @@
/* VPP/VCC */
#define SET_VCC_VPP(VCC, VPP, SLOT)\
((((VCC)<<2) | ((VPP)<<0)) << ((SLOT)*8))
-
-
-/* PCI PB1000 specific defines */
-/* The reason these defines are here instead of au1000.h is because
- * the Au1000 does not have a PCI bus controller so the PCI implementation
- * on the some of the older Pb1000 boards was very board specific.
- */
-#define PCI_CONFIG_BASE 0xBA020000 /* the only external slot */
-
-#define SDRAM_DEVID 0xBA010000
-#define SDRAM_CMD 0xBA010004
-#define SDRAM_CLASS 0xBA010008
-#define SDRAM_MISC 0xBA01000C
-#define SDRAM_MBAR 0xBA010010
-
-#define PCI_IO_DATA_PORT 0xBA800000
-
-#define PCI_IO_ADDR 0xBE00001C
-#define PCI_INT_ACK 0xBBC00000
-#define PCI_IO_READ 0xBBC00020
-#define PCI_IO_WRITE 0xBBC00030
-
-#define PCI_BRIDGE_CONFIG 0xBE000018
-
-#define PCI_IO_START 0x10000000
-#define PCI_IO_END 0x1000ffff
-#define PCI_MEM_START 0x18000000
-#define PCI_MEM_END 0x18ffffff
-
-#define PCI_FIRST_DEVFN 0
-#define PCI_LAST_DEVFN 1
-
-static inline u8 au_pci_io_readb(u32 addr)
-{
- writel(addr, PCI_IO_ADDR);
- writel((readl(PCI_BRIDGE_CONFIG) & 0xffffcfff) | (1<<12), PCI_BRIDGE_CONFIG);
- return (readl(PCI_IO_DATA_PORT) & 0xff);
-}
-
-static inline u16 au_pci_io_readw(u32 addr)
-{
- writel(addr, PCI_IO_ADDR);
- writel((readl(PCI_BRIDGE_CONFIG) & 0xffffcfff) | (1<<13), PCI_BRIDGE_CONFIG);
- return (readl(PCI_IO_DATA_PORT) & 0xffff);
-}
-
-static inline u32 au_pci_io_readl(u32 addr)
-{
- writel(addr, PCI_IO_ADDR);
- writel((readl(PCI_BRIDGE_CONFIG) & 0xffffcfff), PCI_BRIDGE_CONFIG);
- return readl(PCI_IO_DATA_PORT);
-}
-
-static inline void au_pci_io_writeb(u8 val, u32 addr)
-{
- writel(addr, PCI_IO_ADDR);
- writel((readl(PCI_BRIDGE_CONFIG) & 0xffffcfff) | (1<<12), PCI_BRIDGE_CONFIG);
- writel(val, PCI_IO_DATA_PORT);
-}
-
-static inline void au_pci_io_writew(u16 val, u32 addr)
-{
- writel(addr, PCI_IO_ADDR);
- writel((readl(PCI_BRIDGE_CONFIG) & 0xffffcfff) | (1<<13), PCI_BRIDGE_CONFIG);
- writel(val, PCI_IO_DATA_PORT);
-}
-
-static inline void au_pci_io_writel(u32 val, u32 addr)
-{
- writel(addr, PCI_IO_ADDR);
- writel(readl(PCI_BRIDGE_CONFIG) & 0xffffcfff, PCI_BRIDGE_CONFIG);
- writel(val, PCI_IO_DATA_PORT);
-}
-
-static inline void set_sdram_extbyte(void)
-{
- writel(readl(PCI_BRIDGE_CONFIG) & 0xffffff00, PCI_BRIDGE_CONFIG);
-}
-
-static inline void set_slot_extbyte(void)
-{
- writel((readl(PCI_BRIDGE_CONFIG) & 0xffffbf00) | 0x18, PCI_BRIDGE_CONFIG);
-}
#endif /* __ASM_PB1000_H */
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Pb1000: bury the remnants of the PCI code
2008-04-05 18:59 [PATCH] Pb1000: bury the remnants of the PCI code Sergei Shtylyov
@ 2008-04-08 11:19 ` Ralf Baechle
2008-04-29 18:46 ` Sergei Shtylyov
1 sibling, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2008-04-08 11:19 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-mips
On Sat, Apr 05, 2008 at 10:59:29PM +0400, Sergei Shtylyov wrote:
> PCI support for the Pb1000 board was ectomized by Pete Popov four years ago.
> Unfortunately, the header file wasn't cleansed, so the remnants still get
> in the way of the kernel build (due to macro redefinitions).
>
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Pb1000: bury the remnants of the PCI code
2008-04-05 18:59 [PATCH] Pb1000: bury the remnants of the PCI code Sergei Shtylyov
2008-04-08 11:19 ` Ralf Baechle
@ 2008-04-29 18:46 ` Sergei Shtylyov
2008-04-29 18:53 ` Ralf Baechle
1 sibling, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2008-04-29 18:46 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
Hello, I wrote:
> PCI support for the Pb1000 board was ectomized by Pete Popov four years ago.
> Unfortunately, the header file wasn't cleansed, so the remnants still get
> in the way of the kernel build (due to macro redefinitions).
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Hm looks like I have somehow missed the remanants in
arch/mips/au1000/pb1000/board_setup.c... too bad that this patch has been long
merged. :-/
WBR, Sergei
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Pb1000: bury the remnants of the PCI code
2008-04-29 18:46 ` Sergei Shtylyov
@ 2008-04-29 18:53 ` Ralf Baechle
2008-05-05 10:40 ` Sergei Shtylyov
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2008-04-29 18:53 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-mips
On Tue, Apr 29, 2008 at 10:46:33PM +0400, Sergei Shtylyov wrote:
> Hello, I wrote:
>
>> PCI support for the Pb1000 board was ectomized by Pete Popov four years ago.
>> Unfortunately, the header file wasn't cleansed, so the remnants still get
>> in the way of the kernel build (due to macro redefinitions).
>
>> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>
> Hm looks like I have somehow missed the remanants in
> arch/mips/au1000/pb1000/board_setup.c... too bad that this patch has been
> long merged. :-/
New patch, new luck ;-)
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Pb1000: bury the remnants of the PCI code
2008-04-29 18:53 ` Ralf Baechle
@ 2008-05-05 10:40 ` Sergei Shtylyov
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2008-05-05 10:40 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
Hello.
Ralf Baechle wrote:
>>>PCI support for the Pb1000 board was ectomized by Pete Popov four years ago.
>>>Unfortunately, the header file wasn't cleansed, so the remnants still get
>>>in the way of the kernel build (due to macro redefinitions).
>>>Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>> Hm looks like I have somehow missed the remanants in
>>arch/mips/au1000/pb1000/board_setup.c... too bad that this patch has been
>>long merged. :-/
> New patch, new luck ;-)
I have posted the new patch but the luck (or lack thereof) is the same. ;-)
> Ralf
WBR, Sergei
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-05-05 10:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-05 18:59 [PATCH] Pb1000: bury the remnants of the PCI code Sergei Shtylyov
2008-04-08 11:19 ` Ralf Baechle
2008-04-29 18:46 ` Sergei Shtylyov
2008-04-29 18:53 ` Ralf Baechle
2008-05-05 10:40 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox