summaryrefslogtreecommitdiffstats
path: root/doc/README.bitbangMII
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-10-28 00:49:47 +0100
committerWolfgang Denk <wd@denx.de>2009-10-28 00:49:47 +0100
commit4946775c6db52dba28f72ba3525764b54f1d4593 (patch)
treee5d0d53ce1e138f05b2ced553933aecc6907c3e1 /doc/README.bitbangMII
parent246c69225c7b962d5c93e92282b78ca9fc5fefee (diff)
downloadu-boot-4946775c6db52dba28f72ba3525764b54f1d4593.tar.gz
u-boot-4946775c6db52dba28f72ba3525764b54f1d4593.tar.xz
u-boot-4946775c6db52dba28f72ba3525764b54f1d4593.zip
Coding Style cleanup; update CHANGELOG, prepare -rc1v2009.11-rc1
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'doc/README.bitbangMII')
-rw-r--r--doc/README.bitbangMII18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/README.bitbangMII b/doc/README.bitbangMII
index edd085630f..0a2fa48a56 100644
--- a/doc/README.bitbangMII
+++ b/doc/README.bitbangMII
@@ -6,7 +6,7 @@ buses are implemented via bit-banging mode.
The driver requires that the following macros should be defined into the board
configuration file:
-CONFIG_BITBANGMII - Enable the miiphybb driver
+CONFIG_BITBANGMII - Enable the miiphybb driver
CONFIG_BITBANGMII_MULTI - Enable the multi bus support
If the CONFIG_BITBANGMII_MULTI is not defined, the board's config file needs
@@ -19,7 +19,7 @@ MDIO_TRISTATE - Activate the MDIO pin as input/tristate pin
MDIO_READ - Read the MDIO pin
MDIO(v) - Write v on the MDIO pin
MDC_DECLARE - Declaration needed to access to the MDC pin (optional)
-MDC(v) - Write v on the MDC pin
+MDC(v) - Write v on the MDC pin
The previous macros make the driver compatible with the previous version
(that didn't support the multi-bus).
@@ -30,17 +30,17 @@ the bb_miiphy_buses_num variable with the number of mii buses.
The record (struct bb_miiphy_bus) has the following fields/callbacks (see
miiphy.h for details):
-char name[] - The symbolic name that must be equal to the MII bus
- registered name
-int (*init)() - Initialization function called at startup time (just
- before the Ethernet initialization)
+char name[] - The symbolic name that must be equal to the MII bus
+ registered name
+int (*init)() - Initialization function called at startup time (just
+ before the Ethernet initialization)
int (*mdio_active)() - Activate the MDIO pin as output
int (*mdio_tristate)() - Activate the MDIO pin as input/tristate pin
int (*set_mdio)() - Write the MDIO pin
int (*get_mdio)() - Read the MDIO pin
int (*set_mdc)() - Write the MDC pin
-int (*delay)() - Delay function
-void *priv - Private data used by board specific code
+int (*delay)() - Delay function
+void *priv - Private data used by board specific code
The board code will look like:
@@ -50,7 +50,7 @@ struct bb_miiphy_bus bb_miiphy_buses[] = {
...
};
int bb_miiphy_buses_num = sizeof(bb_miiphy_buses) /
- sizeof(bb_miiphy_buses[0]);
+ sizeof(bb_miiphy_buses[0]);
2009 Industrie Dial Face S.p.A.
Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>