Hi team,
I transplanted u-boot based on AM64 SDK9.0 with reference to AM65 SDK8.6.
I found there are no ICSSG related driver files found in AM64 SDK9.0 ti-u-boot/drivers/net/ti , I copied them from the AM65 SDK folder.
I'm stuck on icssg_config() function in prueth_probe() function, located in ti-u-boot/drivers/net/ti/icssg_prueth.c
There is only one last step left to successfully probe.
static int prueth_probe(struct udevice *dev){
/* Set Load time configuration */
…
icssg_config(prueth);
}
ti-u-boot/drivers/net/ti/icssg_config.c:
int icssg_config(struct prueth *prueth){
…
icssg_config_rgmii_init(prueth, slice);
icssg_config_mii_init(prueth, slice);
…
}
ti-u-boot/drivers/net/ti/icssg_config.c:
static void icssg_config_rgmii_init(struct prueth *prueth, int slice){
…
regmap_write(miig_rt, ICSSG_CFG_OFFSET, ICSSG_CFG_DEFAULT | mii_mode);
…
}
ti-u-boot/drivers/core/regmap.c:
int regmap_write(struct regmap *map, uint offset, uint val){
…
printf("regmap_write, offset:%x\n", offset);
printf("regmap_write, val:%x\n", val);
printf("map->width:%d\n", map->width); //I don’t understand why get the map->width value, can cause "Synchronous Abort" handler, esr 0x96000004
switch (map->width) {
case REGMAP_SIZE_8:
..
}
UART Output error part:
regmap_write, offset:0
regmap_write, val:1082f
"Synchronous Abort" handler, esr 0x96000004
elr: 0000000080835844 lr : 0000000080835844 (reloc)
elr: 00000000fff3f844 lr : 00000000fff3f844
x0 : 0000000000000018 x1 : 0000000000000000
x2 : 000000000000000a x3 : 0000000002800000
x4 : 0000000002800000 x5 : 00000000fded7a4a
x6 : 0000000000000066 x7 : 00000000fded7ee0
x8 : 0000000000000000 x9 : 0000000000000008
x10: 00000000ffffffd0 x11: 0000000000000010
x12: 000000000000a28c x13: 00000000fded7f28
x14: 00000000fded8110 x15: 0000000000000020
x16: 00000000fff5f55c x17: 0000000000000000
x18: 00000000fdee9db0 x19: 000000000001082f
x20: ffffffffffffffea x21: 0000000000000000
x22: 00000000fdef4fc0 x23: ffffffffffffffea
x24: 0000000030080000 x25: 00000000000f4240
x26: 00000000800bf697 x27: 0000000000000000
x28: 0000000000000000 x29: 00000000fded7ee0
Code: 2a1303e1 d00003c0 9126e800 94016f4f (b9400681)
Best Regards,
Zane