nyan: Use the new pinmux functions as part of UART setup.
The pins for the UART had been configured manually using hardcoded offsets and
values. Now that we have pinmux functions for that sort of thing, we should
use that instead. This also provides a very simple test for the pinmux code.
Ultimately this code should be wrapped in a function which handles setting up
any of the UARTs which is appropriately parameterized and which would be
called from the bootblock main instead of being in it, but for now this is
TEST=Built and booted into the bootblock on nyan. Saw console output.
Signed-off-by: Gabe Black <firstname.lastname@example.org>
Reviewed-by: Ronald Minnich <email@example.com>
Reviewed-by: David Hendricks <firstname.lastname@example.org>
Commit-Queue: Gabe Black <email@example.com>
Tested-by: Gabe Black <firstname.lastname@example.org>
1 file changed