mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-24 12:11:28 +01:00
net: macb: Fix GEM hardware detection
Fix MID bit field check to correctly identify all GEM hardwares. The check is updated as per macb driver in Linux location: <linux_sources>/drivers/net/ethernet/cadence/macb_main.c:259 Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alexander Graf <agraf@suse.de> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
2e242f5f43
commit
fbcaa260e5
@ -143,7 +143,7 @@ struct macb_device {
|
|||||||
|
|
||||||
static int macb_is_gem(struct macb_device *macb)
|
static int macb_is_gem(struct macb_device *macb)
|
||||||
{
|
{
|
||||||
return MACB_BFEXT(IDNUM, macb_readl(macb, MID)) == 0x2;
|
return MACB_BFEXT(IDNUM, macb_readl(macb, MID)) >= 0x2;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef cpu_is_sama5d2
|
#ifndef cpu_is_sama5d2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user