Page MenuHomeFreeBSD

Add initial support for Alpine V2
AbandonedPublic

Authored by mst_semihalf.com on Feb 22 2016, 4:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 8:52 PM
Unknown Object (File)
Apr 12 2024, 10:17 AM
Unknown Object (File)
Jan 10 2024, 1:33 PM
Unknown Object (File)
Dec 22 2023, 9:14 PM
Unknown Object (File)
Aug 8 2023, 5:57 AM
Unknown Object (File)
Jun 28 2023, 12:58 AM
Unknown Object (File)
May 28 2023, 5:20 PM
Unknown Object (File)
May 6 2023, 4:46 AM
Subscribers

Details

Reviewers
wma
andrew
imp
Summary
  • Add compatible string in uart 8250 driver
  • Add uart 8250 device to GENERIC arm64 configuration
  • Use /soc/uart0 as system console if 'serial0' was not found
  • Get memory ranges from FDT if no EFI API is available

Diff Detail

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

Event Timeline

mst_semihalf.com retitled this revision from to Add initial support for Alpine V2.
mst_semihalf.com updated this object.
mst_semihalf.com edited the test plan for this revision. (Show Details)
mst_semihalf.com added reviewers: andrew, imp, wma.
mst_semihalf.com set the repository for this revision to rS FreeBSD src repository - subversion.
mst_semihalf.com added a subscriber: arm64.
sys/arm64/arm64/machdep.c
857

if (efihdr != NULL)

sys/dev/uart/uart_cpu_fdt.c
171–172

This looks too much like a hack. The dtb should provide a chosen node, and we shouldn't guess too much which uart to use if it's missing.

I suggest splitting this change into separate patches, i.e. FDT, UART compat string etc. I don't think this patch contain anything specific to Alpine-v2.

Agree with Andrew, /soc/uart0 is not something we can expect to be in other DTSes. Is there anything we can do with DTS? Like ask A. to provide 'chosen' link or do a fixup in uboot?

In D5395#114928, @wma wrote:

I suggest splitting this change into separate patches, i.e. FDT, UART compat string etc. I don't think this patch contain anything specific to Alpine-v2.

Agree with Andrew, /soc/uart0 is not something we can expect to be in other DTSes. Is there anything we can do with DTS? Like ask A. to provide 'chosen' link or do a fixup in uboot?

I will split it into three patches then. I suppose we can ask them to add the chosen node to the DTS as there will be changes needed anyway to fix other boot issues.

I have split this patch into three separate ones: D5404, D5406 and D5408.