File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2155,10 +2155,10 @@ static void eth0_irq_config(void)
2155
2155
PINCTRL_DT_INST_DEFINE (0 );
2156
2156
2157
2157
static const struct eth_sam_dev_cfg eth0_config = {
2158
- .regs = (Gmac * )DT_INST_REG_ADDR ( 0 ),
2158
+ .regs = (Gmac * )DT_REG_ADDR ( DT_INST_PARENT ( 0 ) ),
2159
2159
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET (0 ),
2160
2160
#ifdef CONFIG_SOC_FAMILY_ATMEL_SAM
2161
- .clock_cfg = SAM_DT_INST_CLOCK_PMC_CFG ( 0 ),
2161
+ .clock_cfg = SAM_DT_CLOCK_PMC_CFG ( 0 , DT_INST_PARENT ( 0 ) ),
2162
2162
#endif
2163
2163
.config_func = eth0_irq_config ,
2164
2164
.phy_dev = DEVICE_DT_GET (DT_INST_PHANDLE (0 , phy_handle ))
Original file line number Diff line number Diff line change @@ -169,12 +169,14 @@ static DEVICE_API(mdio, mdio_sam_driver_api) = {
169
169
170
170
#define MDIO_SAM_CLOCK (n ) \
171
171
COND_CODE_1(CONFIG_SOC_FAMILY_ATMEL_SAM, \
172
- (.clock_cfg = SAM_DT_INST_CLOCK_PMC_CFG(n),), () \
172
+ (.clock_cfg = \
173
+ SAM_DT_CLOCK_PMC_CFG(0, DT_INST_PARENT(n)),), \
174
+ () \
173
175
)
174
176
175
177
#define MDIO_SAM_CONFIG (n ) \
176
178
static const struct mdio_sam_dev_config mdio_sam_dev_config_##n = { \
177
- .regs = (Gmac *)DT_INST_REG_ADDR(n), \
179
+ .regs = (Gmac *)DT_REG_ADDR(DT_INST_PARENT(n)), \
178
180
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
179
181
MDIO_SAM_CLOCK(n) \
180
182
};
You can’t perform that action at this time.
0 commit comments