After the refactoring of the powerpc code so that OF_decode_addr() is usable on all FDT/OFW platforms, switch uart(4) to using it to set up console access.
This supercedes D4217.
Differential D4675
Remap UART physical address with OF_decode_addr() • ian on Dec 22 2015, 1:33 AM. Authored by Tags None Referenced Files
Details
After the refactoring of the powerpc code so that OF_decode_addr() is usable on all FDT/OFW platforms, switch uart(4) to using it to set up console access. This supercedes D4217. Tested on imx6 and kirkwood.
Diff Detail
Event TimelineComment Actions This fails to link on arm64: linking kernel.full uart_cpu_fdt.o: In function `uart_cpu_getdev': /home/at718/freebsd/sys/dev/uart/uart_cpu_fdt.c:215: undefined reference to `OF_decode_addr' Comment Actions Works fine for me, thank you! As for Andrew's issue, perhaps we could add sys/arm/arm/ofw_machdep.c to sys/conf/files.arm64? Comment Actions This was done in r293060, but I forgot to cite the phab in the commit msg. I think the reset of the semihalf chagnes that were depending on this are ready to move forward. Comment Actions From our Comedy Of Errors Dept: un-abandon this, I abandoned the wrong diff, citing the wrong svn rev. Proper commit and close to follow. |