Skip to content

Commit fcc3307

Browse files
committed
doc: added comment for hack.
Signed-off-by: ridale <[email protected]> fix: patches from kent, imx8mq evk. Signed-off-by: ridale <[email protected]>
1 parent 8ed42ff commit fcc3307

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

libethdrivers/plat_include/imx6/ethdrivers/plat/eth_plat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
struct enet *get_enet_from_driver(struct eth_driver *driver);
1616

17-
enum {
17+
enum nic_config_flags_t {
1818
NIC_CONFIG_FORCE_MAC = 1u << 0, /**< Use MAC from config (if not 0) */
1919
NIC_CONFIG_PROMISCUOUS_MODE = 1u << 1, /**< Enable promiscuous mode */
2020
NIC_CONFIG_DROP_FRAME_CRC = 1u << 2, /**< Drop ethernet frame CRC */
21-
} nic_config_flags_t;
21+
};
2222

2323
typedef int (*sync_func_t)(void);
2424
typedef int (*mdio_read_func_t)(uint16_t reg);

libethdrivers/src/plat/imx6/imx6.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,8 @@ static int init_device(imx6_eth_driver_t *dev, const nic_config_t *nic_config)
736736
/* Initialise the phy library */
737737
miiphy_init();
738738
/* Initialise the phy */
739-
#if defined(CONFIG_PLAT_SABRE) || defined(CONFIG_PLAT_WANDQ)
739+
#if defined(CONFIG_PLAT_SABRE) || defined(CONFIG_PLAT_WANDQ) || \
740+
defined (CONFIG_PLAT_IMX8MQ_EVK)
740741
phy_micrel_init();
741742
#elif defined(CONFIG_PLAT_NITROGEN6SX)
742743
phy_atheros_init();

libethdrivers/src/plat/imx6/uboot/imx-regs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
#define ROMCP_ARB_BASE_ADDR 0x00000000
3434
#define ROMCP_ARB_END_ADDR 0x000FFFFF
3535

36+
// HACK use imx6 register layout for imx8
37+
#if defined (CONFIG_PLAT_IMX8MQ_EVK)
38+
#define CONFIG_PLAT_IMX6DQ
39+
#endif
3640

3741
#if defined(CONFIG_PLAT_IMX6DQ)
3842

0 commit comments

Comments
 (0)