GCR
[GCR] = { 0x0400, 0x00, OMAP_DMA_REG_16BIT },
[GCR] = { 0x0078, 0x00, OMAP_DMA_REG_32BIT },
od->context.gcr = omap_dma_glbl_read(od, GCR);
omap_dma_glbl_write(od, GCR, od->context.gcr);
omap_dma_glbl_write(od, GCR, val);
u32 GCR; /* Global Control Register */
.GCR = 0x0,
.GCR = 0x0,
lvds_set(lvds, phy->base + phy->ofs.GCR, lvds_gcr);
lvds_set(lvds, phy->base + phy->ofs.GCR, PHY_GCR_DIV_RSTN | PHY_GCR_RSTZ);
lvds_set(lvds, phy->base + phy->ofs.GCR, PHY_GCR_DIV_RSTN | PHY_GCR_RSTZ);
lvds_clear(lvds, lvds->primary->base + lvds->primary->ofs.GCR,
lvds_clear(lvds, lvds->primary->base + lvds->primary->ofs.GCR,
lvds_clear(lvds, lvds->secondary->base + lvds->secondary->ofs.GCR,
lvds_clear(lvds, lvds->secondary->base + lvds->secondary->ofs.GCR,
reg_data = er32(GCR);
ew32(GCR, reg_data);
reg = er32(GCR);
ew32(GCR, reg);
gcr = er32(GCR);
ew32(GCR, gcr);
u8 GCR;
GCR = readb(®s->CHIPGCR);
GCR = (GCR & ~CHIPGCR_FCGMII) | CHIPGCR_FCFDX;
writeb(GCR, ®s->CHIPGCR);
writel(readl(ac97_reg_base + GCR) | (GCR_WARM_RST), ac97_reg_base + GCR);
writel(readl(ac97_reg_base + GCR) & ( GCR_COLD_RST), ac97_reg_base + GCR); /* clear everything but nCRST */
writel(readl(ac97_reg_base + GCR) & (~GCR_COLD_RST), ac97_reg_base + GCR); /* then assert nCRST */
writel(GCR_COLD_RST, ac97_reg_base + GCR);
writel(readl(ac97_reg_base + GCR) | (GCR_WARM_RST), ac97_reg_base + GCR);
writel(readl(ac97_reg_base + GCR) & ( GCR_COLD_RST), ac97_reg_base + GCR); /* clear everything but nCRST */
writel(readl(ac97_reg_base + GCR) & (~GCR_COLD_RST), ac97_reg_base + GCR); /* then assert nCRST */
writel(GCR_COLD_RST | GCR_WARM_RST, ac97_reg_base + GCR);
writel(readl(ac97_reg_base + GCR) | (GCR_WARM_RST), ac97_reg_base + GCR);
writel(0, ac97_reg_base + GCR);
writel(GCR_CLKBPB, ac97_reg_base + GCR);
writel(0, ac97_reg_base + GCR);
writel(readl(ac97_reg_base + GCR) & ( GCR_COLD_RST), ac97_reg_base + GCR); /* clear everything but nCRST */
writel(readl(ac97_reg_base + GCR) & (~GCR_COLD_RST), ac97_reg_base + GCR); /* then assert nCRST */
writel(readl(ac97_reg_base + GCR) & (~(GCR_PRIRDY_IEN|GCR_SECRDY_IEN)), ac97_reg_base + GCR);
writel(GCR_WARM_RST | GCR_COLD_RST, ac97_reg_base + GCR);
u32 gcr = readl(ac97_reg_base + GCR);
writel(gcr, ac97_reg_base + GCR);
writel(readl(ac97_reg_base + GCR) | (GCR_ACLINK_OFF), ac97_reg_base + GCR);
writel(readl(ac97_reg_base + GCR) | (GCR_ACLINK_OFF), ac97_reg_base + GCR);
writel(readl(ac97_reg_base + GCR) | (GCR_ACLINK_OFF), ac97_reg_base + GCR);