mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
bcma: define ChipCommon B MII registers
We don't have access to datasheets to document all the bits but we can name these registers at least. Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
This commit is contained in:
parent
cf8c581a00
commit
cc2d1de06f
2 changed files with 8 additions and 4 deletions
|
|
@ -33,11 +33,12 @@ static bool bcma_wait_reg(struct bcma_bus *bus, void __iomem *addr, u32 mask,
|
|||
void bcma_chipco_b_mii_write(struct bcma_drv_cc_b *ccb, u32 offset, u32 value)
|
||||
{
|
||||
struct bcma_bus *bus = ccb->core->bus;
|
||||
void __iomem *mii = ccb->mii;
|
||||
|
||||
writel(offset, ccb->mii + 0x00);
|
||||
bcma_wait_reg(bus, ccb->mii + 0x00, 0x0100, 0x0000, 100);
|
||||
writel(value, ccb->mii + 0x04);
|
||||
bcma_wait_reg(bus, ccb->mii + 0x00, 0x0100, 0x0000, 100);
|
||||
writel(offset, mii + BCMA_CCB_MII_MNG_CTL);
|
||||
bcma_wait_reg(bus, mii + BCMA_CCB_MII_MNG_CTL, 0x0100, 0x0000, 100);
|
||||
writel(value, mii + BCMA_CCB_MII_MNG_CMD_DATA);
|
||||
bcma_wait_reg(bus, mii + BCMA_CCB_MII_MNG_CTL, 0x0100, 0x0000, 100);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(bcma_chipco_b_mii_write);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue