提交 97c46048 编写于 作者: R Russell King 提交者: Dan Williams

iop: Program outbound windows using the correct definitions

The outbound translate registers should be programmed with the bus
addresses that are defined in the header files, rather than the
physical address.

Currently it doesn't matter because they're identical, but the headers
currently allow them to be different, and not using the right macros
here means that people are in for a surprise if they change them.

Cc: Lennert Buytenhek <kernel@wantstofly.org>
Acked-by: NDan Williams <dan.j.williams@intel.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 27eedbf5
...@@ -253,11 +253,11 @@ void __init iop3xx_atu_setup(void) ...@@ -253,11 +253,11 @@ void __init iop3xx_atu_setup(void)
*IOP3XX_IATVR2 = PHYS_OFFSET; *IOP3XX_IATVR2 = PHYS_OFFSET;
/* Outbound window 0 */ /* Outbound window 0 */
*IOP3XX_OMWTVR0 = IOP3XX_PCI_LOWER_MEM_PA; *IOP3XX_OMWTVR0 = IOP3XX_PCI_LOWER_MEM_BA;
*IOP3XX_OUMWTVR0 = 0; *IOP3XX_OUMWTVR0 = 0;
/* Outbound window 1 */ /* Outbound window 1 */
*IOP3XX_OMWTVR1 = IOP3XX_PCI_LOWER_MEM_PA + IOP3XX_PCI_MEM_WINDOW_SIZE; *IOP3XX_OMWTVR1 = IOP3XX_PCI_LOWER_MEM_BA + IOP3XX_PCI_MEM_WINDOW_SIZE;
*IOP3XX_OUMWTVR1 = 0; *IOP3XX_OUMWTVR1 = 0;
/* BAR 3 ( Disabled ) */ /* BAR 3 ( Disabled ) */
...@@ -268,7 +268,7 @@ void __init iop3xx_atu_setup(void) ...@@ -268,7 +268,7 @@ void __init iop3xx_atu_setup(void)
/* Setup the I/O Bar /* Setup the I/O Bar
*/ */
*IOP3XX_OIOWTVR = IOP3XX_PCI_LOWER_IO_PA;; *IOP3XX_OIOWTVR = IOP3XX_PCI_LOWER_IO_BA;
/* Enable inbound and outbound cycles /* Enable inbound and outbound cycles
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册