mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
net: phy: realtek: Use the BIT() macro
The BIT macro is the preferred method to set bits. This patch adds the bit macro and converts bit invocations. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
75c056d70e
commit
020f67628d
1 changed files with 3 additions and 2 deletions
|
@ -9,13 +9,14 @@
|
|||
*/
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <phy.h>
|
||||
|
||||
#define PHY_AUTONEGOTIATE_TIMEOUT 5000
|
||||
|
||||
/* RTL8211x 1000BASE-T Control Register */
|
||||
#define MIIM_RTL8211x_CTRL1000T_MSCE (1 << 12);
|
||||
#define MIIM_RTL8211X_CTRL1000T_MASTER (1 << 11);
|
||||
#define MIIM_RTL8211x_CTRL1000T_MSCE BIT(12);
|
||||
#define MIIM_RTL8211X_CTRL1000T_MASTER BIT(11);
|
||||
|
||||
/* RTL8211x PHY Status Register */
|
||||
#define MIIM_RTL8211x_PHY_STATUS 0x11
|
||||
|
|
Loading…
Reference in a new issue