Basically I just this it:
...
#include "chip.h"
#include "stm32_gpio.h"
#include "stm32_rcc.h"
...
/* Extern PLLI2S clock on MCO2 (PC9) */
#define BOARD_CFGR_MC02_SOURCE RCC_CFGR_MCO2_PLLI2S
#define BOARD_CFGR_MC02_DIVIDER RCC_CFGR_MCO2PRE_NONE
#define GPIO_MCO2 (GPIO_MCO2_0|GPIO_SPEED_100MHz)
int stm32_bringup(void)
{
int ret = OK;
/* Extern I2S clock on MCO2 pin */
stm32_configgpio(GPIO_MCO2);
stm32_mco2config(BOARD_CFGR_MC02_SOURCE,
BOARD_CFGR_MC02_DIVIDER);
...
}