Skip to content

Commit

Permalink
doc: added comment for hack.
Browse files Browse the repository at this point in the history
Signed-off-by: ridale <ridale123@outlook.com>

fix: patches from kent, imx8mq evk.

Signed-off-by: ridale <ridale123@outlook.com>
  • Loading branch information
ridale committed Aug 23, 2021
1 parent 8ed42ff commit fcc3307
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libethdrivers/plat_include/imx6/ethdrivers/plat/eth_plat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

struct enet *get_enet_from_driver(struct eth_driver *driver);

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

typedef int (*sync_func_t)(void);
typedef int (*mdio_read_func_t)(uint16_t reg);
Expand Down
3 changes: 2 additions & 1 deletion libethdrivers/src/plat/imx6/imx6.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ static int init_device(imx6_eth_driver_t *dev, const nic_config_t *nic_config)
/* Initialise the phy library */
miiphy_init();
/* Initialise the phy */
#if defined(CONFIG_PLAT_SABRE) || defined(CONFIG_PLAT_WANDQ)
#if defined(CONFIG_PLAT_SABRE) || defined(CONFIG_PLAT_WANDQ) || \
defined (CONFIG_PLAT_IMX8MQ_EVK)
phy_micrel_init();
#elif defined(CONFIG_PLAT_NITROGEN6SX)
phy_atheros_init();
Expand Down
4 changes: 4 additions & 0 deletions libethdrivers/src/plat/imx6/uboot/imx-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#define ROMCP_ARB_BASE_ADDR 0x00000000
#define ROMCP_ARB_END_ADDR 0x000FFFFF

// HACK use imx6 register layout for imx8
#if defined (CONFIG_PLAT_IMX8MQ_EVK)
#define CONFIG_PLAT_IMX6DQ
#endif

#if defined(CONFIG_PLAT_IMX6DQ)

Expand Down

0 comments on commit fcc3307

Please sign in to comment.