2 * mackerel board support
4 * Copyright (C) 2010 Renesas Solutions Corp.
5 * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
8 * Copyright (C) 2010 Magnus Damm
9 * Copyright (C) 2008 Yoshihiro Shimoda
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; version 2 of the License.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 #include <linux/kernel.h>
25 #include <linux/init.h>
26 #include <linux/interrupt.h>
27 #include <linux/irq.h>
28 #include <linux/platform_device.h>
29 #include <linux/gpio.h>
30 #include <linux/input.h>
32 #include <linux/i2c.h>
33 #include <linux/leds.h>
34 #include <linux/mfd/sh_mobile_sdhi.h>
35 #include <linux/mfd/tmio.h>
36 #include <linux/mmc/host.h>
37 #include <linux/mmc/sh_mmcif.h>
38 #include <linux/mtd/mtd.h>
39 #include <linux/mtd/partitions.h>
40 #include <linux/mtd/physmap.h>
41 #include <linux/smsc911x.h>
42 #include <linux/sh_intc.h>
43 #include <linux/tca6416_keypad.h>
44 #include <linux/usb/r8a66597.h>
46 #include <video/sh_mobile_lcdc.h>
48 #include <sound/sh_fsi.h>
50 #include <mach/common.h>
51 #include <mach/sh7372.h>
53 #include <asm/mach/arch.h>
54 #include <asm/mach/time.h>
55 #include <asm/mach/map.h>
56 #include <asm/mach-types.h>
59 * Address Interface BusWidth note
60 * ------------------------------------------------------------------
61 * 0x0000_0000 NOR Flash ROM (MCP) 16bit SW7 : bit1 = ON
62 * 0x0800_0000 user area -
63 * 0x1000_0000 NOR Flash ROM (MCP) 16bit SW7 : bit1 = OFF
64 * 0x1400_0000 Ether (LAN9220) 16bit
65 * 0x1600_0000 user area - cannot use with NAND
66 * 0x1800_0000 user area -
68 * 0x4000_0000 LPDDR2-SDRAM (POP) 32bit
74 * SW4 | Boot Area| Master | Remarks
75 * 1 | 2 | 3 | 4 | 5 | 6 | 8 | | Processor|
76 * ----+-----+-----+-----+-----+-----+-----+----------+----------+--------------
77 * ON | ON | OFF | ON | ON | OFF | OFF | External | System | External ROM
78 * ON | ON | ON | ON | ON | OFF | OFF | External | System | ROM Debug
79 * ON | ON | X | ON | OFF | OFF | OFF | Built-in | System | ROM Debug
80 * X | OFF | X | X | X | X | OFF | Built-in | System | MaskROM
81 * OFF | X | X | X | X | X | OFF | Built-in | System | MaskROM
82 * X | X | X | OFF | X | X | OFF | Built-in | System | MaskROM
83 * OFF | ON | OFF | X | X | OFF | ON | External | System | Standalone
84 * ON | OFF | OFF | X | X | OFF | ON | External | Realtime | Standalone
90 * SW1 | SW2 | SW7 | NOR Flash ROM
91 * bit1 | bit1 bit2 | bit1 | Memory allocation
92 * ------+------------+------+------------------
93 * OFF | ON OFF | ON | Area 0
94 * OFF | ON OFF | OFF | Area 4
101 * -----------------------
109 * SW1 | SW2 | SW7 | NAND Flash ROM
110 * bit1 | bit1 bit2 | bit2 | Memory allocation
111 * ------+------------+------+------------------
112 * OFF | ON OFF | ON | FCE 0
113 * OFF | ON OFF | OFF | FCE 1
117 * External interrupt pin settings
119 * IRQX | pin setting | device | level
120 * ------+--------------------+--------------------+-------
121 * IRQ0 | ICR1A.IRQ0SA=0010 | SDHI2 card detect | Low
122 * IRQ6 | ICR1A.IRQ6SA=0011 | Ether(LAN9220) | High
123 * IRQ7 | ICR1A.IRQ7SA=0010 | LCD Tuch Panel | Low
124 * IRQ8 | ICR2A.IRQ8SA=0010 | MMC/SD card detect | Low
125 * IRQ9 | ICR2A.IRQ9SA=0010 | KEY(TCA6408) | Low
126 * IRQ21 | ICR4A.IRQ21SA=0011 | Sensor(ADXL345) | High
127 * IRQ22 | ICR4A.IRQ22SA=0011 | Sensor(AK8975) | High
133 * USB0 : CN22 : Function
134 * USB1 : CN31 : Function/Host *1
137 * ----------+---------------+-------------
138 * 1-2 short | VBUS 5V | Host
139 * open | external VBUS | Function
142 * CN31 is used as Host in Linux.
156 * Power voltage : 1.8v or 3.3v
157 * J22 : select power voltage *1
162 * Please change J22 depends the card to be used.
163 * MMC's OCR field set to support either voltage for the card inserted.
166 * | bit1 | bit2 | bit3 | bit4
167 * -------------+------+------+------+-------
168 * MMC0 OFF | OFF | ON | ON | X
169 * MMC1 ON | OFF | ON | X | ON
170 * SDHI1 OFF | ON | X | OFF | ON
187 * current gpio frame work doesn't have
188 * the method to control only pull up/down/free.
189 * this function should be replaced by correct gpio function
191 static void __init
gpio_no_direction(u32 addr
)
193 __raw_writeb(0x00, addr
);
197 static struct mtd_partition nor_flash_partitions
[] = {
200 .offset
= 0x00000000,
202 .mask_flags
= MTD_WRITEABLE
,
206 .offset
= MTDPART_OFS_APPEND
,
208 .mask_flags
= MTD_WRITEABLE
,
212 .offset
= MTDPART_OFS_APPEND
,
213 .size
= 8 * 1024 * 1024,
214 .mask_flags
= MTD_WRITEABLE
,
218 .offset
= MTDPART_OFS_APPEND
,
219 .size
= 8 * 1024 * 1024,
223 .offset
= MTDPART_OFS_APPEND
,
224 .size
= MTDPART_SIZ_FULL
,
228 static struct physmap_flash_data nor_flash_data
= {
230 .parts
= nor_flash_partitions
,
231 .nr_parts
= ARRAY_SIZE(nor_flash_partitions
),
234 static struct resource nor_flash_resources
[] = {
237 .end
= 0x08000000 - 1,
238 .flags
= IORESOURCE_MEM
,
242 static struct platform_device nor_flash_device
= {
243 .name
= "physmap-flash",
245 .platform_data
= &nor_flash_data
,
247 .num_resources
= ARRAY_SIZE(nor_flash_resources
),
248 .resource
= nor_flash_resources
,
252 static struct resource smc911x_resources
[] = {
255 .end
= 0x16000000 - 1,
256 .flags
= IORESOURCE_MEM
,
258 .start
= evt2irq(0x02c0) /* IRQ6A */,
259 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_LOWLEVEL
,
263 static struct smsc911x_platform_config smsc911x_info
= {
264 .flags
= SMSC911X_USE_16BIT
| SMSC911X_SAVE_MAC_ADDRESS
,
265 .irq_polarity
= SMSC911X_IRQ_POLARITY_ACTIVE_LOW
,
266 .irq_type
= SMSC911X_IRQ_TYPE_PUSH_PULL
,
269 static struct platform_device smc911x_device
= {
272 .num_resources
= ARRAY_SIZE(smc911x_resources
),
273 .resource
= smc911x_resources
,
275 .platform_data
= &smsc911x_info
,
280 static struct fb_videomode mackerel_lcdc_modes
[] = {
282 .name
= "WVGA Panel",
295 static struct sh_mobile_lcdc_info lcdc_info
= {
296 .clock_source
= LCDC_CLK_BUS
,
298 .chan
= LCDC_CHAN_MAINLCD
,
300 .lcd_cfg
= mackerel_lcdc_modes
,
301 .num_cfg
= ARRAY_SIZE(mackerel_lcdc_modes
),
302 .interface_type
= RGB24
,
305 .lcd_size_cfg
.width
= 152,
306 .lcd_size_cfg
.height
= 91,
310 static struct resource lcdc_resources
[] = {
315 .flags
= IORESOURCE_MEM
,
318 .start
= intcs_evt2irq(0x580),
319 .flags
= IORESOURCE_IRQ
,
323 static struct platform_device lcdc_device
= {
324 .name
= "sh_mobile_lcdc_fb",
325 .num_resources
= ARRAY_SIZE(lcdc_resources
),
326 .resource
= lcdc_resources
,
328 .platform_data
= &lcdc_info
,
329 .coherent_dma_mask
= ~0,
334 static void usb1_host_port_power(int port
, int power
)
336 if (!power
) /* only power-on is supported for now */
339 /* set VBOUT/PWEN and EXTLP1 in DVSTCTR */
340 __raw_writew(__raw_readw(0xE68B0008) | 0x600, 0xE68B0008);
343 static struct r8a66597_platdata usb1_host_data
= {
345 .port_power
= usb1_host_port_power
,
348 static struct resource usb1_host_resources
[] = {
352 .end
= 0xE68B00E6 - 1,
353 .flags
= IORESOURCE_MEM
,
356 .start
= evt2irq(0x1ce0) /* USB1_USB1I0 */,
357 .flags
= IORESOURCE_IRQ
,
361 static struct platform_device usb1_host_device
= {
362 .name
= "r8a66597_hcd",
365 .dma_mask
= NULL
, /* not use dma */
366 .coherent_dma_mask
= 0xffffffff,
367 .platform_data
= &usb1_host_data
,
369 .num_resources
= ARRAY_SIZE(usb1_host_resources
),
370 .resource
= usb1_host_resources
,
374 static struct gpio_led mackerel_leds
[] = {
378 .default_state
= LEDS_GPIO_DEFSTATE_ON
,
383 .default_state
= LEDS_GPIO_DEFSTATE_ON
,
388 .default_state
= LEDS_GPIO_DEFSTATE_ON
,
392 .gpio
= GPIO_PORT159
,
393 .default_state
= LEDS_GPIO_DEFSTATE_ON
,
397 static struct gpio_led_platform_data mackerel_leds_pdata
= {
398 .leds
= mackerel_leds
,
399 .num_leds
= ARRAY_SIZE(mackerel_leds
),
402 static struct platform_device leds_device
= {
406 .platform_data
= &mackerel_leds_pdata
,
411 #define IRQ_FSI evt2irq(0x1840)
412 static struct sh_fsi_platform_info fsi_info
= {
413 .porta_flags
= SH_FSI_BRS_INV
|
414 SH_FSI_OUT_SLAVE_MODE
|
415 SH_FSI_IN_SLAVE_MODE
|
420 static struct resource fsi_resources
[] = {
424 .end
= 0xFE3C0400 - 1,
425 .flags
= IORESOURCE_MEM
,
429 .flags
= IORESOURCE_IRQ
,
433 static struct platform_device fsi_device
= {
436 .num_resources
= ARRAY_SIZE(fsi_resources
),
437 .resource
= fsi_resources
,
439 .platform_data
= &fsi_info
,
443 static struct platform_device fsi_ak4643_device
= {
444 .name
= "sh_fsi2_a_ak4643",
448 * The card detect pin of the top SD/MMC slot (CN7) is active low and is
449 * connected to GPIO A22 of SH7372 (GPIO_PORT41).
451 static int slot_cn7_get_cd(struct platform_device
*pdev
)
453 if (gpio_is_valid(GPIO_PORT41
))
454 return !gpio_get_value(GPIO_PORT41
);
460 static struct sh_mobile_sdhi_info sdhi0_info
= {
461 .dma_slave_tx
= SHDMA_SLAVE_SDHI0_TX
,
462 .dma_slave_rx
= SHDMA_SLAVE_SDHI0_RX
,
463 .tmio_caps
= MMC_CAP_SD_HIGHSPEED
,
466 static struct resource sdhi0_resources
[] = {
471 .flags
= IORESOURCE_MEM
,
474 .start
= evt2irq(0x0e00) /* SDHI0 */,
475 .flags
= IORESOURCE_IRQ
,
479 static struct platform_device sdhi0_device
= {
480 .name
= "sh_mobile_sdhi",
481 .num_resources
= ARRAY_SIZE(sdhi0_resources
),
482 .resource
= sdhi0_resources
,
485 .platform_data
= &sdhi0_info
,
489 #if !defined(CONFIG_MMC_SH_MMCIF)
491 static struct sh_mobile_sdhi_info sdhi1_info
= {
492 .dma_slave_tx
= SHDMA_SLAVE_SDHI1_TX
,
493 .dma_slave_rx
= SHDMA_SLAVE_SDHI1_RX
,
494 .tmio_ocr_mask
= MMC_VDD_165_195
,
495 .tmio_flags
= TMIO_MMC_WRPROTECT_DISABLE
,
496 .tmio_caps
= MMC_CAP_SD_HIGHSPEED
|
498 .get_cd
= slot_cn7_get_cd
,
501 static struct resource sdhi1_resources
[] = {
506 .flags
= IORESOURCE_MEM
,
509 .start
= evt2irq(0x0e80),
510 .flags
= IORESOURCE_IRQ
,
514 static struct platform_device sdhi1_device
= {
515 .name
= "sh_mobile_sdhi",
516 .num_resources
= ARRAY_SIZE(sdhi1_resources
),
517 .resource
= sdhi1_resources
,
520 .platform_data
= &sdhi1_info
,
526 static struct sh_mobile_sdhi_info sdhi2_info
= {
527 .dma_slave_tx
= SHDMA_SLAVE_SDHI2_TX
,
528 .dma_slave_rx
= SHDMA_SLAVE_SDHI2_RX
,
529 .tmio_flags
= TMIO_MMC_WRPROTECT_DISABLE
,
530 .tmio_caps
= MMC_CAP_SD_HIGHSPEED
|
534 static struct resource sdhi2_resources
[] = {
539 .flags
= IORESOURCE_MEM
,
542 .start
= evt2irq(0x1200),
543 .flags
= IORESOURCE_IRQ
,
547 static struct platform_device sdhi2_device
= {
548 .name
= "sh_mobile_sdhi",
549 .num_resources
= ARRAY_SIZE(sdhi2_resources
),
550 .resource
= sdhi2_resources
,
553 .platform_data
= &sdhi2_info
,
558 static struct resource sh_mmcif_resources
[] = {
563 .flags
= IORESOURCE_MEM
,
567 .start
= evt2irq(0x1ac0),
568 .flags
= IORESOURCE_IRQ
,
572 .start
= evt2irq(0x1ae0),
573 .flags
= IORESOURCE_IRQ
,
577 static struct sh_mmcif_plat_data sh_mmcif_plat
= {
579 .ocr
= MMC_VDD_165_195
| MMC_VDD_32_33
| MMC_VDD_33_34
,
580 .caps
= MMC_CAP_4_BIT_DATA
|
583 .get_cd
= slot_cn7_get_cd
,
586 static struct platform_device sh_mmcif_device
= {
591 .coherent_dma_mask
= 0xffffffff,
592 .platform_data
= &sh_mmcif_plat
,
594 .num_resources
= ARRAY_SIZE(sh_mmcif_resources
),
595 .resource
= sh_mmcif_resources
,
598 static struct platform_device
*mackerel_devices
[] __initdata
= {
607 #if !defined(CONFIG_MMC_SH_MMCIF)
614 /* Keypad Initialization */
615 #define KEYPAD_BUTTON(ev_type, ev_code, act_low) \
619 .active_low = act_low, \
622 #define KEYPAD_BUTTON_LOW(event_code) KEYPAD_BUTTON(EV_KEY, event_code, 1)
624 static struct tca6416_button mackerel_gpio_keys
[] = {
625 KEYPAD_BUTTON_LOW(KEY_HOME
),
626 KEYPAD_BUTTON_LOW(KEY_MENU
),
627 KEYPAD_BUTTON_LOW(KEY_BACK
),
628 KEYPAD_BUTTON_LOW(KEY_POWER
),
631 static struct tca6416_keys_platform_data mackerel_tca6416_keys_info
= {
632 .buttons
= mackerel_gpio_keys
,
633 .nbuttons
= ARRAY_SIZE(mackerel_gpio_keys
),
640 #define IRQ9 evt2irq(0x0320)
642 static struct i2c_board_info i2c0_devices
[] = {
644 I2C_BOARD_INFO("ak4643", 0x13),
648 I2C_BOARD_INFO("tca6408-keys", 0x20),
649 .platform_data
= &mackerel_tca6416_keys_info
,
654 #define IRQ21 evt2irq(0x32a0)
656 static struct i2c_board_info i2c1_devices
[] = {
659 I2C_BOARD_INFO("adxl34x", 0x53),
664 static struct map_desc mackerel_io_desc
[] __initdata
= {
665 /* create a 1:1 entity map for 0xe6xxxxxx
666 * used by CPGA, INTC and PFC.
669 .virtual = 0xe6000000,
670 .pfn
= __phys_to_pfn(0xe6000000),
672 .type
= MT_DEVICE_NONSHARED
676 static void __init
mackerel_map_io(void)
678 iotable_init(mackerel_io_desc
, ARRAY_SIZE(mackerel_io_desc
));
680 /* setup early devices and console here as well */
681 sh7372_add_early_devices();
682 shmobile_setup_console();
685 #define GPIO_PORT9CR 0xE6051009
686 #define GPIO_PORT10CR 0xE605100A
687 static void __init
mackerel_init(void)
689 sh7372_pinmux_init();
692 gpio_request(GPIO_FN_SCIFA0_TXD
, NULL
);
693 gpio_request(GPIO_FN_SCIFA0_RXD
, NULL
);
695 /* enable SMSC911X */
696 gpio_request(GPIO_FN_CS5A
, NULL
);
697 gpio_request(GPIO_FN_IRQ6_39
, NULL
);
700 gpio_request(GPIO_FN_LCDD23
, NULL
);
701 gpio_request(GPIO_FN_LCDD22
, NULL
);
702 gpio_request(GPIO_FN_LCDD21
, NULL
);
703 gpio_request(GPIO_FN_LCDD20
, NULL
);
704 gpio_request(GPIO_FN_LCDD19
, NULL
);
705 gpio_request(GPIO_FN_LCDD18
, NULL
);
706 gpio_request(GPIO_FN_LCDD17
, NULL
);
707 gpio_request(GPIO_FN_LCDD16
, NULL
);
708 gpio_request(GPIO_FN_LCDD15
, NULL
);
709 gpio_request(GPIO_FN_LCDD14
, NULL
);
710 gpio_request(GPIO_FN_LCDD13
, NULL
);
711 gpio_request(GPIO_FN_LCDD12
, NULL
);
712 gpio_request(GPIO_FN_LCDD11
, NULL
);
713 gpio_request(GPIO_FN_LCDD10
, NULL
);
714 gpio_request(GPIO_FN_LCDD9
, NULL
);
715 gpio_request(GPIO_FN_LCDD8
, NULL
);
716 gpio_request(GPIO_FN_LCDD7
, NULL
);
717 gpio_request(GPIO_FN_LCDD6
, NULL
);
718 gpio_request(GPIO_FN_LCDD5
, NULL
);
719 gpio_request(GPIO_FN_LCDD4
, NULL
);
720 gpio_request(GPIO_FN_LCDD3
, NULL
);
721 gpio_request(GPIO_FN_LCDD2
, NULL
);
722 gpio_request(GPIO_FN_LCDD1
, NULL
);
723 gpio_request(GPIO_FN_LCDD0
, NULL
);
724 gpio_request(GPIO_FN_LCDDISP
, NULL
);
725 gpio_request(GPIO_FN_LCDDCK
, NULL
);
727 gpio_request(GPIO_PORT31
, NULL
); /* backlight */
728 gpio_direction_output(GPIO_PORT31
, 1);
730 gpio_request(GPIO_PORT151
, NULL
); /* LCDDON */
731 gpio_direction_output(GPIO_PORT151
, 1);
734 gpio_request(GPIO_FN_VBUS0_1
, NULL
);
735 gpio_request(GPIO_FN_IDIN_1_18
, NULL
);
736 gpio_request(GPIO_FN_PWEN_1_115
, NULL
);
737 gpio_request(GPIO_FN_OVCN_1_114
, NULL
);
738 gpio_request(GPIO_FN_EXTLP_1
, NULL
);
739 gpio_request(GPIO_FN_OVCN2_1
, NULL
);
742 __raw_writew(0x8a0a, 0xE6058130); /* USBCR2 */
744 /* enable FSI2 port A (ak4643) */
745 gpio_request(GPIO_FN_FSIAIBT
, NULL
);
746 gpio_request(GPIO_FN_FSIAILR
, NULL
);
747 gpio_request(GPIO_FN_FSIAISLD
, NULL
);
748 gpio_request(GPIO_FN_FSIAOSLD
, NULL
);
749 gpio_request(GPIO_PORT161
, NULL
);
750 gpio_direction_output(GPIO_PORT161
, 0); /* slave */
752 gpio_request(GPIO_PORT9
, NULL
);
753 gpio_request(GPIO_PORT10
, NULL
);
754 gpio_no_direction(GPIO_PORT9CR
); /* FSIAOBT needs no direction */
755 gpio_no_direction(GPIO_PORT10CR
); /* FSIAOLR needs no direction */
757 intc_set_priority(IRQ_FSI
, 3); /* irq priority FSI(3) > SMSC911X(2) */
760 gpio_request(GPIO_FN_IRQ9_42
, NULL
);
761 set_irq_type(IRQ9
, IRQ_TYPE_LEVEL_HIGH
);
763 /* enable Accelerometer */
764 gpio_request(GPIO_FN_IRQ21
, NULL
);
765 set_irq_type(IRQ21
, IRQ_TYPE_LEVEL_HIGH
);
768 gpio_request(GPIO_FN_SDHICD0
, NULL
);
769 gpio_request(GPIO_FN_SDHIWP0
, NULL
);
770 gpio_request(GPIO_FN_SDHICMD0
, NULL
);
771 gpio_request(GPIO_FN_SDHICLK0
, NULL
);
772 gpio_request(GPIO_FN_SDHID0_3
, NULL
);
773 gpio_request(GPIO_FN_SDHID0_2
, NULL
);
774 gpio_request(GPIO_FN_SDHID0_1
, NULL
);
775 gpio_request(GPIO_FN_SDHID0_0
, NULL
);
777 #if !defined(CONFIG_MMC_SH_MMCIF)
779 gpio_request(GPIO_FN_SDHICMD1
, NULL
);
780 gpio_request(GPIO_FN_SDHICLK1
, NULL
);
781 gpio_request(GPIO_FN_SDHID1_3
, NULL
);
782 gpio_request(GPIO_FN_SDHID1_2
, NULL
);
783 gpio_request(GPIO_FN_SDHID1_1
, NULL
);
784 gpio_request(GPIO_FN_SDHID1_0
, NULL
);
786 /* card detect pin for MMC slot (CN7) */
787 gpio_request(GPIO_PORT41
, NULL
);
788 gpio_direction_input(GPIO_PORT41
);
791 gpio_request(GPIO_FN_SDHICMD2
, NULL
);
792 gpio_request(GPIO_FN_SDHICLK2
, NULL
);
793 gpio_request(GPIO_FN_SDHID2_3
, NULL
);
794 gpio_request(GPIO_FN_SDHID2_2
, NULL
);
795 gpio_request(GPIO_FN_SDHID2_1
, NULL
);
796 gpio_request(GPIO_FN_SDHID2_0
, NULL
);
799 gpio_request(GPIO_FN_MMCD0_0
, NULL
);
800 gpio_request(GPIO_FN_MMCD0_1
, NULL
);
801 gpio_request(GPIO_FN_MMCD0_2
, NULL
);
802 gpio_request(GPIO_FN_MMCD0_3
, NULL
);
803 gpio_request(GPIO_FN_MMCD0_4
, NULL
);
804 gpio_request(GPIO_FN_MMCD0_5
, NULL
);
805 gpio_request(GPIO_FN_MMCD0_6
, NULL
);
806 gpio_request(GPIO_FN_MMCD0_7
, NULL
);
807 gpio_request(GPIO_FN_MMCCMD0
, NULL
);
808 gpio_request(GPIO_FN_MMCCLK0
, NULL
);
810 /* enable GPS module (GT-720F) */
811 gpio_request(GPIO_FN_SCIFA2_TXD1
, NULL
);
812 gpio_request(GPIO_FN_SCIFA2_RXD1
, NULL
);
814 i2c_register_board_info(0, i2c0_devices
,
815 ARRAY_SIZE(i2c0_devices
));
816 i2c_register_board_info(1, i2c1_devices
,
817 ARRAY_SIZE(i2c1_devices
));
819 sh7372_add_standard_devices();
821 platform_add_devices(mackerel_devices
, ARRAY_SIZE(mackerel_devices
));
824 static void __init
mackerel_timer_init(void)
827 shmobile_timer
.init();
830 static struct sys_timer mackerel_timer
= {
831 .init
= mackerel_timer_init
,
834 MACHINE_START(MACKEREL
, "mackerel")
835 .map_io
= mackerel_map_io
,
836 .init_irq
= sh7372_init_irq
,
837 .init_machine
= mackerel_init
,
838 .timer
= &mackerel_timer
,