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)
Feb 24 2024, 6:51 AM
Unknown Object (File)
Dec 20 2023, 12:10 AM
Unknown Object (File)
Nov 13 2023, 1:37 PM
Unknown Object (File)
Oct 25 2023, 9:59 AM
Unknown Object (File)
Oct 8 2023, 12:18 PM
Unknown Object (File)
Jun 21 2023, 3:17 AM
Unknown Object (File)
May 22 2023, 7:01 PM
Unknown Object (File)
May 2 2023, 4:07 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 Not Applicable
Unit
Tests Not Applicable

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.