Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340434
b: refs/heads/master
c: 0668744
h: refs/heads/master
v: v3
  • Loading branch information
Joachim Eastwood authored and David S. Miller committed Oct 23, 2012
1 parent d804f9a commit c2626aa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f4a15e1b293b0de21bab6d9c258f162d9efff9e2
refs/heads/master: 0668744f792a737872aa1904010e5fba5f95376b
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-at91/board-csb337.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ static void __init csb337_init_early(void)
static struct macb_platform_data __initdata csb337_eth_data = {
.phy_irq_pin = AT91_PIN_PC2,
.is_rmii = 0,
/* The CSB337 bootloader stores the MAC the wrong-way around */
.rev_eth_addr = 1,
};

static struct at91_usbh_data __initdata csb337_usbh_data = {
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/ethernet/cadence/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ if NET_CADENCE

config ARM_AT91_ETHER
tristate "AT91RM9200 Ethernet support"
depends on ARM && ARCH_AT91RM9200
select NET_CORE
select MACB
---help---
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/net/ethernet/cadence/at91_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include <linux/phy.h>
#include <linux/io.h>

#include <asm/mach-types.h>

#include "macb.h"

#define DRV_NAME "at91_ether"
Expand Down Expand Up @@ -61,9 +59,10 @@

static short __init unpack_mac_address(struct net_device *dev, unsigned int hi, unsigned int lo)
{
struct macb *lp = netdev_priv(dev);
char addr[6];

if (machine_is_csb337()) {
if (lp->board_data.rev_eth_addr) {
addr[5] = (lo & 0xff); /* The CSB337 bootloader stores the MAC the wrong-way around */
addr[4] = (lo & 0xff00) >> 8;
addr[3] = (lo & 0xff0000) >> 16;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/platform_data/macb.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ struct macb_platform_data {
u32 phy_mask;
int phy_irq_pin; /* PHY IRQ */
u8 is_rmii; /* using RMII interface? */
u8 rev_eth_addr; /* reverse Ethernet address byte order */
};

#endif /* __MACB_PDATA_H__ */

0 comments on commit c2626aa

Please sign in to comment.