• Gerhard Sittig's avatar
    serial: mpc512x: setup the PSC FIFO clock as well · cb1ea812
    Gerhard Sittig authored
    prepare and enable the FIFO clock upon PSC FIFO initialization,
    check for and propagage errors when enabling the PSC FIFO clock,
    disable and unprepare the FIFO clock upon PSC FIFO uninitialization
    
    devm_{get,put}_clk() doesn't apply here, as the SoC provides a
    single FIFO component which is shared among several PSC components,
    thus the FIFO isn't associated with a device (while the PSCs are)
    
    provide a fallback clock lookup approach in case the OF based clock
    lookup for the PSC FIFO fails, this allows for successful operation in
    the presence of an outdated device tree which lacks clock specs
    
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Jiri Slaby <jslaby@suse.cz>
    Cc: linux-serial@vger.kernel.org
    Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: default avatarGerhard Sittig <gsi@denx.de>
    Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
    cb1ea812
mpc52xx_uart.c 50.7 KB