Beaglebone - Changing Default Mux Mode in Kernel Code

Actually, I believe the code you want is already contained in the board-am335xevm.c file, it just only executes when a serial cape is connected.

To manually run the code it is probably enough to just add the following line right before the end of the am335x_evm_init() function:
setup_pin_mux(uart1_pin_mux);

That will set up pin muxing for the RXD and TXD lines of UART1 (have a look at the uart1_pin_mux array).

Cheers,
Hermann

Worked like a champ! I was wondering what that uart1_pin_mux structure was for. Thanks a bunch, Hermann.

Nick