diff mbox

[U-Boot,7/9] malta: Set I/O port base early

Message ID 1454075695-31981-8-git-send-email-paul.burton@imgtec.com
State Accepted
Commit 19a5ef60bb209f85ee2f61e99b65c321843b2316
Delegated to: Daniel Schwierzeck
Headers show

Commit Message

Paul Burton Jan. 29, 2016, 1:54 p.m. UTC
Set the I/O port base earlier, from board_early_init_f, in preparation
for it being used by the serial driver.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
---

 board/imgtec/malta/malta.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Daniel Schwierzeck Feb. 1, 2016, 9:24 p.m. UTC | #1
2016-01-29 14:54 GMT+01:00 Paul Burton <paul.burton@imgtec.com>:
> Set the I/O port base earlier, from board_early_init_f, in preparation
> for it being used by the serial driver.
>
> Signed-off-by: Paul Burton <paul.burton@imgtec.com>
> ---
>
>  board/imgtec/malta/malta.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>

applied to u-boot-mips, thanks
diff mbox

Patch

diff --git a/board/imgtec/malta/malta.c b/board/imgtec/malta/malta.c
index cae4a21..6f4aebc 100644
--- a/board/imgtec/malta/malta.c
+++ b/board/imgtec/malta/malta.c
@@ -146,6 +146,8 @@  int board_early_init_f(void)
 		return -1;
 	}
 
+	set_io_port_base((ulong)io_base);
+
 	/* setup FDC37M817 super I/O controller */
 	malta_superio_init(io_base);
 
@@ -179,8 +181,6 @@  void pci_init_board(void)
 
 	switch (malta_sys_con()) {
 	case SYSCON_GT64120:
-		set_io_port_base(CKSEG1ADDR(MALTA_GT_PCIIO_BASE));
-
 		gt64120_pci_init((void *)CKSEG1ADDR(MALTA_GT_BASE),
 				 0x00000000, 0x00000000, CONFIG_SYS_MEM_SIZE,
 				 0x10000000, 0x10000000, 128 * 1024 * 1024,
@@ -189,8 +189,6 @@  void pci_init_board(void)
 
 	default:
 	case SYSCON_MSC01:
-		set_io_port_base(CKSEG1ADDR(MALTA_MSC01_PCIIO_BASE));
-
 		msc01_pci_init((void *)CKSEG1ADDR(MALTA_MSC01_PCI_BASE),
 			       0x00000000, 0x00000000, CONFIG_SYS_MEM_SIZE,
 			       MALTA_MSC01_PCIMEM_MAP,