X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fconfigs%2FRattler.h;h=e630afef01922863b3d977ca3eedcdbaa39b3875;hb=206c00f26f56af02686cb69bfe5c75e979063171;hp=5b6f27186bf700312388cedf305abac340f2fa35;hpb=8206bfae3ab7f99965136384360ba2de0c6f4c3b;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/configs/Rattler.h b/include/configs/Rattler.h index 5b6f271..e630afef 100644 --- a/include/configs/Rattler.h +++ b/include/configs/Rattler.h @@ -103,6 +103,10 @@ * GPIO pins used for bit-banged MII communications */ #define MDIO_PORT 2 /* Port C */ +#define MDIO_DECLARE volatile ioport_t *iop = ioport_addr ( \ + (immap_t *) CONFIG_SYS_IMMR, MDIO_PORT ) +#define MDC_DECLARE MDIO_DECLARE + #define MDIO_ACTIVE (iop->pdir |= 0x00400000) #define MDIO_TRISTATE (iop->pdir &= ~0x00400000) #define MDIO_READ ((iop->pdat & 0x00400000) != 0)