2 * TI DA850/OMAP-L138 EVM board
4 * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
6 * Derived from: arch/arm/mach-davinci/board-da830-evm.c
7 * Original Copyrights follow:
9 * 2007, 2009 (c) MontaVista Software, Inc. This file is licensed under
10 * the terms of the GNU General Public License version 2. This program
11 * is licensed "as is" without any warranty of any kind, whether express
14 #include <linux/kernel.h>
15 #include <linux/init.h>
16 #include <linux/console.h>
17 #include <linux/i2c.h>
18 #include <linux/i2c/at24.h>
19 #include <linux/i2c/pca953x.h>
20 #include <linux/mfd/tps6507x.h>
21 #include <linux/gpio.h>
22 #include <linux/platform_device.h>
23 #include <linux/mtd/mtd.h>
24 #include <linux/mtd/nand.h>
25 #include <linux/mtd/partitions.h>
26 #include <linux/mtd/physmap.h>
27 #include <linux/regulator/machine.h>
28 #include <linux/regulator/tps6507x.h>
29 #include <linux/mfd/tps6507x.h>
30 #include <linux/input/tps6507x-ts.h>
32 #include <asm/mach-types.h>
33 #include <asm/mach/arch.h>
35 #include <mach/cp_intc.h>
36 #include <mach/da8xx.h>
37 #include <mach/nand.h>
39 #include <mach/aemif.h>
41 #define DA850_EVM_PHY_MASK 0x1
42 #define DA850_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */
44 #define DA850_LCD_PWR_PIN GPIO_TO_PIN(2, 8)
45 #define DA850_LCD_BL_PIN GPIO_TO_PIN(2, 15)
47 #define DA850_MMCSD_CD_PIN GPIO_TO_PIN(4, 0)
48 #define DA850_MMCSD_WP_PIN GPIO_TO_PIN(4, 1)
50 #define DA850_MII_MDIO_CLKEN_PIN GPIO_TO_PIN(2, 6)
52 static struct mtd_partition da850_evm_norflash_partition[] = {
54 .name = "bootloaders + env",
57 .mask_flags = MTD_WRITEABLE,
61 .offset = MTDPART_OFS_APPEND,
67 .offset = MTDPART_OFS_APPEND,
68 .size = MTDPART_SIZ_FULL,
73 static struct physmap_flash_data da850_evm_norflash_data = {
75 .parts = da850_evm_norflash_partition,
76 .nr_parts = ARRAY_SIZE(da850_evm_norflash_partition),
79 static struct resource da850_evm_norflash_resource[] = {
81 .start = DA8XX_AEMIF_CS2_BASE,
82 .end = DA8XX_AEMIF_CS2_BASE + SZ_32M - 1,
83 .flags = IORESOURCE_MEM,
87 static struct platform_device da850_evm_norflash_device = {
88 .name = "physmap-flash",
91 .platform_data = &da850_evm_norflash_data,
94 .resource = da850_evm_norflash_resource,
97 static struct davinci_pm_config da850_pm_pdata = {
101 static struct platform_device da850_pm_device = {
102 .name = "pm-davinci",
104 .platform_data = &da850_pm_pdata,
109 /* DA850/OMAP-L138 EVM includes a 512 MByte large-page NAND flash
110 * (128K blocks). It may be used instead of the (default) SPI flash
111 * to boot, using TI's tools to install the secondary boot loader
114 static struct mtd_partition da850_evm_nandflash_partition[] = {
116 .name = "u-boot env",
119 .mask_flags = MTD_WRITEABLE,
123 .offset = MTDPART_OFS_APPEND,
125 .mask_flags = MTD_WRITEABLE,
129 .offset = MTDPART_OFS_APPEND,
131 .mask_flags = MTD_WRITEABLE,
140 .name = "filesystem",
141 .offset = MTDPART_OFS_APPEND,
142 .size = MTDPART_SIZ_FULL,
147 static struct davinci_aemif_timing da850_evm_nandflash_timing = {
157 static struct davinci_nand_pdata da850_evm_nandflash_data = {
158 .parts = da850_evm_nandflash_partition,
159 .nr_parts = ARRAY_SIZE(da850_evm_nandflash_partition),
160 .ecc_mode = NAND_ECC_HW,
162 .options = NAND_USE_FLASH_BBT,
163 .timing = &da850_evm_nandflash_timing,
166 static struct resource da850_evm_nandflash_resource[] = {
168 .start = DA8XX_AEMIF_CS3_BASE,
169 .end = DA8XX_AEMIF_CS3_BASE + SZ_512K + 2 * SZ_1K - 1,
170 .flags = IORESOURCE_MEM,
173 .start = DA8XX_AEMIF_CTL_BASE,
174 .end = DA8XX_AEMIF_CTL_BASE + SZ_32K - 1,
175 .flags = IORESOURCE_MEM,
179 static struct platform_device da850_evm_nandflash_device = {
180 .name = "davinci_nand",
183 .platform_data = &da850_evm_nandflash_data,
185 .num_resources = ARRAY_SIZE(da850_evm_nandflash_resource),
186 .resource = da850_evm_nandflash_resource,
189 static struct platform_device *da850_evm_devices[] __initdata = {
190 &da850_evm_nandflash_device,
191 &da850_evm_norflash_device,
194 #define DA8XX_AEMIF_CE2CFG_OFFSET 0x10
195 #define DA8XX_AEMIF_ASIZE_16BIT 0x1
197 static void __init da850_evm_init_nor(void)
199 void __iomem *aemif_addr;
201 aemif_addr = ioremap(DA8XX_AEMIF_CTL_BASE, SZ_32K);
203 /* Configure data bus width of CS2 to 16 bit */
204 writel(readl(aemif_addr + DA8XX_AEMIF_CE2CFG_OFFSET) |
205 DA8XX_AEMIF_ASIZE_16BIT,
206 aemif_addr + DA8XX_AEMIF_CE2CFG_OFFSET);
211 static const short da850_evm_nand_pins[] = {
212 DA850_EMA_D_0, DA850_EMA_D_1, DA850_EMA_D_2, DA850_EMA_D_3,
213 DA850_EMA_D_4, DA850_EMA_D_5, DA850_EMA_D_6, DA850_EMA_D_7,
214 DA850_EMA_A_1, DA850_EMA_A_2, DA850_NEMA_CS_3, DA850_NEMA_CS_4,
215 DA850_NEMA_WE, DA850_NEMA_OE,
219 static const short da850_evm_nor_pins[] = {
220 DA850_EMA_BA_1, DA850_EMA_CLK, DA850_EMA_WAIT_1, DA850_NEMA_CS_2,
221 DA850_NEMA_WE, DA850_NEMA_OE, DA850_EMA_D_0, DA850_EMA_D_1,
222 DA850_EMA_D_2, DA850_EMA_D_3, DA850_EMA_D_4, DA850_EMA_D_5,
223 DA850_EMA_D_6, DA850_EMA_D_7, DA850_EMA_D_8, DA850_EMA_D_9,
224 DA850_EMA_D_10, DA850_EMA_D_11, DA850_EMA_D_12, DA850_EMA_D_13,
225 DA850_EMA_D_14, DA850_EMA_D_15, DA850_EMA_A_0, DA850_EMA_A_1,
226 DA850_EMA_A_2, DA850_EMA_A_3, DA850_EMA_A_4, DA850_EMA_A_5,
227 DA850_EMA_A_6, DA850_EMA_A_7, DA850_EMA_A_8, DA850_EMA_A_9,
228 DA850_EMA_A_10, DA850_EMA_A_11, DA850_EMA_A_12, DA850_EMA_A_13,
229 DA850_EMA_A_14, DA850_EMA_A_15, DA850_EMA_A_16, DA850_EMA_A_17,
230 DA850_EMA_A_18, DA850_EMA_A_19, DA850_EMA_A_20, DA850_EMA_A_21,
231 DA850_EMA_A_22, DA850_EMA_A_23,
235 static u32 ui_card_detected;
237 #if defined(CONFIG_MMC_DAVINCI) || \
238 defined(CONFIG_MMC_DAVINCI_MODULE)
244 static inline void da850_evm_setup_nor_nand(void)
248 if (ui_card_detected & !HAS_MMC) {
249 ret = davinci_cfg_reg_list(da850_evm_nand_pins);
251 pr_warning("da850_evm_init: nand mux setup failed: "
254 ret = davinci_cfg_reg_list(da850_evm_nor_pins);
256 pr_warning("da850_evm_init: nor mux setup failed: %d\n",
259 da850_evm_init_nor();
261 platform_add_devices(da850_evm_devices,
262 ARRAY_SIZE(da850_evm_devices));
266 #ifdef CONFIG_DA850_UI_RMII
267 static inline void da850_evm_setup_emac_rmii(int rmii_sel)
269 struct davinci_soc_info *soc_info = &davinci_soc_info;
271 soc_info->emac_pdata->rmii_en = 1;
272 gpio_set_value(rmii_sel, 0);
275 static inline void da850_evm_setup_emac_rmii(int rmii_sel) { }
278 static int da850_evm_ui_expander_setup(struct i2c_client *client, unsigned gpio,
279 unsigned ngpio, void *c)
281 int sel_a, sel_b, sel_c, ret;
287 ret = gpio_request(sel_a, "sel_a");
289 pr_warning("Cannot open UI expander pin %d\n", sel_a);
290 goto exp_setup_sela_fail;
293 ret = gpio_request(sel_b, "sel_b");
295 pr_warning("Cannot open UI expander pin %d\n", sel_b);
296 goto exp_setup_selb_fail;
299 ret = gpio_request(sel_c, "sel_c");
301 pr_warning("Cannot open UI expander pin %d\n", sel_c);
302 goto exp_setup_selc_fail;
305 /* deselect all functionalities */
306 gpio_direction_output(sel_a, 1);
307 gpio_direction_output(sel_b, 1);
308 gpio_direction_output(sel_c, 1);
310 ui_card_detected = 1;
311 pr_info("DA850/OMAP-L138 EVM UI card detected\n");
313 da850_evm_setup_nor_nand();
315 da850_evm_setup_emac_rmii(sel_a);
327 static int da850_evm_ui_expander_teardown(struct i2c_client *client,
328 unsigned gpio, unsigned ngpio, void *c)
330 /* deselect all functionalities */
331 gpio_set_value(gpio + 5, 1);
332 gpio_set_value(gpio + 6, 1);
333 gpio_set_value(gpio + 7, 1);
342 static struct pca953x_platform_data da850_evm_ui_expander_info = {
343 .gpio_base = DAVINCI_N_GPIO,
344 .setup = da850_evm_ui_expander_setup,
345 .teardown = da850_evm_ui_expander_teardown,
348 static struct i2c_board_info __initdata da850_evm_i2c_devices[] = {
350 I2C_BOARD_INFO("tlv320aic3x", 0x18),
353 I2C_BOARD_INFO("tca6416", 0x20),
354 .platform_data = &da850_evm_ui_expander_info,
358 static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = {
359 .bus_freq = 100, /* kHz */
360 .bus_delay = 0, /* usec */
363 static struct davinci_uart_config da850_evm_uart_config __initdata = {
364 .enabled_uarts = 0x7,
367 /* davinci da850 evm audio machine driver */
368 static u8 da850_iis_serializer_direction[] = {
369 INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
370 INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
371 INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, TX_MODE,
372 RX_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
375 static struct snd_platform_data da850_evm_snd_data = {
376 .tx_dma_offset = 0x2000,
377 .rx_dma_offset = 0x2000,
378 .op_mode = DAVINCI_MCASP_IIS_MODE,
379 .num_serializer = ARRAY_SIZE(da850_iis_serializer_direction),
381 .serial_dir = da850_iis_serializer_direction,
382 .asp_chan_q = EVENTQ_1,
383 .version = MCASP_VERSION_2,
388 static int da850_evm_mmc_get_ro(int index)
390 return gpio_get_value(DA850_MMCSD_WP_PIN);
393 static int da850_evm_mmc_get_cd(int index)
395 return !gpio_get_value(DA850_MMCSD_CD_PIN);
398 static struct davinci_mmc_config da850_mmc_config = {
399 .get_ro = da850_evm_mmc_get_ro,
400 .get_cd = da850_evm_mmc_get_cd,
402 .max_freq = 50000000,
403 .caps = MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED,
404 .version = MMC_CTLR_VERSION_2,
407 static void da850_panel_power_ctrl(int val)
410 gpio_set_value(DA850_LCD_BL_PIN, val);
413 gpio_set_value(DA850_LCD_PWR_PIN, val);
416 static int da850_lcd_hw_init(void)
420 status = gpio_request(DA850_LCD_BL_PIN, "lcd bl\n");
424 status = gpio_request(DA850_LCD_PWR_PIN, "lcd pwr\n");
426 gpio_free(DA850_LCD_BL_PIN);
430 gpio_direction_output(DA850_LCD_BL_PIN, 0);
431 gpio_direction_output(DA850_LCD_PWR_PIN, 0);
433 /* Switch off panel power and backlight */
434 da850_panel_power_ctrl(0);
436 /* Switch on panel power and backlight */
437 da850_panel_power_ctrl(1);
442 /* TPS65070 voltage regulator support */
445 static struct regulator_consumer_supply tps65070_dcdc1_consumers[] = {
447 .supply = "usb0_vdda33",
450 .supply = "usb1_vdda33",
455 static struct regulator_consumer_supply tps65070_dcdc2_consumers[] = {
457 .supply = "dvdd3318_a",
460 .supply = "dvdd3318_b",
463 .supply = "dvdd3318_c",
468 static struct regulator_consumer_supply tps65070_dcdc3_consumers[] = {
475 static struct regulator_consumer_supply tps65070_ldo1_consumers[] = {
477 .supply = "sata_vddr",
480 .supply = "usb0_vdda18",
483 .supply = "usb1_vdda18",
486 .supply = "ddr_dvdd18",
491 static struct regulator_consumer_supply tps65070_ldo2_consumers[] = {
493 .supply = "sata_vdd",
496 .supply = "pll0_vdda",
499 .supply = "pll1_vdda",
502 .supply = "usbs_cvdd",
505 .supply = "vddarnwa1",
509 /* We take advantage of the fact that both defdcdc{2,3} are tied high */
510 static struct tps6507x_reg_platform_data tps6507x_platform_data = {
511 .defdcdc_default = true,
514 static struct regulator_init_data tps65070_regulator_data[] = {
520 .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
521 REGULATOR_CHANGE_STATUS),
524 .num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc1_consumers),
525 .consumer_supplies = tps65070_dcdc1_consumers,
533 .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
534 REGULATOR_CHANGE_STATUS),
537 .num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc2_consumers),
538 .consumer_supplies = tps65070_dcdc2_consumers,
539 .driver_data = &tps6507x_platform_data,
547 .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
548 REGULATOR_CHANGE_STATUS),
551 .num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc3_consumers),
552 .consumer_supplies = tps65070_dcdc3_consumers,
553 .driver_data = &tps6507x_platform_data,
561 .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
562 REGULATOR_CHANGE_STATUS),
565 .num_consumer_supplies = ARRAY_SIZE(tps65070_ldo1_consumers),
566 .consumer_supplies = tps65070_ldo1_consumers,
574 .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
575 REGULATOR_CHANGE_STATUS),
578 .num_consumer_supplies = ARRAY_SIZE(tps65070_ldo2_consumers),
579 .consumer_supplies = tps65070_ldo2_consumers,
583 static struct touchscreen_init_data tps6507x_touchscreen_data = {
584 .poll_period = 30, /* ms between touch samples */
585 .min_pressure = 0x30, /* minimum pressure to trigger touch */
586 .vref = 0, /* turn off vref when not using A/D */
587 .vendor = 0, /* /sys/class/input/input?/id/vendor */
588 .product = 65070, /* /sys/class/input/input?/id/product */
589 .version = 0x100, /* /sys/class/input/input?/id/version */
592 static struct tps6507x_board tps_board = {
593 .tps6507x_pmic_init_data = &tps65070_regulator_data[0],
594 .tps6507x_ts_init_data = &tps6507x_touchscreen_data,
597 static struct i2c_board_info __initdata da850evm_tps65070_info[] = {
599 I2C_BOARD_INFO("tps6507x", 0x48),
600 .platform_data = &tps_board,
604 static int __init pmic_tps65070_init(void)
606 return i2c_register_board_info(1, da850evm_tps65070_info,
607 ARRAY_SIZE(da850evm_tps65070_info));
610 static const short da850_evm_lcdc_pins[] = {
611 DA850_GPIO2_8, DA850_GPIO2_15,
615 static const short da850_evm_mii_pins[] = {
616 DA850_MII_TXEN, DA850_MII_TXCLK, DA850_MII_COL, DA850_MII_TXD_3,
617 DA850_MII_TXD_2, DA850_MII_TXD_1, DA850_MII_TXD_0, DA850_MII_RXER,
618 DA850_MII_CRS, DA850_MII_RXCLK, DA850_MII_RXDV, DA850_MII_RXD_3,
619 DA850_MII_RXD_2, DA850_MII_RXD_1, DA850_MII_RXD_0, DA850_MDIO_CLK,
624 static const short da850_evm_rmii_pins[] = {
625 DA850_RMII_TXD_0, DA850_RMII_TXD_1, DA850_RMII_TXEN,
626 DA850_RMII_CRS_DV, DA850_RMII_RXD_0, DA850_RMII_RXD_1,
627 DA850_RMII_RXER, DA850_RMII_MHZ_50_CLK, DA850_MDIO_CLK,
632 static int __init da850_evm_config_emac(void)
634 void __iomem *cfg_chip3_base;
637 struct davinci_soc_info *soc_info = &davinci_soc_info;
638 u8 rmii_en = soc_info->emac_pdata->rmii_en;
640 if (!machine_is_davinci_da850_evm())
643 cfg_chip3_base = DA8XX_SYSCFG0_VIRT(DA8XX_CFGCHIP3_REG);
645 val = __raw_readl(cfg_chip3_base);
649 ret = davinci_cfg_reg_list(da850_evm_rmii_pins);
650 pr_info("EMAC: RMII PHY configured, MII PHY will not be"
654 ret = davinci_cfg_reg_list(da850_evm_mii_pins);
655 pr_info("EMAC: MII PHY configured, RMII PHY will not be"
660 pr_warning("da850_evm_init: cpgmac/rmii mux setup failed: %d\n",
663 /* configure the CFGCHIP3 register for RMII or MII */
664 __raw_writel(val, cfg_chip3_base);
666 ret = davinci_cfg_reg(DA850_GPIO2_6);
668 pr_warning("da850_evm_init:GPIO(2,6) mux setup "
671 ret = gpio_request(DA850_MII_MDIO_CLKEN_PIN, "mdio_clk_en");
673 pr_warning("Cannot open GPIO %d\n",
674 DA850_MII_MDIO_CLKEN_PIN);
678 /* Enable/Disable MII MDIO clock */
679 gpio_direction_output(DA850_MII_MDIO_CLKEN_PIN, rmii_en);
681 soc_info->emac_pdata->phy_mask = DA850_EVM_PHY_MASK;
682 soc_info->emac_pdata->mdio_max_freq = DA850_EVM_MDIO_FREQUENCY;
684 ret = da8xx_register_emac();
686 pr_warning("da850_evm_init: emac registration failed: %d\n",
691 device_initcall(da850_evm_config_emac);
694 * The following EDMA channels/slots are not being used by drivers (for
695 * example: Timer, GPIO, UART events etc) on da850/omap-l138 EVM, hence
696 * they are being reserved for codecs on the DSP side.
698 static const s16 da850_dma0_rsv_chans[][2] = {
699 /* (offset, number) */
706 static const s16 da850_dma0_rsv_slots[][2] = {
707 /* (offset, number) */
714 static const s16 da850_dma1_rsv_chans[][2] = {
715 /* (offset, number) */
721 static const s16 da850_dma1_rsv_slots[][2] = {
722 /* (offset, number) */
728 static struct edma_rsv_info da850_edma_cc0_rsv = {
729 .rsv_chans = da850_dma0_rsv_chans,
730 .rsv_slots = da850_dma0_rsv_slots,
733 static struct edma_rsv_info da850_edma_cc1_rsv = {
734 .rsv_chans = da850_dma1_rsv_chans,
735 .rsv_slots = da850_dma1_rsv_slots,
738 static struct edma_rsv_info *da850_edma_rsv[2] = {
743 static __init void da850_evm_init(void)
747 ret = pmic_tps65070_init();
749 pr_warning("da850_evm_init: TPS65070 PMIC init failed: %d\n",
752 ret = da850_register_edma(da850_edma_rsv);
754 pr_warning("da850_evm_init: edma registration failed: %d\n",
757 ret = davinci_cfg_reg_list(da850_i2c0_pins);
759 pr_warning("da850_evm_init: i2c0 mux setup failed: %d\n",
762 ret = da8xx_register_i2c(0, &da850_evm_i2c_0_pdata);
764 pr_warning("da850_evm_init: i2c0 registration failed: %d\n",
768 ret = da8xx_register_watchdog();
770 pr_warning("da830_evm_init: watchdog registration failed: %d\n",
774 ret = davinci_cfg_reg_list(da850_mmcsd0_pins);
776 pr_warning("da850_evm_init: mmcsd0 mux setup failed:"
779 ret = gpio_request(DA850_MMCSD_CD_PIN, "MMC CD\n");
781 pr_warning("da850_evm_init: can not open GPIO %d\n",
783 gpio_direction_input(DA850_MMCSD_CD_PIN);
785 ret = gpio_request(DA850_MMCSD_WP_PIN, "MMC WP\n");
787 pr_warning("da850_evm_init: can not open GPIO %d\n",
789 gpio_direction_input(DA850_MMCSD_WP_PIN);
791 ret = da8xx_register_mmcsd0(&da850_mmc_config);
793 pr_warning("da850_evm_init: mmcsd0 registration failed:"
797 davinci_serial_init(&da850_evm_uart_config);
799 i2c_register_board_info(1, da850_evm_i2c_devices,
800 ARRAY_SIZE(da850_evm_i2c_devices));
803 * shut down uart 0 and 1; they are not used on the board and
804 * accessing them causes endless "too much work in irq53" messages
807 __raw_writel(0, IO_ADDRESS(DA8XX_UART1_BASE) + 0x30);
808 __raw_writel(0, IO_ADDRESS(DA8XX_UART0_BASE) + 0x30);
810 ret = davinci_cfg_reg_list(da850_mcasp_pins);
812 pr_warning("da850_evm_init: mcasp mux setup failed: %d\n",
815 da8xx_register_mcasp(0, &da850_evm_snd_data);
817 ret = davinci_cfg_reg_list(da850_lcdcntl_pins);
819 pr_warning("da850_evm_init: lcdcntl mux setup failed: %d\n",
822 /* Handle board specific muxing for LCD here */
823 ret = davinci_cfg_reg_list(da850_evm_lcdc_pins);
825 pr_warning("da850_evm_init: evm specific lcd mux setup "
826 "failed: %d\n", ret);
828 ret = da850_lcd_hw_init();
830 pr_warning("da850_evm_init: lcd initialization failed: %d\n",
833 sharp_lk043t1dg01_pdata.panel_power_ctrl = da850_panel_power_ctrl,
834 ret = da8xx_register_lcdc(&sharp_lk043t1dg01_pdata);
836 pr_warning("da850_evm_init: lcdc registration failed: %d\n",
839 ret = da8xx_register_rtc();
841 pr_warning("da850_evm_init: rtc setup failed: %d\n", ret);
843 ret = da850_register_cpufreq("pll0_sysclk3");
845 pr_warning("da850_evm_init: cpufreq registration failed: %d\n",
848 ret = da8xx_register_cpuidle();
850 pr_warning("da850_evm_init: cpuidle registration failed: %d\n",
853 ret = da850_register_pm(&da850_pm_device);
855 pr_warning("da850_evm_init: suspend registration failed: %d\n",
859 #ifdef CONFIG_SERIAL_8250_CONSOLE
860 static int __init da850_evm_console_init(void)
862 return add_preferred_console("ttyS", 2, "115200");
864 console_initcall(da850_evm_console_init);
867 static void __init da850_evm_map_io(void)
872 MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM")
874 .io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc,
875 .boot_params = (DA8XX_DDR_BASE + 0x100),
876 .map_io = da850_evm_map_io,
877 .init_irq = cp_intc_init,
878 .timer = &davinci_timer,
879 .init_machine = da850_evm_init,