Esempio n. 1
0
/*
 * Freescale Kinetis platform initialization
 */
static void __init kinetis_init(void)
{
	/*
	 * Configure the IOMUXes of the Freescale Kinetis MCU
	 */
	kinetis_iomux_init();

#if defined(CONFIG_SERIAL_KINETIS)
	/*
	 * Configure the UART devices
	 */
	kinetis_uart_init();
#endif

#if defined(CONFIG_KINETIS_MAC)
	/*
	 * Configure the Freescale Kinetis MAC
	 */
	kinetis_eth_init();
#endif

#if defined(CONFIG_MTD_NAND_FSL_NFC)
	/*
	 * Configure the external NAND Flash
	 */
	kinetis_nand_init();
#endif

#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
	/*
	 * Configure some of the I2C interfaces to be controlled by
	 * the `i2c-gpio` GPIO-emulated I2C driver.
	 */
	kinetis_i2c_gpio_init();
#endif /* defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) */

#if defined(CONFIG_KINETIS_FB)
	/*
	 * Configure the Freescale Kinetis LCD Controller
	 */
	kinetis_fb_init();
#endif
}
Esempio n. 2
0
/*
 * Freescale Kinetis platform initialization
 */
static void __init kinetis_init(void)
{
#if defined(CONFIG_KINETIS_EDMA)
	/*
	 * Configure DMA controller and its driver's API
	 */
	kinetis_dma_init();
#endif

	/*
	 * Configure the IOMUXes of the Freescale Kinetis MCU
	 */
	kinetis_iomux_init();

#if defined(CONFIG_SERIAL_KINETIS)
	/*
	 * Configure the UART devices
	 */
	kinetis_uart_init();
#endif

#if defined(CONFIG_KINETIS_MAC)
	/*
	 * Configure the Freescale Kinetis MAC
	 */
	kinetis_eth_init();
#endif

#if defined(CONFIG_MTD_NAND_FSL_NFC)
	/*
	 * Configure the external NAND Flash
	 */
	kinetis_nand_init();
#endif

#if defined(CONFIG_GPIOLIB)
	/*
	 * Register Kinetis GPIO lines
	 */
	kinetis_gpio_init();
#endif /* CONFIG_GPIOLIB */

#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
	/*
	 * Configure some of the I2C interfaces to be controlled by
	 * the `i2c-gpio` GPIO-emulated I2C driver.
	 */
	kinetis_i2c_gpio_init();
#endif /* defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) */

#if defined(CONFIG_KINETIS_FB)
	/*
	 * Configure the Freescale Kinetis LCD Controller
	 */
	kinetis_fb_init();
#endif

#if defined(CONFIG_USB_EHCI_MXC)
	/*
	 * Configure the Freescale Kinetis USB High Speed controller
	 */
	kinetis_ehci_init();
#endif

#if defined(CONFIG_KINETIS_SPI_GPIO)
	/*
	 * Configure SPI buses emulated using GPIOs
	 */
	kinetis_spi_gpio_init();
#endif
}