Page MenuHomeFreeBSD

Remap UART physical address with OF_decode_addr()
ClosedPublic

Authored by ian on Dec 22 2015, 1:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 4:41 AM
Unknown Object (File)
Thu, Dec 5, 5:10 PM
Unknown Object (File)
Wed, Nov 20, 10:40 PM
Unknown Object (File)
Nov 6 2024, 2:05 PM
Unknown Object (File)
Oct 22 2024, 11:30 AM
Unknown Object (File)
Sep 29 2024, 8:55 PM
Unknown Object (File)
Sep 20 2024, 6:30 AM
Unknown Object (File)
Sep 17 2024, 5:58 PM
Subscribers

Details

Summary

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.

Test Plan

Tested on imx6 and kirkwood.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

ian retitled this revision from to Remap UART physical address with OF_decode_addr().
ian updated this object.
ian edited the test plan for this revision. (Show Details)
ian added reviewers: bsz_semihalf.com, ARM.
ian set the repository for this revision to rS FreeBSD src repository - subversion.
andrew requested changes to this revision.Dec 22 2015, 7:28 AM
andrew added a reviewer: andrew.
andrew added a subscriber: andrew.

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'
This revision now requires changes to proceed.Dec 22 2015, 7:28 AM

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?

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?

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.

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.

This revision now requires changes to proceed.Jan 18 2016, 4:46 PM
This revision was automatically updated to reflect the committed changes.