mpc83xx: MPC837xEMDS: Use hwconfig instead of pci_external_arbiter variable
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 9 Jun 2009 20:25:38 +0000 (00:25 +0400)
committerWolfgang Denk <wd@denx.de>
Thu, 16 Jul 2009 20:47:10 +0000 (22:47 +0200)
Since we have simple hwconfig interface now, we don't need
pci_external_arbiter variable any longer.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
board/freescale/mpc837xemds/mpc837xemds.c

index b0289c0d04a6836c8a25d0b65c5e9a650e145728..9d8b18d99348f468e5cc31c8cffa371a7806b3a9 100644 (file)
@@ -292,10 +292,9 @@ int board_pci_host_broken(void)
 {
        struct immap __iomem *im = (struct immap __iomem *)CONFIG_SYS_IMMR;
        const u32 rcw_mask = HRCWH_PCI1_ARBITER_ENABLE | HRCWH_PCI_HOST;
-       const char *pci_ea = getenv("pci_external_arbiter");
 
        /* It's always OK in case of external arbiter. */
-       if (pci_ea && !strcmp(pci_ea, "yes"))
+       if (hwconfig_subarg_cmp("pci", "arbiter", "external"))
                return 0;
 
        if ((in_be32(&im->reset.rcwh) & rcw_mask) != rcw_mask)