2 * Hardware definitions for the Toshiba eseries PDAs
4 * Copyright (c) 2003 Ian Molton <spyro@f2s.com>
6 * This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
13 #include <linux/kernel.h>
14 #include <linux/init.h>
15 #include <linux/gpio.h>
16 #include <linux/delay.h>
17 #include <linux/platform_device.h>
18 #include <linux/mfd/tc6387xb.h>
19 #include <linux/mfd/tc6393xb.h>
20 #include <linux/mfd/t7l66xb.h>
21 #include <linux/mtd/nand.h>
22 #include <linux/mtd/partitions.h>
24 #include <video/w100fb.h>
26 #include <asm/setup.h>
27 #include <asm/mach/arch.h>
28 #include <asm/mach-types.h>
30 #include <mach/pxa25x.h>
31 #include <mach/eseries-gpio.h>
32 #include <mach/eseries-irq.h>
33 #include <mach/audio.h>
34 #include <mach/pxafb.h>
36 #include <mach/irda.h>
42 /* Only e800 has 128MB RAM */
43 void __init eseries_fixup(struct machine_desc *desc,
44 struct tag *tags, char **cmdline, struct meminfo *mi)
47 mi->bank[0].start = 0xa0000000;
48 if (machine_is_e800())
49 mi->bank[0].size = (128*1024*1024);
51 mi->bank[0].size = (64*1024*1024);
54 struct pxa2xx_udc_mach_info e7xx_udc_mach_info = {
55 .gpio_vbus = GPIO_E7XX_USB_DISC,
56 .gpio_pullup = GPIO_E7XX_USB_PULLUP,
57 .gpio_pullup_inverted = 1
60 struct pxaficp_platform_data e7xx_ficp_platform_data = {
61 .gpio_pwdown = GPIO_E7XX_IR_OFF,
62 .transceiver_cap = IR_SIRMODE | IR_OFF,
65 int eseries_tmio_enable(struct platform_device *dev)
67 /* Reset - bring SUSPEND high before PCLR */
68 gpio_set_value(GPIO_ESERIES_TMIO_SUSPEND, 0);
69 gpio_set_value(GPIO_ESERIES_TMIO_PCLR, 0);
71 gpio_set_value(GPIO_ESERIES_TMIO_SUSPEND, 1);
73 gpio_set_value(GPIO_ESERIES_TMIO_PCLR, 1);
78 int eseries_tmio_disable(struct platform_device *dev)
80 gpio_set_value(GPIO_ESERIES_TMIO_SUSPEND, 0);
81 gpio_set_value(GPIO_ESERIES_TMIO_PCLR, 0);
85 int eseries_tmio_suspend(struct platform_device *dev)
87 gpio_set_value(GPIO_ESERIES_TMIO_SUSPEND, 0);
91 int eseries_tmio_resume(struct platform_device *dev)
93 gpio_set_value(GPIO_ESERIES_TMIO_SUSPEND, 1);
98 void eseries_get_tmio_gpios(void)
100 gpio_request(GPIO_ESERIES_TMIO_SUSPEND, NULL);
101 gpio_request(GPIO_ESERIES_TMIO_PCLR, NULL);
102 gpio_direction_output(GPIO_ESERIES_TMIO_SUSPEND, 0);
103 gpio_direction_output(GPIO_ESERIES_TMIO_PCLR, 0);
106 /* TMIO controller uses the same resources on all e-series machines. */
107 struct resource eseries_tmio_resources[] = {
109 .start = PXA_CS4_PHYS,
110 .end = PXA_CS4_PHYS + 0x1fffff,
111 .flags = IORESOURCE_MEM,
114 .start = IRQ_GPIO(GPIO_ESERIES_TMIO_IRQ),
115 .end = IRQ_GPIO(GPIO_ESERIES_TMIO_IRQ),
116 .flags = IORESOURCE_IRQ,
120 /* Some e-series hardware cannot control the 32K clock */
121 static void clk_32k_dummy(struct clk *clk)
125 static const struct clkops clk_32k_dummy_ops = {
126 .enable = clk_32k_dummy,
127 .disable = clk_32k_dummy,
130 static struct clk tmio_dummy_clk = {
131 .ops = &clk_32k_dummy_ops,
135 static struct clk_lookup eseries_clkregs[] = {
136 INIT_CLKREG(&tmio_dummy_clk, NULL, "CLK_CK32K"),
139 void eseries_register_clks(void)
141 clkdev_add_table(eseries_clkregs, ARRAY_SIZE(eseries_clkregs));
144 #ifdef CONFIG_MACH_E330
145 /* -------------------- e330 tc6387xb parameters -------------------- */
147 static struct tc6387xb_platform_data e330_tc6387xb_info = {
148 .enable = &eseries_tmio_enable,
149 .disable = &eseries_tmio_disable,
150 .suspend = &eseries_tmio_suspend,
151 .resume = &eseries_tmio_resume,
154 static struct platform_device e330_tc6387xb_device = {
158 .platform_data = &e330_tc6387xb_info,
161 .resource = eseries_tmio_resources,
164 /* --------------------------------------------------------------- */
166 static struct platform_device *e330_devices[] __initdata = {
167 &e330_tc6387xb_device,
170 static void __init e330_init(void)
172 pxa_set_ffuart_info(NULL);
173 pxa_set_btuart_info(NULL);
174 pxa_set_stuart_info(NULL);
175 eseries_register_clks();
176 eseries_get_tmio_gpios();
177 platform_add_devices(ARRAY_AND_SIZE(e330_devices));
178 pxa_set_udc_info(&e7xx_udc_mach_info);
181 MACHINE_START(E330, "Toshiba e330")
182 /* Maintainer: Ian Molton (spyro@f2s.com) */
183 .phys_io = 0x40000000,
184 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
185 .boot_params = 0xa0000100,
186 .map_io = pxa_map_io,
187 .nr_irqs = ESERIES_NR_IRQS,
188 .init_irq = pxa25x_init_irq,
189 .fixup = eseries_fixup,
190 .init_machine = e330_init,
195 #ifdef CONFIG_MACH_E350
196 /* -------------------- e350 t7l66xb parameters -------------------- */
198 static struct t7l66xb_platform_data e350_t7l66xb_info = {
199 .irq_base = IRQ_BOARD_START,
200 .enable = &eseries_tmio_enable,
201 .suspend = &eseries_tmio_suspend,
202 .resume = &eseries_tmio_resume,
205 static struct platform_device e350_t7l66xb_device = {
209 .platform_data = &e350_t7l66xb_info,
212 .resource = eseries_tmio_resources,
215 /* ---------------------------------------------------------- */
217 static struct platform_device *e350_devices[] __initdata = {
218 &e350_t7l66xb_device,
221 static void __init e350_init(void)
223 pxa_set_ffuart_info(NULL);
224 pxa_set_btuart_info(NULL);
225 pxa_set_stuart_info(NULL);
226 eseries_register_clks();
227 eseries_get_tmio_gpios();
228 platform_add_devices(ARRAY_AND_SIZE(e350_devices));
229 pxa_set_udc_info(&e7xx_udc_mach_info);
232 MACHINE_START(E350, "Toshiba e350")
233 /* Maintainer: Ian Molton (spyro@f2s.com) */
234 .phys_io = 0x40000000,
235 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
236 .boot_params = 0xa0000100,
237 .map_io = pxa_map_io,
238 .nr_irqs = ESERIES_NR_IRQS,
239 .init_irq = pxa25x_init_irq,
240 .fixup = eseries_fixup,
241 .init_machine = e350_init,
246 #ifdef CONFIG_MACH_E400
247 /* ------------------------ E400 LCD definitions ------------------------ */
249 static struct pxafb_mode_info e400_pxafb_mode_info = {
263 static struct pxafb_mach_info e400_pxafb_mach_info = {
264 .modes = &e400_pxafb_mode_info,
266 .lcd_conn = LCD_COLOR_TFT_16BPP,
268 .pxafb_backlight_power = NULL,
271 /* ------------------------ E400 MFP config ----------------------------- */
273 static unsigned long e400_pin_config[] __initdata = {
275 GPIO15_nCS_1, /* CS1 - Flash */
276 GPIO80_nCS_4, /* CS4 - TMIO */
286 /* TMIO controller */
287 GPIO19_GPIO, /* t7l66xb #PCLR */
288 GPIO45_GPIO, /* t7l66xb #SUSPEND (NOT BTUART!) */
291 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
294 /* ---------------------------------------------------------------------- */
296 static struct mtd_partition partition_a = {
297 .name = "Internal NAND flash",
299 .size = MTDPART_SIZ_FULL,
302 static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
304 static struct nand_bbt_descr e400_t7l66xb_nand_bbt = {
308 .pattern = scan_ff_pattern
311 static struct tmio_nand_data e400_t7l66xb_nand_config = {
313 .partition = &partition_a,
314 .badblock_pattern = &e400_t7l66xb_nand_bbt,
317 static struct t7l66xb_platform_data e400_t7l66xb_info = {
318 .irq_base = IRQ_BOARD_START,
319 .enable = &eseries_tmio_enable,
320 .suspend = &eseries_tmio_suspend,
321 .resume = &eseries_tmio_resume,
323 .nand_data = &e400_t7l66xb_nand_config,
326 static struct platform_device e400_t7l66xb_device = {
330 .platform_data = &e400_t7l66xb_info,
333 .resource = eseries_tmio_resources,
336 /* ---------------------------------------------------------- */
338 static struct platform_device *e400_devices[] __initdata = {
339 &e400_t7l66xb_device,
342 static void __init e400_init(void)
344 pxa2xx_mfp_config(ARRAY_AND_SIZE(e400_pin_config));
345 pxa_set_ffuart_info(NULL);
346 pxa_set_btuart_info(NULL);
347 pxa_set_stuart_info(NULL);
348 /* Fixme - e400 may have a switched clock */
349 eseries_register_clks();
350 eseries_get_tmio_gpios();
351 set_pxa_fb_info(&e400_pxafb_mach_info);
352 platform_add_devices(ARRAY_AND_SIZE(e400_devices));
353 pxa_set_udc_info(&e7xx_udc_mach_info);
356 MACHINE_START(E400, "Toshiba e400")
357 /* Maintainer: Ian Molton (spyro@f2s.com) */
358 .phys_io = 0x40000000,
359 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
360 .boot_params = 0xa0000100,
361 .map_io = pxa_map_io,
362 .nr_irqs = ESERIES_NR_IRQS,
363 .init_irq = pxa25x_init_irq,
364 .fixup = eseries_fixup,
365 .init_machine = e400_init,
370 #ifdef CONFIG_MACH_E740
371 /* ------------------------ e740 video support --------------------------- */
373 static struct w100_gen_regs e740_lcd_regs = {
374 .lcd_format = 0x00008023,
375 .lcdd_cntl1 = 0x0f000000,
376 .lcdd_cntl2 = 0x0003ffff,
377 .genlcd_cntl1 = 0x00ffff03,
378 .genlcd_cntl2 = 0x003c0f03,
379 .genlcd_cntl3 = 0x000143aa,
382 static struct w100_mode e740_lcd_mode = {
389 .crtc_ss = 0x80140013,
390 .crtc_ls = 0x81150110,
391 .crtc_gs = 0x80050005,
392 .crtc_vpos_gs = 0x000a0009,
393 .crtc_rev = 0x0040010a,
394 .crtc_dclk = 0xa906000a,
395 .crtc_gclk = 0x80050108,
396 .crtc_goe = 0x80050108,
399 .pixclk_divider_rotated = 4,
400 .pixclk_src = CLK_SRC_XTAL,
402 .sysclk_src = CLK_SRC_PLL,
403 .crtc_ps1_active = 0x41060010,
406 static struct w100_gpio_regs e740_w100_gpio_info = {
407 .init_data1 = 0x21002103,
408 .gpio_dir1 = 0xffffdeff,
409 .gpio_oe1 = 0x03c00643,
410 .init_data2 = 0x003f003f,
411 .gpio_dir2 = 0xffffffff,
412 .gpio_oe2 = 0x000000ff,
415 static struct w100fb_mach_info e740_fb_info = {
416 .modelist = &e740_lcd_mode,
418 .regs = &e740_lcd_regs,
419 .gpio = &e740_w100_gpio_info,
420 .xtal_freq = 14318000,
424 static struct resource e740_fb_resources[] = {
428 .flags = IORESOURCE_MEM,
432 static struct platform_device e740_fb_device = {
436 .platform_data = &e740_fb_info,
438 .num_resources = ARRAY_SIZE(e740_fb_resources),
439 .resource = e740_fb_resources,
442 /* --------------------------- MFP Pin config -------------------------- */
444 static unsigned long e740_pin_config[] __initdata = {
446 GPIO15_nCS_1, /* CS1 - Flash */
447 GPIO79_nCS_3, /* CS3 - IMAGEON */
448 GPIO80_nCS_4, /* CS4 - TMIO */
458 /* TMIO controller */
459 GPIO19_GPIO, /* t7l66xb #PCLR */
460 GPIO45_GPIO, /* t7l66xb #SUSPEND (NOT BTUART!) */
467 GPIO38_GPIO | MFP_LPM_DRIVE_HIGH,
471 GPIO29_AC97_SDATA_IN_0,
472 GPIO30_AC97_SDATA_OUT,
475 /* Audio power control */
476 GPIO16_GPIO, /* AC97 codec AVDD2 supply (analogue power) */
477 GPIO40_GPIO, /* Mic amp power */
478 GPIO41_GPIO, /* Headphone amp power */
481 GPIO8_GPIO, /* CD0 */
482 GPIO44_GPIO, /* CD1 */
483 GPIO11_GPIO, /* IRQ0 */
484 GPIO6_GPIO, /* IRQ1 */
485 GPIO27_GPIO, /* RST0 */
486 GPIO24_GPIO, /* RST1 */
487 GPIO20_GPIO, /* PWR0 */
488 GPIO23_GPIO, /* PWR1 */
501 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
504 /* -------------------- e740 t7l66xb parameters -------------------- */
506 static struct t7l66xb_platform_data e740_t7l66xb_info = {
507 .irq_base = IRQ_BOARD_START,
508 .enable = &eseries_tmio_enable,
509 .suspend = &eseries_tmio_suspend,
510 .resume = &eseries_tmio_resume,
513 static struct platform_device e740_t7l66xb_device = {
517 .platform_data = &e740_t7l66xb_info,
520 .resource = eseries_tmio_resources,
523 /* ----------------------------------------------------------------------- */
525 static struct platform_device *e740_devices[] __initdata = {
527 &e740_t7l66xb_device,
530 static void __init e740_init(void)
532 pxa2xx_mfp_config(ARRAY_AND_SIZE(e740_pin_config));
533 pxa_set_ffuart_info(NULL);
534 pxa_set_btuart_info(NULL);
535 pxa_set_stuart_info(NULL);
536 eseries_register_clks();
537 clk_add_alias("CLK_CK48M", e740_t7l66xb_device.name,
538 "UDCCLK", &pxa25x_device_udc.dev),
539 eseries_get_tmio_gpios();
540 platform_add_devices(ARRAY_AND_SIZE(e740_devices));
541 pxa_set_udc_info(&e7xx_udc_mach_info);
542 pxa_set_ac97_info(NULL);
543 pxa_set_ficp_info(&e7xx_ficp_platform_data);
546 MACHINE_START(E740, "Toshiba e740")
547 /* Maintainer: Ian Molton (spyro@f2s.com) */
548 .phys_io = 0x40000000,
549 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
550 .boot_params = 0xa0000100,
551 .map_io = pxa_map_io,
552 .nr_irqs = ESERIES_NR_IRQS,
553 .init_irq = pxa25x_init_irq,
554 .fixup = eseries_fixup,
555 .init_machine = e740_init,
560 #ifdef CONFIG_MACH_E750
561 /* ---------------------- E750 LCD definitions -------------------- */
563 static struct w100_gen_regs e750_lcd_regs = {
564 .lcd_format = 0x00008003,
565 .lcdd_cntl1 = 0x00000000,
566 .lcdd_cntl2 = 0x0003ffff,
567 .genlcd_cntl1 = 0x00fff003,
568 .genlcd_cntl2 = 0x003c0f03,
569 .genlcd_cntl3 = 0x000143aa,
572 static struct w100_mode e750_lcd_mode = {
579 .crtc_ss = 0x80150014,
580 .crtc_ls = 0x8014000d,
581 .crtc_gs = 0xc1000005,
582 .crtc_vpos_gs = 0x00020147,
583 .crtc_rev = 0x0040010a,
584 .crtc_dclk = 0xa1700030,
585 .crtc_gclk = 0x80cc0015,
586 .crtc_goe = 0x80cc0015,
587 .crtc_ps1_active = 0x61060017,
590 .pixclk_divider_rotated = 4,
591 .pixclk_src = CLK_SRC_XTAL,
593 .sysclk_src = CLK_SRC_PLL,
596 static struct w100_gpio_regs e750_w100_gpio_info = {
597 .init_data1 = 0x01192f1b,
598 .gpio_dir1 = 0xd5ffdeff,
599 .gpio_oe1 = 0x000020bf,
600 .init_data2 = 0x010f010f,
601 .gpio_dir2 = 0xffffffff,
602 .gpio_oe2 = 0x000001cf,
605 static struct w100fb_mach_info e750_fb_info = {
606 .modelist = &e750_lcd_mode,
608 .regs = &e750_lcd_regs,
609 .gpio = &e750_w100_gpio_info,
610 .xtal_freq = 14318000,
614 static struct resource e750_fb_resources[] = {
618 .flags = IORESOURCE_MEM,
622 static struct platform_device e750_fb_device = {
626 .platform_data = &e750_fb_info,
628 .num_resources = ARRAY_SIZE(e750_fb_resources),
629 .resource = e750_fb_resources,
632 /* -------------------- e750 MFP parameters -------------------- */
634 static unsigned long e750_pin_config[] __initdata = {
636 GPIO15_nCS_1, /* CS1 - Flash */
637 GPIO79_nCS_3, /* CS3 - IMAGEON */
638 GPIO80_nCS_4, /* CS4 - TMIO */
648 /* TMIO controller */
649 GPIO19_GPIO, /* t7l66xb #PCLR */
650 GPIO45_GPIO, /* t7l66xb #SUSPEND (NOT BTUART!) */
657 GPIO38_GPIO | MFP_LPM_DRIVE_HIGH,
661 GPIO29_AC97_SDATA_IN_0,
662 GPIO30_AC97_SDATA_OUT,
665 /* Audio power control */
666 GPIO4_GPIO, /* Headphone amp power */
667 GPIO7_GPIO, /* Speaker amp power */
668 GPIO37_GPIO, /* Headphone detect */
671 GPIO8_GPIO, /* CD0 */
672 GPIO44_GPIO, /* CD1 */
673 GPIO11_GPIO, /* IRQ0 */
674 GPIO6_GPIO, /* IRQ1 */
675 GPIO27_GPIO, /* RST0 */
676 GPIO24_GPIO, /* RST1 */
677 GPIO20_GPIO, /* PWR0 */
678 GPIO23_GPIO, /* PWR1 */
691 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
694 /* ----------------- e750 tc6393xb parameters ------------------ */
696 static struct tc6393xb_platform_data e750_tc6393xb_info = {
697 .irq_base = IRQ_BOARD_START,
698 .scr_pll2cr = 0x0cc1,
701 .suspend = &eseries_tmio_suspend,
702 .resume = &eseries_tmio_resume,
703 .enable = &eseries_tmio_enable,
704 .disable = &eseries_tmio_disable,
707 static struct platform_device e750_tc6393xb_device = {
711 .platform_data = &e750_tc6393xb_info,
714 .resource = eseries_tmio_resources,
717 /* ------------------------------------------------------------- */
719 static struct platform_device *e750_devices[] __initdata = {
721 &e750_tc6393xb_device,
724 static void __init e750_init(void)
726 pxa2xx_mfp_config(ARRAY_AND_SIZE(e750_pin_config));
727 pxa_set_ffuart_info(NULL);
728 pxa_set_btuart_info(NULL);
729 pxa_set_stuart_info(NULL);
730 clk_add_alias("CLK_CK3P6MI", e750_tc6393xb_device.name,
732 eseries_get_tmio_gpios();
733 platform_add_devices(ARRAY_AND_SIZE(e750_devices));
734 pxa_set_udc_info(&e7xx_udc_mach_info);
735 pxa_set_ac97_info(NULL);
736 pxa_set_ficp_info(&e7xx_ficp_platform_data);
739 MACHINE_START(E750, "Toshiba e750")
740 /* Maintainer: Ian Molton (spyro@f2s.com) */
741 .phys_io = 0x40000000,
742 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
743 .boot_params = 0xa0000100,
744 .map_io = pxa_map_io,
745 .nr_irqs = ESERIES_NR_IRQS,
746 .init_irq = pxa25x_init_irq,
747 .fixup = eseries_fixup,
748 .init_machine = e750_init,
753 #ifdef CONFIG_MACH_E800
754 /* ------------------------ e800 LCD definitions ------------------------- */
756 static unsigned long e800_pin_config[] __initdata = {
759 GPIO29_AC97_SDATA_IN_0,
760 GPIO30_AC97_SDATA_OUT,
764 static struct w100_gen_regs e800_lcd_regs = {
765 .lcd_format = 0x00008003,
766 .lcdd_cntl1 = 0x02a00000,
767 .lcdd_cntl2 = 0x0003ffff,
768 .genlcd_cntl1 = 0x000ff2a3,
769 .genlcd_cntl2 = 0x000002a3,
770 .genlcd_cntl3 = 0x000102aa,
773 static struct w100_mode e800_lcd_mode[2] = {
781 .crtc_ss = 0x80350034,
782 .crtc_ls = 0x802b0026,
783 .crtc_gs = 0x80160016,
784 .crtc_vpos_gs = 0x00020003,
785 .crtc_rev = 0x0040001d,
786 .crtc_dclk = 0xe0000000,
787 .crtc_gclk = 0x82a50049,
788 .crtc_goe = 0x80ee001c,
789 .crtc_ps1_active = 0x00000000,
792 .pixclk_divider_rotated = 6,
793 .pixclk_src = CLK_SRC_PLL,
795 .sysclk_src = CLK_SRC_PLL,
804 .crtc_ss = 0xd010000f,
805 .crtc_ls = 0x80070003,
806 .crtc_gs = 0x80000000,
807 .crtc_vpos_gs = 0x01460147,
808 .crtc_rev = 0x00400003,
809 .crtc_dclk = 0xa1700030,
810 .crtc_gclk = 0x814b0008,
811 .crtc_goe = 0x80cc0015,
812 .crtc_ps1_active = 0x00000000,
814 .pixclk_divider = 6, /* Wince uses 14 which gives a */
815 .pixclk_divider_rotated = 6, /* 7MHz Pclk. We use a 14MHz one */
816 .pixclk_src = CLK_SRC_PLL,
818 .sysclk_src = CLK_SRC_PLL,
823 static struct w100_gpio_regs e800_w100_gpio_info = {
824 .init_data1 = 0xc13fc019,
825 .gpio_dir1 = 0x3e40df7f,
826 .gpio_oe1 = 0x003c3000,
827 .init_data2 = 0x00000000,
828 .gpio_dir2 = 0x00000000,
829 .gpio_oe2 = 0x00000000,
832 static struct w100_mem_info e800_w100_mem_info = {
833 .ext_cntl = 0x09640011,
834 .sdram_mode_reg = 0x00600021,
835 .ext_timing_cntl = 0x10001545,
836 .io_cntl = 0x7ddd7333,
840 static void e800_tg_change(struct w100fb_par *par)
844 tmp = w100fb_gpio_read(W100_GPIO_PORT_A);
845 if (par->mode->xres == 480)
849 w100fb_gpio_write(W100_GPIO_PORT_A, tmp);
852 static struct w100_tg_info e800_tg_info = {
853 .change = e800_tg_change,
856 static struct w100fb_mach_info e800_fb_info = {
857 .modelist = e800_lcd_mode,
859 .regs = &e800_lcd_regs,
860 .gpio = &e800_w100_gpio_info,
861 .mem = &e800_w100_mem_info,
863 .xtal_freq = 16000000,
866 static struct resource e800_fb_resources[] = {
870 .flags = IORESOURCE_MEM,
874 static struct platform_device e800_fb_device = {
878 .platform_data = &e800_fb_info,
880 .num_resources = ARRAY_SIZE(e800_fb_resources),
881 .resource = e800_fb_resources,
884 /* --------------------------- UDC definitions --------------------------- */
886 static struct pxa2xx_udc_mach_info e800_udc_mach_info = {
887 .gpio_vbus = GPIO_E800_USB_DISC,
888 .gpio_pullup = GPIO_E800_USB_PULLUP,
889 .gpio_pullup_inverted = 1
892 /* ----------------- e800 tc6393xb parameters ------------------ */
894 static struct tc6393xb_platform_data e800_tc6393xb_info = {
895 .irq_base = IRQ_BOARD_START,
896 .scr_pll2cr = 0x0cc1,
899 .suspend = &eseries_tmio_suspend,
900 .resume = &eseries_tmio_resume,
901 .enable = &eseries_tmio_enable,
902 .disable = &eseries_tmio_disable,
905 static struct platform_device e800_tc6393xb_device = {
909 .platform_data = &e800_tc6393xb_info,
912 .resource = eseries_tmio_resources,
915 /* ----------------------------------------------------------------------- */
917 static struct platform_device *e800_devices[] __initdata = {
919 &e800_tc6393xb_device,
922 static void __init e800_init(void)
924 pxa2xx_mfp_config(ARRAY_AND_SIZE(e800_pin_config));
925 pxa_set_ffuart_info(NULL);
926 pxa_set_btuart_info(NULL);
927 pxa_set_stuart_info(NULL);
928 clk_add_alias("CLK_CK3P6MI", e800_tc6393xb_device.name,
930 eseries_get_tmio_gpios();
931 platform_add_devices(ARRAY_AND_SIZE(e800_devices));
932 pxa_set_udc_info(&e800_udc_mach_info);
933 pxa_set_ac97_info(NULL);
936 MACHINE_START(E800, "Toshiba e800")
937 /* Maintainer: Ian Molton (spyro@f2s.com) */
938 .phys_io = 0x40000000,
939 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
940 .boot_params = 0xa0000100,
941 .map_io = pxa_map_io,
942 .nr_irqs = ESERIES_NR_IRQS,
943 .init_irq = pxa25x_init_irq,
944 .fixup = eseries_fixup,
945 .init_machine = e800_init,