]> git.sur5r.net Git - u-boot/commitdiff
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
authorWolfgang Denk <wd@denx.de>
Tue, 10 Mar 2009 21:04:04 +0000 (22:04 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 10 Mar 2009 21:04:04 +0000 (22:04 +0100)
board/freescale/common/sgmii_riser.c
cpu/mpc85xx/ddr-gen3.c
drivers/net/tsec.c
include/asm-ppc/immap_85xx.h

index aeacb91bc13875c2e874d205c8b2ab4742a3cb18..4f40a1d6d44679c116acd391bf466e31bfbafa69 100644 (file)
@@ -47,7 +47,6 @@ void fsl_sgmii_riser_fdt_fixup(void *fdt)
                const char *model;
                const char *path;
 
-               printf("Updating PHY address for %s\n", dev->name);
                if (!strstr(dev->name, "eTSEC"))
                        continue;
 
@@ -64,7 +63,6 @@ void fsl_sgmii_riser_fdt_fixup(void *fdt)
 
                model = fdt_getprop(fdt, enet_node, "model", NULL);
 
-               printf("%s's model is %s\n", enet, model);
                /*
                 * We only want to do this to eTSECs.  On some platforms
                 * there are more than one type of gianfar-style ethernet
@@ -84,7 +82,6 @@ void fsl_sgmii_riser_fdt_fixup(void *fdt)
 
                priv = dev->priv;
 
-               printf("Device flags are %x\n", priv->flags);
                if (priv->flags & TSEC_SGMII)
                        fdt_setprop_cell(fdt, phynode, "reg", priv->phyaddr);
        }
index 8dc2b3ac528bd66894778224c4c531c3c05903bd..99c325a4ff1f9dce7be21b7aefbc1b6b58d99d8a 100644 (file)
@@ -79,8 +79,8 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
        out_be32(&ddr->ddr_sdram_rcw_1, regs->ddr_sdram_rcw_1);
        out_be32(&ddr->ddr_sdram_rcw_2, regs->ddr_sdram_rcw_2);
 
-       /* Do not enable the memory */
-       temp_sdram_cfg = in_be32(&ddr->sdram_cfg);
+       /* Set, but do not enable the memory */
+       temp_sdram_cfg = regs->ddr_sdram_cfg;
        temp_sdram_cfg &= ~(SDRAM_CFG_MEM_EN);
        out_be32(&ddr->sdram_cfg, temp_sdram_cfg);
        /*
index 1f5d1b44a4874ba93be6c4b821f7de863d19e9b3..399116f3a258c6540fe13c6f88d778847719bd83 100644 (file)
@@ -1624,7 +1624,7 @@ struct phy_info *phy_info[] = {
        &phy_info_VSC8601,
        &phy_info_dp83865,
        &phy_info_rtl8211b,
-       &phy_info_generic,
+       &phy_info_generic,      /* must be last; has ID 0 and 32 bit mask */
        NULL
 };
 
@@ -1656,9 +1656,8 @@ struct phy_info *get_phy_info(struct eth_device *dev)
                }
        }
 
-       if (theInfo == NULL) {
-               printf("%s: PHY id %x is not supported!\n", dev->name, phy_ID);
-               return NULL;
+       if (theInfo == &phy_info_generic) {
+               printf("%s: No support for PHY id %x; assuming generic\n", dev->name, phy_ID);
        } else {
                debug("%s: PHY is %s (%x)\n", dev->name, theInfo->name, phy_ID);
        }
index 7b97fe0bddbcdaed87cf301742b6a1782664b4c1..094fb9c5d6213d89d37662fd7d56db8208f4b0fc 100644 (file)
@@ -1667,7 +1667,7 @@ typedef struct ccsr_gur {
        uint    lbiuiplldcr0;   /* 0xe0f1c -- LBIU PLL Debug Reg 0 */
        uint    lbiuiplldcr1;   /* 0xe0f20 -- LBIU PLL Debug Reg 1 */
        uint    ddrioovcr;      /* 0xe0f24 - DDR IO Override Control */
-       uint    res14;          /* 0xe0f28 */
+       uint    tsec12ioovcr;   /* 0xe0f28 - eTSEC 1/2 IO override control */
        uint    tsec34ioovcr;   /* 0xe0f2c - eTSEC 3/4 IO override control */
        char    res15[61648];   /* 0xe0f30 to 0xefffff */
 } ccsr_gur_t;