diff options
Diffstat (limited to 'arch/arm/mach-shmobile/include/mach')
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/clkdev.h | 7 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/common.h | 23 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/dma.h | 1 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/entry-macro.S | 39 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/gpio.h | 48 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/hardware.h | 7 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/io.h | 9 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/irqs.h | 10 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/memory.h | 7 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/sh7367.h | 332 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/sh7372.h | 434 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/sh7377.h | 360 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/system.h | 14 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/timex.h | 6 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/uncompress.h | 21 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/include/mach/vmalloc.h | 6 | 
16 files changed, 1324 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/clkdev.h b/arch/arm/mach-shmobile/include/mach/clkdev.h new file mode 100644 index 00000000000..36d0163a857 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/clkdev.h @@ -0,0 +1,7 @@ +#ifndef __ASM_MACH_CLKDEV_H +#define __ASM_MACH_CLKDEV_H + +int __clk_get(struct clk *clk); +void __clk_put(struct clk *clk); + +#endif /* __ASM_MACH_CLKDEV_H */ diff --git a/arch/arm/mach-shmobile/include/mach/common.h b/arch/arm/mach-shmobile/include/mach/common.h new file mode 100644 index 00000000000..57903605cc5 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/common.h @@ -0,0 +1,23 @@ +#ifndef __ARCH_MACH_COMMON_H +#define __ARCH_MACH_COMMON_H + +extern struct sys_timer shmobile_timer; +extern void shmobile_setup_console(void); + +extern void sh7367_init_irq(void); +extern void sh7367_add_early_devices(void); +extern void sh7367_add_standard_devices(void); +extern void sh7367_clock_init(void); +extern void sh7367_pinmux_init(void); + +extern void sh7377_init_irq(void); +extern void sh7377_add_early_devices(void); +extern void sh7377_add_standard_devices(void); +extern void sh7377_pinmux_init(void); + +extern void sh7372_init_irq(void); +extern void sh7372_add_early_devices(void); +extern void sh7372_add_standard_devices(void); +extern void sh7372_pinmux_init(void); + +#endif /* __ARCH_MACH_COMMON_H */ diff --git a/arch/arm/mach-shmobile/include/mach/dma.h b/arch/arm/mach-shmobile/include/mach/dma.h new file mode 100644 index 00000000000..40a8c178f10 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/dma.h @@ -0,0 +1 @@ +/* empty */ diff --git a/arch/arm/mach-shmobile/include/mach/entry-macro.S b/arch/arm/mach-shmobile/include/mach/entry-macro.S new file mode 100644 index 00000000000..a285d13c741 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/entry-macro.S @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2008 Renesas Solutions Corp. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA + */ +#include <mach/hardware.h> +#include <mach/irqs.h> + +	.macro  disable_fiq +	.endm + +	.macro  get_irqnr_preamble, base, tmp +	ldr     \base, =INTFLGA +	.endm + +	.macro  arch_ret_to_user, tmp1, tmp2 +	.endm + +	.macro  get_irqnr_and_base, irqnr, irqstat, base, tmp +	ldr     \irqnr, [\base] +	cmp	\irqnr, #0 +	beq	1000f +	/* intevt to irq number */ +	lsr	\irqnr, \irqnr, #0x5 +	subs	\irqnr, \irqnr, #16 + +1000: +	.endm diff --git a/arch/arm/mach-shmobile/include/mach/gpio.h b/arch/arm/mach-shmobile/include/mach/gpio.h new file mode 100644 index 00000000000..5bc6bd444d7 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/gpio.h @@ -0,0 +1,48 @@ +/* + * Generic GPIO API and pinmux table support + * + * Copyright (c) 2008  Magnus Damm + * + * This file is subject to the terms and conditions of the GNU General Public + * License.  See the file "COPYING" in the main directory of this archive + * for more details. + */ +#ifndef __ASM_ARCH_GPIO_H +#define __ASM_ARCH_GPIO_H + +#include <linux/kernel.h> +#include <linux/errno.h> + +#define ARCH_NR_GPIOS 1024 +#include <linux/sh_pfc.h> + +#ifdef CONFIG_GPIOLIB + +static inline int gpio_get_value(unsigned gpio) +{ +	return __gpio_get_value(gpio); +} + +static inline void gpio_set_value(unsigned gpio, int value) +{ +	__gpio_set_value(gpio, value); +} + +static inline int gpio_cansleep(unsigned gpio) +{ +	return __gpio_cansleep(gpio); +} + +static inline int gpio_to_irq(unsigned gpio) +{ +	return -ENOSYS; +} + +static inline int irq_to_gpio(unsigned int irq) +{ +	return -EINVAL; +} + +#endif /* CONFIG_GPIOLIB */ + +#endif /* __ASM_ARCH_GPIO_H */ diff --git a/arch/arm/mach-shmobile/include/mach/hardware.h b/arch/arm/mach-shmobile/include/mach/hardware.h new file mode 100644 index 00000000000..3f0ef194603 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/hardware.h @@ -0,0 +1,7 @@ +#ifndef __ASM_MACH_HARDWARE_H +#define __ASM_MACH_HARDWARE_H + +/* INTFLGA register - used by low level interrupt code in entry-macro.S */ +#define INTFLGA			0xe6980018 + +#endif /* __ASM_MACH_HARDWARE_H */ diff --git a/arch/arm/mach-shmobile/include/mach/io.h b/arch/arm/mach-shmobile/include/mach/io.h new file mode 100644 index 00000000000..7339fe46cb7 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/io.h @@ -0,0 +1,9 @@ +#ifndef __ASM_MACH_IO_H +#define __ASM_MACH_IO_H + +#define IO_SPACE_LIMIT		0xffffffff + +#define __io(a)			((void __iomem *)(a)) +#define __mem_pci(a)		(a) + +#endif /* __ASM_MACH_IO_H */ diff --git a/arch/arm/mach-shmobile/include/mach/irqs.h b/arch/arm/mach-shmobile/include/mach/irqs.h new file mode 100644 index 00000000000..5179b72e1ee --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/irqs.h @@ -0,0 +1,10 @@ +#ifndef __ASM_MACH_IRQS_H +#define __ASM_MACH_IRQS_H + +#define NR_IRQS         512 +#define NR_IRQS_LEGACY  8 + +#define evt2irq(evt)		(((evt) >> 5) - 16) +#define irq2evt(irq)		(((irq) + 16) << 5) + +#endif /* __ASM_MACH_IRQS_H */ diff --git a/arch/arm/mach-shmobile/include/mach/memory.h b/arch/arm/mach-shmobile/include/mach/memory.h new file mode 100644 index 00000000000..e188183f4dc --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/memory.h @@ -0,0 +1,7 @@ +#ifndef __ASM_MACH_MEMORY_H +#define __ASM_MACH_MEMORY_H + +#define PHYS_OFFSET	UL(CONFIG_MEMORY_START) +#define MEM_SIZE	UL(CONFIG_MEMORY_SIZE) + +#endif /* __ASM_MACH_MEMORY_H */ diff --git a/arch/arm/mach-shmobile/include/mach/sh7367.h b/arch/arm/mach-shmobile/include/mach/sh7367.h new file mode 100644 index 00000000000..52d0de686f6 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/sh7367.h @@ -0,0 +1,332 @@ +#ifndef __ASM_SH7367_H__ +#define __ASM_SH7367_H__ + +/* Pin Function Controller: + * GPIO_FN_xx - GPIO used to select pin function + * GPIO_PORTxx - GPIO mapped to real I/O pin on CPU + */ +enum { +	/* 49-1 -> 49-6 (GPIO) */ +	GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, +	GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, + +	GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, +	GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, + +	GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, +	GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, + +	GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, +	GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, + +	GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, +	GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, + +	GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, +	GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, + +	GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, +	GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, + +	GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, +	GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, + +	GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, +	GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, + +	GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, +	GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, + +	GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, +	GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, + +	GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, +	GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, GPIO_PORT119, + +	GPIO_PORT120, GPIO_PORT121, GPIO_PORT122, GPIO_PORT123, GPIO_PORT124, +	GPIO_PORT125, GPIO_PORT126, GPIO_PORT127, GPIO_PORT128, GPIO_PORT129, + +	GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, +	GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, + +	GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, +	GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, + +	GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, +	GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, + +	GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, +	GPIO_PORT165, GPIO_PORT166, GPIO_PORT167, GPIO_PORT168, GPIO_PORT169, + +	GPIO_PORT170, GPIO_PORT171, GPIO_PORT172, GPIO_PORT173, GPIO_PORT174, +	GPIO_PORT175, GPIO_PORT176, GPIO_PORT177, GPIO_PORT178, GPIO_PORT179, + +	GPIO_PORT180, GPIO_PORT181, GPIO_PORT182, GPIO_PORT183, GPIO_PORT184, +	GPIO_PORT185, GPIO_PORT186, GPIO_PORT187, GPIO_PORT188, GPIO_PORT189, + +	GPIO_PORT190, GPIO_PORT191, GPIO_PORT192, GPIO_PORT193, GPIO_PORT194, +	GPIO_PORT195, GPIO_PORT196, GPIO_PORT197, GPIO_PORT198, GPIO_PORT199, + +	GPIO_PORT200, GPIO_PORT201, GPIO_PORT202, GPIO_PORT203, GPIO_PORT204, +	GPIO_PORT205, GPIO_PORT206, GPIO_PORT207, GPIO_PORT208, GPIO_PORT209, + +	GPIO_PORT210, GPIO_PORT211, GPIO_PORT212, GPIO_PORT213, GPIO_PORT214, +	GPIO_PORT215, GPIO_PORT216, GPIO_PORT217, GPIO_PORT218, GPIO_PORT219, + +	GPIO_PORT220, GPIO_PORT221, GPIO_PORT222, GPIO_PORT223, GPIO_PORT224, +	GPIO_PORT225, GPIO_PORT226, GPIO_PORT227, GPIO_PORT228, GPIO_PORT229, + +	GPIO_PORT230, GPIO_PORT231, GPIO_PORT232, GPIO_PORT233, GPIO_PORT234, +	GPIO_PORT235, GPIO_PORT236, GPIO_PORT237, GPIO_PORT238, GPIO_PORT239, + +	GPIO_PORT240, GPIO_PORT241, GPIO_PORT242, GPIO_PORT243, GPIO_PORT244, +	GPIO_PORT245, GPIO_PORT246, GPIO_PORT247, GPIO_PORT248, GPIO_PORT249, + +	GPIO_PORT250, GPIO_PORT251, GPIO_PORT252, GPIO_PORT253, GPIO_PORT254, +	GPIO_PORT255, GPIO_PORT256, GPIO_PORT257, GPIO_PORT258, GPIO_PORT259, + +	GPIO_PORT260, GPIO_PORT261, GPIO_PORT262, GPIO_PORT263, GPIO_PORT264, +	GPIO_PORT265, GPIO_PORT266, GPIO_PORT267, GPIO_PORT268, GPIO_PORT269, + +	GPIO_PORT270, GPIO_PORT271, GPIO_PORT272, + +	/* Special Pull-up / Pull-down Functions */ +	GPIO_FN_PORT48_KEYIN0_PU, GPIO_FN_PORT49_KEYIN1_PU, +	GPIO_FN_PORT50_KEYIN2_PU, GPIO_FN_PORT55_KEYIN3_PU, +	GPIO_FN_PORT56_KEYIN4_PU, GPIO_FN_PORT57_KEYIN5_PU, +	GPIO_FN_PORT58_KEYIN6_PU, + +	/* 49-1 (FN) */ +	GPIO_FN_VBUS0, GPIO_FN_CPORT0, GPIO_FN_CPORT1, GPIO_FN_CPORT2, +	GPIO_FN_CPORT3, GPIO_FN_CPORT4, GPIO_FN_CPORT5, GPIO_FN_CPORT6, +	GPIO_FN_CPORT7, GPIO_FN_CPORT8, GPIO_FN_CPORT9, GPIO_FN_CPORT10, +	GPIO_FN_CPORT11, GPIO_FN_SIN2, GPIO_FN_CPORT12, GPIO_FN_XCTS2, +	GPIO_FN_CPORT13, GPIO_FN_RFSPO4, GPIO_FN_CPORT14, GPIO_FN_RFSPO5, +	GPIO_FN_CPORT15, GPIO_FN_CPORT16, GPIO_FN_CPORT17, GPIO_FN_SOUT2, +	GPIO_FN_CPORT18, GPIO_FN_XRTS2, GPIO_FN_CPORT19, GPIO_FN_CPORT20, +	GPIO_FN_RFSPO6, GPIO_FN_CPORT21, GPIO_FN_STATUS0, GPIO_FN_CPORT22, +	GPIO_FN_STATUS1, GPIO_FN_CPORT23, GPIO_FN_STATUS2, GPIO_FN_RFSPO7, +	GPIO_FN_MPORT0, GPIO_FN_MPORT1, GPIO_FN_B_SYNLD1, GPIO_FN_B_SYNLD2, +	GPIO_FN_XMAINPS, GPIO_FN_XDIVPS, GPIO_FN_XIDRST, GPIO_FN_IDCLK, +	GPIO_FN_IDIO, GPIO_FN_SOUT1, GPIO_FN_SCIFA4_TXD, +	GPIO_FN_M02_BERDAT, GPIO_FN_SIN1, GPIO_FN_SCIFA4_RXD, GPIO_FN_XWUP, +	GPIO_FN_XRTS1, GPIO_FN_SCIFA4_RTS, GPIO_FN_M03_BERCLK, +	GPIO_FN_XCTS1, GPIO_FN_SCIFA4_CTS, + +	/* 49-2 (FN) */ +	GPIO_FN_HSU_IQ_AGC6, GPIO_FN_MFG2_IN2, GPIO_FN_MSIOF2_MCK0, +	GPIO_FN_HSU_IQ_AGC5, GPIO_FN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O_FN_SCIFA5_RXD, +	GPIO_FN_SCIFA5_TXD, +	GPIO_FN_SCIFA5_SCK, GPIO_FN_MFG0_OUT1, +	GPIO_FN_A0_EA0, GPIO_FN_BS, +	GPIO_FN_A14_EA14, GPIO_FN_PORT102_KEYOUT0, +	GPIO_FN_A15_EA15, GPIO_FN_PORT103_KEYOUT1, GPIO_FN_DV_CLKOL, +	GPIO_FN_A16_EA16, GPIO_FN_PORT104_KEYOUT2, +	GPIO_FN_DV_VSYNCL, GPIO_FN_MSIOF0_SS1, +	GPIO_FN_A17_EA17, GPIO_FN_PORT105_KEYOUT3, +	GPIO_FN_DV_HSYNCL, GPIO_FN_MSIOF0_TSYNC, +	GPIO_FN_A18_EA18, GPIO_FN_PORT106_KEYOUT4, +	GPIO_FN_DV_DL0, GPIO_FN_MSIOF0_TSCK, +	GPIO_FN_A19_EA19, GPIO_FN_PORT107_KEYOUT5, +	GPIO_FN_DV_DL1, GPIO_FN_MSIOF0_TXD, +	GPIO_FN_A20_EA20, GPIO_FN_PORT108_KEYIN0, +	GPIO_FN_DV_DL2, GPIO_FN_MSIOF0_RSCK, +	GPIO_FN_A21_EA21, GPIO_FN_PORT109_KEYIN1, +	GPIO_FN_DV_DL3, GPIO_FN_MSIOF0_RSYNC, +	GPIO_FN_A22_EA22, GPIO_FN_PORT110_KEYIN2, +	GPIO_FN_DV_DL4, GPIO_FN_MSIOF0_MCK0, +	GPIO_FN_A23_EA23, GPIO_FN_PORT111_KEYIN3, +	GPIO_FN_DV_DL5, GPIO_FN_MSIOF0_MCK1, +	GPIO_FN_A24_EA24, GPIO_FN_PORT112_KEYIN4, +	GPIO_FN_DV_DL6, GPIO_FN_MSIOF0_RXD, +	GPIO_FN_A25_EA25, GPIO_FN_PORT113_KEYIN5, +	GPIO_FN_DV_DL7, GPIO_FN_MSIOF0_SS2, +	GPIO_FN_A26, GPIO_FN_PORT113_KEYIN6, GPIO_FN_DV_CLKIL, +	GPIO_FN_D0_ED0_NAF0, GPIO_FN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PIO_FN_LCDD10, GPIO_FN_DV_D10, GPIO_FN_D18, GPIO_FN_ED18, +	GPIO_FN_LCDD11, GPIO_FN_DV_D11, GPIO_FN_D19, GPIO_FN_ED19, +	GPIO_FN_LCDD12, GPIO_FN_DV_D12, GPIO_FN_D20, GPIO_FN_ED20, +	GPIO_FN_LCDD13, GPIO_FN_DV_D13, GPIO_FN_D21, GPIO_FN_ED21, +	GPIO_FN_LCDD14, GPIO_FN_DV_D14, GPIO_FN_D22, GPIO_FN_ED22, +	GPIO_FN_LCDD15, GPIO_FN_DV_D15, GPIO_FN_D23, GPIO_FN_ED23, +	GPIO_FN_LCDD16, GPIO_FN_DV_HSYNC, GPIO_FN_D24, GPIO_FN_ED24, +	GPIO_FN_LCDD17, GPIO_FN_DV_VSYNC, GPIO_FN_D25, GPIO_FN_ED25, +	GPIO_FN_LCDD18, GPIO_FN_DREQ2, GPIO_FN_MSIOF0L_TSCK, +	GPIO_FN_D26, GPIO_FN_ED26, +	GPIO_FN_LCDD19, GPIO_FN_MSIOF0L_TSYNC, +	GPIO_FN_D27, GPIO_FN_ED27, +	GPIO_FN_LCDD20, GPIO_FN_TS_SPSYNC1, GPIO_FN_MSIOF0L_MCK0, +	GPIO_FN_D28, GPIO_FN_ED28, +	GPIO_FN_LCDD21, GPIO_FN_TS_SDAT1, GPIO_FN_MSIOF0L_MCK1, +	GPIO_FN_D29, GPIO_FN_ED29, +	GPIO_FN_LCDD22, GPIO_FN_TS_SDEN1, GPIO_FN_MSIOF0L_SS1, +	GPIO_FN_D30, GPIO_FN_ED30, +	GPIO_FN_LCDD23, GPIO_FN_TS_SCK1, GPIO_FN_MSIOF0L_SS2, +	GPIO_FN_D31, GPIO_FN_ED31, +	GPIO_FN_LCDDCK, GPIO_FN_LCDWR, GPIO_FN_DV_CKO, GPIO_FN_SIUAOSPD, +	GPIO_FN_LCDRD, GPIO_FN_DACK2, GPIO_FN_MSIOF0L_RSYNC, + + +	/* 49-5 (FN) */ +	GPIO_FN_LC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PIO_FN_TS_SDAT2, GPIO_FN_TDO3, +	GPIO_FN_SDHID1_2, GPIO_FN_M10_SLCD_CK2, +	GPIO_FN_TS_SDEN2, GPIO_FN_TDI3, +	GPIO_FN_SDHID1_3, GPIO_FN_M12_SLCD_CE2, +	GPIO_FN_TS_SCK2, GPIO_FN_RTCK3, +	GPIO_FN_SDHICMD1, GPIO_FN_TRST3, +	GPIO_FN_SDHICLK2, GPIO_FN_SCIFB_SCK, +	GPIO_FN_SDHID2_0, GPIO_FN_SCIFB_TXD, +	GPIO_FN_SDHID2_1, GPIO_FN_SCIFB_CTS, +	GPIO_FN_SDHID2_2, GPIO_FN_SCIFB_RXD, +	GPIO_FN_SDHID2_3, GPIO_FN_SCIFB_RTS, +	GPIO_FN_SDHICMD2, +	GPIO_FN_RESETOUTS, +	GPIO_FN_DIVLOCK, +}; + +#endif /* __ASM_SH7367_H__ */ diff --git a/arch/arm/mach-shmobile/include/mach/sh7372.h b/arch/arm/mach-shmobile/include/mach/sh7372.h new file mode 100644 index 00000000000..dc34f00c56b --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/sh7372.h @@ -0,0 +1,434 @@ +/* + * Copyright (C) 2010 Renesas Solutions Corp. + * + * Kuninori Morimoto <morimoto.kuninori@renesas.com> + * + * This file is subject to the terms and conditions of the GNU General Public + * License.  See the file "COPYING" in the main directory of this archive + * for more details. + */ + +#ifndef __ASM_SH7372_H__ +#define __ASM_SH7372_H__ + +/* + * Pin Function Controller: + *	GPIO_FN_xx - GPIO used to select pin function + *	GPIO_PORTxx - GPIO mapped to real I/O pin on CPU + */ +enum { +	/* PORT */ +	GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, +	GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, + +	GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, +	GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, + +	GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, +	GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, + +	GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, +	GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, + +	GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, +	GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, + +	GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, +	GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, + +	GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, +	GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, + +	GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, +	GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, + +	GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, +	GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, + +	GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, +	GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, + +	GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, +	GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, + +	GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, +	GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, GPIO_PORT119, + +	GPIO_PORT120, GPIO_PORT121, GPIO_PORT122, GPIO_PORT123, GPIO_PORT124, +	GPIO_PORT125, GPIO_PORT126, GPIO_PORT127, GPIO_PORT128, GPIO_PORT129, + +	GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, +	GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, + +	GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, +	GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, + +	GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, +	GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, + +	GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, +	GPIO_PORT165, GPIO_PORT166, GPIO_PORT167, GPIO_PORT168, GPIO_PORT169, + +	GPIO_PORT170, GPIO_PORT171, GPIO_PORT172, GPIO_PORT173, GPIO_PORT174, +	GPIO_PORT175, GPIO_PORT176, GPIO_PORT177, GPIO_PORT178, GPIO_PORT179, + +	GPIO_PORT180, GPIO_PORT181, GPIO_PORT182, GPIO_PORT183, GPIO_PORT184, +	GPIO_PORT185, GPIO_PORT186, GPIO_PORT187, GPIO_PORT188, GPIO_PORT189, + +	GPIO_PORT190, + +	/* IRQ */ +	GPIO_FN_IRQ0_6,		/* PORT   6 */ +	GPIO_FN_IRQ0_162,	/* PORT 162 */ +	GPIO_FN_IRQ1,		/* PORT  12 */ +	GPIO_FN_IRQ2_4,		/* PORT   4 */ +	GPIO_FN_IRQ2_5,		/* PORT   5 */ +	GPIO_FN_IRQ3_8,		/* PORT   8 */ +	GPIO_FN_IRQ3_16,	/* PORT  16 */ +	GPIO_FN_IRQ4_17,	/* PORT  17 */ +	GPIO_FN_IRQ4_163,	/* PORT 163 */ +	GPIO_FN_IRQ5,		/* PORT  18 */ +	GPIO_FN_IRQ6_39,	/* PORT  39 */ +	GPIO_FN_IRQ6_164,	/* PORT 164 */ +	GPIO_FN_IRQ7_40,	/* PORT  40 */ +	GPIO_FN_IRQ7_167,	/* PORT 167 */ +	GPIO_FN_IRQ8_41,	/* PORT  41 */ +	GPIO_FN_IRQ8_168,	/* PORT 168 */ +	GPIO_FN_IRQ9_42,	/* PORT  42 */ +	GPIO_FN_IRQ9_169,	/* PORT 169 */ +	GPIO_FN_IRQ10,		/* PORT  65 */ +	GPIO_FN_IRQ11,		/* PORT  67 */ +	GPIO_FN_IRQ12_80,	/* PORT  80 */ +	GPIO_FN_IRQ12_137,	/* PORT 137 */ +	GPIO_FN_IRQ13_81,	/* PORT  81 */ +	GPIO_FN_IRQ13_145,	/* PORT 145 */ +	GPIO_FN_IRQ14_82,	/* PORT  82 */ +	GPIO_FN_IRQ14_146,	/* PORT 146 */ +	GPIO_FN_IRQ15_83,	/* PORT  83 */ +	GPIO_FN_IRQ15_147,	/* PORT 147 */ +	GPIO_FN_IRQ16_84,	/* PORT  84 */ +	GPIO_FN_IRQ16_170,	/* PORT 170 */ +	GPIO_FN_IRQ17,		/* PORT  85 */ +	GPIO_FN_IRQ18,		/* PORT  86 */ +	GPIO_FN_IRQ19,		/* PORT  87 */ +	GPIO_FN_IRQ20,		/* PORT  92 */ +	GPIO_FN_IRQ21,		/* PORT  93 */ +	GPIO_FN_IRQ22,		/* PORT  94 */ +	GPIO_FN_IRQ23,		/* PORT  95 */ +	GPIO_FN_IRQ24,		/* PORT 112 */ +	GPIO_FN_IRQ25,		/* PORT 119 */ +	GPIO_FN_IRQ26_121,	/* PORT 121 */ +	GPIO_FN_IRQ26_172,	/* PORT 172 */ +	GPIO_FN_IRQ27_122,	/* PORT 122 */ +	GPIO_FN_IRQ27_180,	/* PORT 180 */ +	GPIO_FN_IRQ28_123,	/* PORT 123 */ +	GPIO_FN_IRQ28_181,	/* PORT 181 */ +	GPIO_FN_IRQ29_129,	/* PORT 129 */ +	GPIO_FN_IRQ29_182,	/* PORT 182 */ +	GPIO_FN_IRQ30_130,	/* PORT 130 */ +	GPIO_FN_IRQ30_183,	/* PORT 183 */ +	GPIO_FN_IRQ31_138,	/* PORT 138 */ +	GPIO_FN_IRQ31_184,	/* PORT 184 */ + +	/* +	 * MSIOF0	(PORT 36, 37, 38, 39 +	 * 		      40, 41, 42, 43, 44, 45) +	 */ +	GPIO_FN_MSIOF0_TSYNC,	GPIO_FN_MSIOF0_TSCK, +	GPIO_FN_MSIOF0_RXD,	GPIO_FN_MSIOF0_RSCK, +	GPIO_FN_MSIOF0_RSYNC,	GPIO_FN_MSIOF0_MCK0, +	GPIO_FN_MSIOF0_MCK1,	GPIO_FN_MSIOF0_SS1, +	GPIO_FN_MSIOF0_SS2,	GPIO_FN_MSIOF0_TXD, + +	/* +	 * MSIOF1	(PORT 39, 40, 41, 42, 43, 44 +	 * 		      84, 85, 86, 87, 88, 89, 90, 91, 92, 93) +	 */ +	GPIO_FN_MSIOF1_TSCK_39,	GPIO_FN_MSIOF1_TSYNC_40, +	GPIO_FN_MSIOF1_TSCK_88,	GPIO_FN_MSIOF1_TSYNC_89, +	GPIO_FN_MSIOF1_TXD_41,	GPIO_FN_MSIOF1_RXD_42, +	GPIO_FN_MSIOF1_TXD_90,	GPIO_FN_MSIOF1_RXD_91, +	GPIO_FN_MSIOF1_SS1_43,	GPIO_FN_MSIOF1_SS2_44, +	GPIO_FN_MSIOF1_SS1_92,	GPIO_FN_MSIOF1_SS2_93, +	GPIO_FN_MSIOF1_RSCK,	GPIO_FN_MSIOF1_RSYNC, +	GPIO_FN_MSIOF1_MCK0,	GPIO_FN_MSIOF1_MCK1, + +	/* +	 * MSIOF2	(PORT 134, 135, 136, 137, 138, 139 +	 *		      148, 149, 150, 151) +	 */ +	GPIO_FN_MSIOF2_RSCK,	GPIO_FN_MSIOF2_RSY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0_TXD,	GPIO_FN_SCIFA0_RXD, +	GPIO_FN_SCIFA0_SCK,	GPIO_FN_SCIFA0_RTS, +	GPIO_FN_SCIFA0_CTS, + +	/* SCIFA1	(PORT 154, 155, 159, 160, 161) */ +	GPIO_FN_SCIFA1_TXD,	GPIO_FN_SCIFA1_RXD, +	GPIO_FN_SCIFA1_SCK,	GPIO_FN_SCIFA1_RTS, +	GPIO_FN_SCIFA1_CTS, + +	/* SCIFA2	(PORT 94, 95, 96, 97, 98) */ +	GPIO_FN_SCIFA2_CTS1,	GPIO_FN_SCIFA2_RTS1, +	GPIO_FN_SCIFA2_TXD1,	GPIO_FN_SCIFA2_RXD1, +	GPIO_FN_SCIFA2_SCK1, + +	/* SCIFA3	(PORT 43, 44, +			     140, 141, 142, 143, 144) */ +	GPIO_FN_SCIFA3_CTS_43,	GPIO_FN_SCIFA3_CTS_140, +	GPIO_FN_SCIFA3_RTS_44,	GPIO_FN_SCIFA3_RTS_141, +	GPIO_FN_SCIFA3_SCK,	GPIO_FN_SCIFA3_TXD, +	GPIO_FN_SCIFA3_RXD, + +	/* SCIFA4	(PORT 5, 6) */ +	GPIO_FN_SCIFA4_RXD,	GPIO_FN_SCIFA4_TXD, + +	/* SCIFA5	(PORT 8, 12) */ +	GPIO_FN_SCIFA5_RXD,	GPIO_FN_SCIFA5_TXD, + +	/* SCIFB	(PORT 162, 163, 164, 165, 166) */ +	GPIO_FN_SCIFB_SCK,	GPIO_FN_SCIFB_RTS, +	GPIO_FN_SCIFB_CTS,	GPIO_FN_SCIFB_TXD, +	GPIO_FN_SCIFB_RXD, + +	/* +	 * CEU		(PORT 16, 17, +	 *		      100, 101, 102, 103, 104, 105, 106, 107, 108, 109, +	 *		      110, 111, 112, 113, 114, 115, 116, 117, 118, 119, +	 *		      120) +	 */ +	GPIO_FN_VIO_HD,		GPIO_FN_VIO_CKO1,	GPIO_FN_VIO_CKO2, +	GPIO_FN_VIO_VD,		GPIO_FN_VIO_CLK,	GPIO_FN_VIO_FIELD, +	GPIO_FN_VIO_CKO, +	GPIO_FN_VIO_D0,		GPIO_FN_VIO_D1,		GPIO_FN_VIO_D2, +	GPIO_FN_VIO_D3,		GPIO_FN_VIO_D4,		GPIO_FN_VIO_D5, +	GPIO_FN_VIO_D6,		GPIO_FN_VIO_D7,		GPIO_FN_VIO_D8, +	GPIO_FN_VIO_D9,		GPIO_FN_VIO_D10,	GPIO_FN_VIO_D11, +	GPIO_FN_VIO_D12,	GPIO_FN_VIO_D13,	GPIO_FN_VIO_D14, +	GPIO_FN_VIO_D15, + +	/* USB0		(PORT 113, 114, 115, 116, 117, 167) */ +	GPIO_FN_IDIN_0,		GPIO_FN_EXTLP_0, +	GPIO_FN_OVCN2_0,	GPIO_FN_PWEN_0, +	GPIO_FN_OVCN_0,		GPIO_FN_VBUS0_0, + +	/* USB1		(PORT 18, 113, 114, 115, 116, 117, 138, 162, 168) */ +	GPIO_FN_IDIN_1_18,	GPIO_FN_IDIN_1_113, +	GPIO_FN_PWEN_1_115,	GPIO_FN_PWEN_1_138, +	GPIO_FN_OVCN_1_114,	GPIO_FN_OVCN_1_162, +	GPIO_FN_EXTLP_1,	GPIO_FN_OVCN2_1, +	GPIO_FN_VBUS0_1, + +	/* GPIO		(PORT 41, 42, 43, 44) */ +	GPIO_FN_GPI0,	GPIO_FN_GPI1,	GPIO_FN_GPO0,	GPIO_FN_GPO1, + +	/* +	 * BSC		(PORT 19, +	 *		      20, 21, 22, 25, 26, 27, 28, 29, +	 *		      30, 31, 32, 33, 34, 35, 36, 37, 38, 39, +	 *		      40, 41, 42, 43, 44, 45, +	 *		      62, 63, 64, 65, 66, 67, +	 *		      71, 72, 74, 75) +	 */ +	GPIO_FN_BS,	GPIO_FN_WE1, +	GPIO_FN_CKO,	GPIO_FN_WAIT,	GPIO_FN_RDWR, + +	GPIO_FN_A0,	GPIO_FN_A1,	GPIO_FN_A2,	GPIO_FN_A3, +	GPIO_FN_A6,	GPIO_FN_A7,	GPIO_FN_A8,	GPIO_FN_A9, +	GPIO_FN_A10,	GPIO_FN_A11,	GPIO_FN_A12,	GPIO_FN_A13, +	GPIO_FN_A14,	GPIO_FN_A15,	GPIO_FN_A16,	GPIO_FN_A17, +	GPIO_FN_A18,	GPIO_FN_A19,	GPIO_FN_A20,	GPIO_FN_A21, +	GPIO_FN_A22,	GPIO_FN_A23,	GPIO_FN_A24,	GPIO_FN_A25, +	GPIO_FN_A26, + +	GPIO_FN_CS0,	GPIO_FN_CS2,	GPIO_FN_CS4, +	GPIO_FN_CS5A,	GPIO_FN_CS5B,	GPIO_FN_CS6A, + +	/* +	 * BSC/FLCTL		(PORT 23, 24, +	 *			      46, 47, 48, 49, +	 *			      50, 51, 52, 53, 54, 55, 56, 57, 58, 59, +	 *			      60, 61, 69, 70) +	 */ +	GPIO_FN_RD_FSC,		GPIO_FN_WE0_FWE, +	GPIO_FN_A4_FOE,		GPIO_FN_A5_FCDE, +	GPIO_FN_D0_NAF0,	GPIO_FN_D1_NAF1,	GPIO_FN_D2_NAF2, +	GPIO_FN_D3_NAF3,	GPIO_FN_D4_NAF4,	GPIO_FN_D5_NAF5, +	GPIO_FN_D6_NAF6,	GPIO_FN_D7_NAF7,	GPIO_FN_D8_NAF8, +	GPIO_FN_D9_NAF9,	GPIO_FN_D10_NAF10,	GPIO_FN_D11_NAF11, +	GPIO_FN_D12_NAF12,	GPIO_FN_D13_NAF13,	GPIO_FN_D14_NAF14, +	GPIO_FN_D15_NAF15, + +	/* +	 * MMCIF(1)		(PORT 84, 85, 86, 87, 88, 89, +	 *			      90, 91, 92, 99) +	 */ +	GPIO_FN_MMCD0_0,	GPIO_FN_MMCD0_1,	GPIO_FN_MMCD0_2, +	GPIO_FN_MMCD0_3,	GPIO_FN_MMCD0_4,	GPIO_FN_MMCD0_5, +	GPIO_FN_MMCD0_6,	GPIO_FN_MMCD0_7, +	GPIO_FN_MMCCMD0,	GPIO_FN_MMCCLK0, + +	/* MMCIF(2)		(PORT 54, 55, 56, 57, 58, 59, 60, 61, 66, 67) */ +	GPIO_FN_MMCD1_0,	GPIO_FN_MMCD1_1,	GPIO_FN_MMCD1_2, +	GPIO_FN_MMCD1_3,	GPIO_FN_MMCD1_4,	GPIO_FN_MMCD1_5, +	GPIO_FN_MMCD1_6,	GPIO_FN_MMCD1_7, +	GPIO_FN_MMCCLK1,	GPIO_FN_MMCCMD1, + +	/* SPU2		(PORT 65) */ +	GPIO_FN_VINT_I, + +	/* FLCTL	(PORT 66, 68, 73) */ +	GPIO_FN_FCE1,	GPIO_FN_FCE0,	GPIO_FN_FRB, + +	/* HSI		(PORT 76, 77, 78, 79, 80, 81, 82, 83) */ +	GPIO_FN_GP_RX_FLAG,	GPIO_FN_GP_RX_DATA,	GPIO_FN_GP_TX_READY, +	GPIO_FN_GP_RX_WAKE,	GPIO_FN_MP_TX_FLAG,	GPIO_FN_MP_TX_DATA, +	GPIO_FN_MP_RX_READY,	GPIO_FN_MP_TX_WAKE, + +	/* +	 * MFI		(PORT 76, 77, 78, 79, +	 *		      80, 81, 82, 83, 84, 85, 86, 87, 88, 89, +	 *		      90, 91, 92, 93, 94, 95, 96, 97, 98, 99) +	 */ +	GPIO_FN_MFIv6,	/* see MSEL4CR 6 */ +	GPIO_FN_MFIv4,	/* see MSEL4CR 6 */ + +	GPIO_FN_MEMC_CS0,		GPIO_FN_MEMC_BUSCLK_MEMC_A0, +	GPIO_FN_MEMC_CS1_MEMC_A1,	GPIO_FN_MEMC_ADV_MEMC_DREQ0, +	GPIO_FN_MEMC_WAIT_MEMC_DREQ1,	GPIO_FN_MEMC_NOE, +	GPIO_FN_MEMC_NWE,		GPIO_FN_MEMC_INT, + +	GPIO_FN_MEMC_AD0,	GPIO_FN_MEMC_AD1,	GPIO_FN_MEMC_AD2, +	GPIO_FN_MEMC_AD3,	GPIO_FN_MEMC_AD4,	GPIO_FN_MEMC_AD5, +	GPIO_FN_MEMC_AD6,	GPIO_FN_MEMC_AD7,	GPIO_FN_MEMC_AD8, +	GPIO_FN_MEMC_AD9,	GPIO_FN_MEMC_AD10,	GPIO_FN_MEMC_AD11, +	GPIO_FN_MEMC_AD12,	GPIO_FN_MEMC_AD13,	GPIO_FN_MEMC_AD14, +	GPIO_FN_MEMC_AD15, + +	/* SIM		(PORT 94, 95, 98) */ +	GPIO_FN_SIM_RST,	GPIO_FN_SIM_CLK,	GPIO_FN_SIM_D, + +	/* TPU		(PORT 93, 99, 112, 160, 161) */ +	GPIO_FN_TPU0TO0,	GPIO_FN_TPU0TO1, +	GPIO_FN_TPU0TO2_93,	GPIO_FN_TPU0TO2_99, +	GPIO_FN_TPU0TO3, + +	/* I2C2		(PORT 110, 111) */ +	GPIO_FN_I2C_SCL2,	GPIO_FN_I2C_SDA2, + +	/* I2C3(1)	(PORT 114, 115) */ +	GPIO_FN_I2C_SCL3,	GPIO_FN_I2C_SDA3, + +	/* I2C3(2)	(PORT 137, 145) */ +	GPIO_FN_I2C_SCL3S,	GPIO_FN_I2C_SDA3S, + +	/* I2C4(2)	(PORT 116, 117) */ +	GPIO_FN_I2C_SCL4,	GPIO_FN_I2C_SDA4, + +	/* I2C4(2)	(PORT 146, 147) */ +	GPIO_FN_I2C_SCL4S,	GPIO_FN_I2C_SDA4S, + +	/* +	 * KEYSC	(PORT 121, 122, 123, 124, 125, 126, 127, 128, 129, +	 *		      130, 131, 132, 133, 134, 135, 136) +	 */ +	GPIO_FN_KEYOUT0,	GPIO_FN_KEYIN0_121,	GPIO_FN_KEYIN0_136, +	GPIO_FN_KEYOUT1,	GPIO_FN_KEYIN1_122,	GPIO_FN_KEYIN1_135, +	GPIO_FN_KEYOUT2,	GPIO_FN_KEYIN2_123,	GPIO_FN_KEYIN2_134, +	GPIO_FN_KEYOUT3,	GPIO_FN_KEYIN3_124,	GPIO_FN_KEYIN3_133, +	GPIO_FN_KEYOUT4,	GPIO_FN_KEYIN4, +	GPIO_FN_KEYOUT5,	GPIO_FN_KEYIN5, +	GPIO_FN_KEYOUT6,	GPIO_FN_KEYIN6, +	GPIO_FN_KEYOUT7,	GPIO_FN_KEYIN7, + +	/* +	 * LCDC		(PORT      121, 122, 123, 124, 125, 126, 127, 128, 129, +	 *		      130, 131, 132, 133, 134, 135, 136, 137, 138, 139, +	 *		      140, 141, 142, 143, 144, 145, 146, 147, 148, 149, +	 *		      150, 151) +	 */ +	GPIO_FN_LCDC0_SELECT, /* LCDC 0 */ +	GPIO_FN_LCDC1_SELECT, /* LCDC 1 */ +	GPIO_FN_LCDHSYN,	GPIO_FN_LCDCS,	GPIO_FN_LCDVSYN, +	GPIO_FN_LCDDCK,		GPIO_FN_LCDWR,	GPIO_FN_LCDRD, +	GPIO_FN_LCDDISP,	GPIO_FN_LCDRS,	GPIO_FN_LCDLCLK, +	GPIO_FN_LCDDON, + +	GPIO_FN_LCDD0,	GPIO_FN_LCDD1,	GPIO_FN_LCDD2,	GPIO_FN_LCDD3, +	GPIO_FN_LCDD4,	GPIO_FN_LCDD5,	GPIO_FN_LCDD6,	GPIO_FN_LCDD7, +	GPIO_FN_LCDD8,	GPIO_FN_LCDD9,	GPIO_FN_LCDD10,	GPIO_FN_LCDD11, +	GPIO_FN_LCDD12,	GPIO_FN_LCDD13,	GPIO_FN_LCDD14,	GPIO_FN_LCDD15, +	GPIO_FN_LCDD16,	GPIO_FN_LCDD17,	GPIO_FN_LCDD18,	GPIO_FN_LCDD19, +	GPIO_FN_LCDD20,	GPIO_FN_LCDD21,	GPIO_FN_LCDD22,	GPIO_FN_LCDD23, + +	/* IRDA		(PORT 139, 140, 141, 142) */ +	GPIO_FN_IRDA_OUT,	GPIO_FN_IRDA_IN,	GPIO_FN_IRDA_FIRSEL, +	GPIO_FN_IROUT_139,	GPIO_FN_IROUT_140, + +	/* TSIF1	(PORT 156, 157, 158, 159) */ +	GPIO_FN_TS0_1SELECT, /* TSIF0 - 1 select */ +	GPIO_FN_TS0_2SELECT, /* TSIF0 - 2 select */ +	GPIO_FN_TS1_1SELECT, /* TSIF1 - 1 select */ +	GPIO_FN_TS1_2SELECT, /* TSIF1 - 2 select */ + +	GPIO_FN_TS_SPSYNC1,	GPIO_FN_TS_SDAT1, +	GPIO_FN_TS_SDEN1,	GPIO_FN_TS_SCK1, + +	/* TSIF2	(PORT 137, 145, 146, 147) */ +	GPIO_FN_TS_SPSYNC2,	GPIO_FN_TS_SDAT2, +	GPIO_FN_TS_SDEN2,	GPIO_FN_TS_SCK2, + +	/* HDMI		(PORT 169, 170) */ +	GPIO_FN_HDMI_HPD,	GPIO_FN_HDMI_CEC, + +	/* SDHI0	(PORT 171, 172, 173, 174, 175, 176, 177, 178) */ +	GPIO_FN_SDHICLK0,	GPIO_FN_SDHICD0, +	GPIO_FN_SDHICMD0,	GPIO_FN_SDHIWP0, +	GPIO_FN_SDHID0_0,	GPIO_FN_SDHID0_1, +	GPIO_FN_SDHID0_2,	GPIO_FN_SDHID0_3, + +	/* SDHI1	(PORT 179, 180, 181, 182, 183, 184) */ +	GPIO_FN_SDHICLK1,	GPIO_FN_SDHICMD1,	GPIO_FN_SDHID1_0, +	GPIO_FN_SDHID1_1,	GPIO_FN_SDHID1_2,	GPIO_FN_SDHID1_3, + +	/* SDHI2	(PORT 185, 186, 187, 188, 189, 190) */ +	GPIO_FN_SDHICLK2,	GPIO_FN_SDHICMD2,	GPIO_FN_SDHID2_0, +	GPIO_FN_SDHID2_1,	GPIO_FN_SDHID2_2,	GPIO_FN_SDHID2_3, + +	/* SDENC	see MSEL4CR 19 */ +	GPIO_FN_SDENC_CPG, +	GPIO_FN_SDENC_DV_CLKI, +}; + +#endif /* __ASM_SH7372_H__ */ diff --git a/arch/arm/mach-shmobile/include/mach/sh7377.h b/arch/arm/mach-shmobile/include/mach/sh7377.h new file mode 100644 index 00000000000..f580e227dd1 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/sh7377.h @@ -0,0 +1,360 @@ +#ifndef __ASM_SH7377_H__ +#define __ASM_SH7377_H__ + +/* Pin Function Controller: + * GPIO_FN_xx - GPIO used to select pin function + * GPIO_PORTxx - GPIO mapped to real I/O pin on CPU + */ +enum { +	/* 55-1 -> 55-5 (GPIO) */ +	GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, +	GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, + +	GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, +	GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, + +	GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, +	GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, + +	GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, +	GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, + +	GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, +	GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, + +	GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, +	GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, + +	GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, +	GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, + +	GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, +	GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, + +	GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, +	GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, + +	GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, +	GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, + +	GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, +	GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, + +	GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, +	GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, + +	GPIO_PORT128, GPIO_PORT129, + +	GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, +	GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, + +	GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, +	GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, + +	GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, +	GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, + +	GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, + +	GPIO_PORT192, GPIO_PORT193, GPIO_PORT194, +	GPIO_PORT195, GPIO_PORT196, GPIO_PORT197, GPIO_PORT198, GPIO_PORT199, + +	GPIO_PORT200, GPIO_PORT201, GPIO_PORT202, GPIO_PORT203, GPIO_PORT204, +	GPIO_PORT205, GPIO_PORT206, GPIO_PORT207, GPIO_PORT208, GPIO_PORT209, + +	GPIO_PORT210, GPIO_PORT211, GPIO_PORT212, GPIO_PORT213, GPIO_PORT214, +	GPIO_PORT215, GPIO_PORT216, GPIO_PORT217, GPIO_PORT218, GPIO_PORT219, + +	GPIO_PORT220, GPIO_PORT221, GPIO_PORT222, GPIO_PORT223, GPIO_PORT224, +	GPIO_PORT225, GPIO_PORT226, GPIO_PORT227, GPIO_PORT228, GPIO_PORT229, + +	GPIO_PORT230, GPIO_PORT231, GPIO_PORT232, GPIO_PORT233, GPIO_PORT234, +	GPIO_PORT235, GPIO_PORT236, GPIO_PORT237, GPIO_PORT238, GPIO_PORT239, + +	GPIO_PORT240, GPIO_PORT241, GPIO_PORT242, GPIO_PORT243, GPIO_PORT244, +	GPIO_PORT245, GPIO_PORT246, GPIO_PORT247, GPIO_PORT248, GPIO_PORT249, + +	GPIO_PORT250, GPIO_PORT251, GPIO_PORT252, GPIO_PORT253, GPIO_PORT254, +	GPIO_PORT255, GPIO_PORT256, GPIO_PORT257, GPIO_PORT258, GPIO_PORT259, + +	GPIO_PORT260, GPIO_PORT261, GPIO_PORT262, GPIO_PORT263, GPIO_PORT264, + +	/* Special Pull-up / Pull-down Functions */ +	GPIO_FN_PORT66_KEYIN0_PU, GPIO_FN_PORT67_KEYIN1_PU, +	GPIO_FN_PORT68_KEYIN2_PU, GPIO_FN_PORT69_KEYIN3_PU, +	GPIO_FN_PORT70_KEYIN4_PU, GPIO_FN_PORT71_KEYIN5_PU, +	GPIO_FN_PORT72_KEYIN6_PU, + +	/* 55-1 (FN) */ +	GPIO_FN_VBUS_0, +	GPIO_FN_CPORT0, +	GPIO_FN_CPORT1, +	GPIO_FN_CPORT2, +	GPIO_FN_CPORT3, +	GPIO_FN_CPORT4, +	GPIO_FN_CPORT5, +	GPIO_FN_CPORT6, +	GPIO_FN_CPORT7, +	GPIO_FN_CPORT8, +	GPIO_FN_CPORT9, +	GPIO_FN_CPORT10, +	GPIO_FN_CPORT11, GPIO_FN_SIN2, +	GPIO_FN_CPORT12, GPIO_FN_XCTS2, +	GPIO_FN_CPORT13, GPIO_FN_RFSPO4, +	GPIO_FN_CPORT14, GPIO_FN_RFSPO5, +	GPIO_FN_CPORT15, GPIO_FN_SCIFA0_SCK, GPIO_FN_GPS_AGC2, +	GPIO_FN_CPORT16, GPIO_FN_SCIFA0_TXD, GPIO_FN_GPS_AGC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T3, +	GPIO_FN_FMSIOLR, +	GPIO_FN_FMSOOBT, GPIO_FN_BBIF2_TSCK2, GPIO_FN_TPU2TO3, GPIO_FN_OPORT1, +	GPIO_FN_FMSIOBT, +	GPIO_FN_FMSOSLD, GPIO_FN_BBIF2_TXD2, GPIO_FN_OPORT2, +	GPIO_FN_FMSOILR, GPIO_FN_PORT53_IRDA_IN, GPIO_FN_TPU3TO3, +	GPIO_FN_OPORT3, GPIO_FN_FMSIILR, +	GPIO_FN_FMSOIBT, GPIO_FN_PORT54_IRDA_FIRSEL, GPIO_FN_TPU3TO2, +	GPIO_FN_FMSIIBT, +	GPIO_FN_FMSISLD, GPIO_FN_MFG0_OUT1, GPIO_FN_TPU0TO0, +	GPIO_FN_A0_EA0, GPIO_FN_BS, +	GPIO_FN_A12_EA12, GPIO_FN_PORT58_VIO_CKOR, GPIO_FN_TPU4TO2, +	GPIO_FN_A13_EA13, GPIO_FN_PORT59_IROUT, GPIO_FN_MFG0_OUT2, +	GPIO_FN_TPU0TO1, +	GPIO_FN_A14_EA14, GPIO_FN_PORT60_KEYOUT5, +	GPIO_FN_A15_EA15, GPIO_FN_PORT61_KEYOUT4, +	GPIO_FN_A16_EA16, GPIO_FN_PORT62_KEYOUT3, GPIO_FN_MSIOF0_SS1, +	GPIO_FN_A17_EA17, GPIO_FN_PORT63_KEYOUT2, GPIO_FN_MSIOF0_TSYNC, +	GPIO_FN_A18_EA18, GPIO_FN_PORT64_KEYOUT1, GPIO_FN_MSIOF0_TSCK, +	GPIO_FN_A19_EA19, GPIO_FN_PORT65_KEYOUT0, GPIO_FN_MSIOF0_TXD, +	GPIO_FN_A20_EA20, GPIO_FN_PORT66_KEYIN0, GPIO_FN_MSIOF0_RSCK, +	GPIO_FN_A21_EA21, GPIO_FN_PORT67_KEYIN1, GPIO_FN_MSIOF0_RSYNC, +	GPIO_FN_A22_EA22, GPIO_FN_PORT68_KEYIN2, GPIO_FN_MSIOF0_MCK0, +	GPIO_FN_A23_EA23, GPIO_FN_PORT69_KEYIN3, GPIO_FN_MSIOF0_MCK1, +	GPIO_FN_A24_EA24, GPIO_FN_PORT70_KEYIN4, GPIO_FN_MSIOF0_RXD, +	GPIO_FN_A25_EA25, GPIO_FN_PORT71_KEYIN5, GPIO_FN_MSIOF0_SS2, +	GPIO_FN_A26, GPIO_FN_PORT72_KEYIN6, +	GPIO_FN_D0_ED0_NAF0, +	GPIO_FN_D1_ED1_NAF1, +	GPIO_FN_D2_ED2_NAF2, +	GPIO_FN_D3_ED3_NAF3, +	GPIO_FN_D4_ED4_NAF4, +	GPIO_FN_D5_ED5_NAF5, +	GPIO_FN_D6_ED6_NAF6, +	GPIO_FN_D7_ED7_NAF7, +	GPIO_FN_D8_ED8_NAF8, +	GPIO_FN_D9_ED9_NAF9, +	GPIO_FN_D10_ED10_NAF10, +	GPIO_FN_D11_ED11_NAF11, +	GPIO_FN_D12_ED12_NAF12, +	GPIO_FN_D13_ED13_NAF13, +	GPIO_FN_D14_ED14_NAF14, +	GPIO_FN_D15_ED15_NAF15, +	GPIO_FN_CS4, +	GPIO_FN_CS5A, GPIO_FN_FMSICK, +	GPIO_FN_CS5B, GPIO_FN_FCE1, + +	/* 55-3 (FN) */ +	GPIO_FN_CS6B, GPIO_FN_XCS2, GPIO_FN_CS6A, GPIO_FN_DACK0, +	GPIO_FN_FCE0, +	GPIO_FN_WAIT, GPIO_FN_DREQ0, +	GPIO_FN_RD_XRD, +	GPIO_FN_WE0_XWR0_FWE, +	GPIO_FN_WE1_XWR1, +	GPIO_FN_FRB, +	GPIO_FN_CKO, +	GPIO_FN_NBRSTOUT, +	GPIO_FN_NBRST, +	GPIO_FN_GPS_EPPSIN, +	GPIO_FN_LATCHPULSE, +	GPIO_FN_LTESIGNAL, +	GPIO_FN_LEGACYSTATE, +	GPIO_FN_TCKON, +	GPIO_FN_VIO_VD, GPIO_FN_PORT128_KEYOUT0, GPIO_FN_IPORT0, +	GPIO_FN_VIO_HD, GPIO_FN_PORT129_KEYOUT1, GPIO_FN_IPORT1, +	GPIO_FN_VIO_D0, GPIO_FN_PORT130_KEYOUT2, GPIO_FN_PORT130_MSIOF2_RXD, +	GPIO_FN_VIO_D1, GPIO_FN_PORT131_KEYOUT3, GPIO_FN_PORT131_MSIOF2_SS1, +	GPIO_FN_VIO_D2, GPIO_FN_PORT132_KEYOUT4, GPIO_FN_PORT132_MSIOF2_SS2, +	GPIO_FN_VIO_D3, GPIO_FN_PORT133_KEYOUT5, GPIO_FN_PORT133_MSIOF2_TSYNC, +	GPIO_FN_VIO_D4, GPIO_FN_PORT134_KEYIN0, GPIO_FN_PORT134_MSIOF2_TXD, +	GPIO_FN_VIO_D5, GPIO_FN_PORT135_KEYIN1, GPIO_FN_PORT135_MSIOF2_TSCK, +	GPIO_FN_VIO_D6, GPIO_FN_PORT136_KEYIN2, +	GPIO_FN_VIO_D7, GPIO_FN_PORT137_KEYIN3, +	GPIO_FN_VIO_D8, GPIO_FN_M9_SLCD_A01, GPIO_FN_PORT138_FSIAOMC, +	GPIO_FN_VIO_D9, GPIO_FN_M10_SLCD_CK1, GPIO_FN_PORT139_FSIAOLR, +	GPIO_FN_VIO_D10, GPIO_FN_M11_SLCD_SO1, GPIO_FN_TPU0TO2, +	GPIO_FN_PORT140_FSIAOBT, +	GPIO_FN_VIO_D11, GPIO_FN_M12_SLCD_CE1, GPIO_FN_TPU0TO3, +	GPIO_FN_PORT141_FSIAOSLD, +	GPIO_FN_VIO_D12, GPIO_FN_M13_BSW, GPIO_FN_PORT142_FSIACK, +	GPIO_FN_VIO_D13, GPIO_FN_M14_GSW, GPIO_FN_PORT143_FSIAILR, +	GPIO_FN_VIO_D14, GPIO_FN_M15_RSW, GPIO_FN_PORT144_FSIAIBT, +	GPIO_FN_VIO_D15, GPIO_FN_TPU1TO3, GPIO_FN_PORT145_FSIAISLD, +	GPIO_FN_VIO_CLK, GPIO_FN_PORT146_KEYIN4, GPIO_FN_IPORT2, +	GPIO_FN_VIO_FIELD, GPIO_FN_PORT147_KEYIN5, +	GPIO_FN_VIO_CKO, GPIO_FN_PORT148_KEYIN6, +	GPIO_FN_A27, GPIO_FN_RDWR_XWE, GPIO_FN_MFG0_IN1, +	GPIO_FN_MFG0_IN2, +	GPIO_FN_TS_SPSYNC3, GPIO_FN_MSIOF2_RSCK, +	GPIO_FN_TS_SDAT3, GPIO_FN_MSIOF2_RSYNC, +	GPIO_FN_TPU1TO2, GPIO_FN_TS_SDEN3, GPIO_FN_PORT153_MSIOF2_SS1, +	GPIO_FN_SOUT3, GPIO_FN_SCIFA2_TXD1, GPIO_FN_MSIOF2_MCK0, +	GPIO_FN_SIN3, GPIO_FN_SCIFA2_RXD1, GPIO_FN_MSIOF2_MCK1, +	GPIO_FN_XRTS3, GPIO_FN_SCIFA2_RTS1, GPIO_FN_PORT156_MSIOF2_SS2, +	GPIO_FN_XCTS3, GPIO_FN_SCIFA2_CTS1, GPIO_FN_PORT157_MSIOF2_RXD, + +	/* 55-4 (FN) */ +	GPIO_FN_DINT, GPIO_FN_SCIFA2_SCK1, GPIO_FN_TS_SCK3, +	GPIO_FN_PORT159_SCIFB_SCK, GPIO_FN_PORT159_SCIFA5_SCK, GPIO_FN_NMI, +	GPIO_FN_PORT160_SCIFB_TXD, GPIO_FN_PORT160_SCIFA5_TXD, GPIO_FN_SOUT0, +	GPIO_FN_PORT161_SCIFB_CTS, GPIO_FN_PORT161_SCIFA5_CTS, GPIO_FN_XCTS0, +	GPIO_FN_MFG3_IN2, +	GPIO_FN_PORT162_SCIFB_RXD, GPIO_FN_PORT162_SCIFA5_RXD, GPIO_FN_SIN0, +	GPIO_FN_MFG3_IN1, +	GPIO_FN_PORT163_SCIFB_RTS, GPIO_FN_PORT163_SCIFA5_RTS, GPIO_FN_XRTS0, +	GPIO_FN_MFG3_OUT1, +	GPIO_FN_TPU3TO0, +	GPIO_FN_LCDD0, GPIO_FN_PORT192_KEYOUT0, GPIO_FN_EXT_CKI, +	GPIO_FN_LCDD1, GPIO_FN_PORT193_KEYOUT1, GPIO_FN_PORT193_SCIFA5_CTS, +	GPIO_FN_BBIF2_TSYNC1, +	GPIO_FN_LCDD2, GPIO_FN_PORT194_KEYOUT2, GPIO_FN_PORT194_SCIFA5_RTS, +	GPIO_FN_BBIF2_TSCK1, +	GPIO_FN_LCDD3, GPIO_FN_PORT195_KEYOUT3, GPIO_FN_PORT195_SCIFA5_RXD, +	GPIO_FN_BBIF2_TXD1, +	GPIO_FN_LCDD4, GPIO_FN_PORT196_KEYOUT4, GPIO_FN_PORT196_SCIFA5_TXD, +	GPIO_FN_LCDD5, GPIO_FN_PORT197_KEYOUT5, GPIO_FN_PORT197_SCIFA5_SCK, +	GPIO_FN_MFG2_OUT2, GPIO_FN_TPU2TO1, +	GPIO_FN_LCDD6, GPIO_FN_XWR2, +	GPIO_FN_LCDD7, GPIO_FN_TPU4TO1, GPIO_FN_MFG4_OUT2, GPIO_FN_XWR3, +	GPIO_FN_LCDD8, GPIO_FN_PORT200_KEYIN0, GPIO_FN_VIO_DR0, GPIO_FN_D16, +	GPIO_FN_ED16, +	GPIO_FN_LCDD9, GPIO_FN_PORT201_KEYIN1, GPIO_FN_VIO_DR1, GPIO_FN_D17, +	GPIO_FN_ED17, +	GPIO_FN_LCDD10, GPIO_FN_PORT202_KEYIN2, GPIO_FN_VIO_DR2, GPIO_FN_D18, +	GPIO_FN_ED18, +	GPIO_FN_LCDD11, GPIO_FN_PORT203_KEYIN3, GPIO_FN_VIO_DR3, GPIO_FN_D19, +	GPIO_FN_ED19, +	GPIO_FN_LCDD12, GPIO_FN_PORT204_KEYIN4, GPIO_FN_VIO_DR4, GPIO_FN_D20, +	GPIO_FN_ED20, +	GPIO_FN_LCDD13, GPIO_FN_PORT205_KEYIN5, GPIO_FN_VIO_DR5, GPIO_FN_D21, +	GPIO_FN_ED21, +	GPIO_FN_LCDD14, GPIO_FN_PORT206_KEYIN6, GPIO_FN_VIO_DR6, GPIO_FN_D22, +	GPIO_FN_ED22, +	GPIO_FN_LCDD15, GPIO_FN_PORT207_MSIOF0L_SS1, GPIO_FN_PORT207_KEYOUT0, +	GPIO_FN_VIO_DR7, +	GPIO_FN_D23, GPIO_FN_ED23, +	GPIO_FN_LCDD16, GPIO_FN_PORT208_MSIOF0L_SS2, GPIO_FN_PORT208_KEYOUT1, +	GPIO_FN_VIO_VDR, +	GPIO_FN_D24, GPIO_FN_ED24, +	GPIO_FN_LCDD17, GPIO_FN_PORT209_KEYOUT2, GPIO_FN_VIO_HDR, GPIO_FN_D25, +	GPIO_FN_ED25, +	GPIO_FN_LCDD18, GPIO_FN_DREQ2, GPIO_FN_PORT210_MSIOF0L_SS1, GPIO_FN_D26, +	GPIO_FN_ED26, +	GPIO_FN_LCDD19, GPIO_FN_PORT211_MSIOF0L_SS2, GPIO_FN_D27, GPIO_FN_ED27, +	GPIO_FN_LCDD20, GPIO_FN_TS_SPSYNC1, GPIO_FN_MSIOF0L_MCK0, GPIO_FN_D28, +	GPIO_FN_ED28, +	GPIO_FN_LCDD21, GPIO_FN_TS_SDAT1, GPIO_FN_MSIOF0L_MCK1, GPIO_FN_D29, +	GPIO_FN_ED29, +	GPIO_FN_LCDD22, GPIO_FN_TS_SDEN1, GPIO_FN_MSIOF0L_RSCK, GPIO_FN_D30, +	GPIO_FN_ED30, +	GPIO_FN_LCDD23, GPIO_FN_TS_SCK1, GPIO_FN_MSIOF0L_RSYNC, GPIO_FN_D31, +	GPIO_FN_ED31, +	GPIO_FN_LCDDCK, GPIO_FN_LCDWR, GPIO_FN_PORT216_KEYOUT3, +	GPIO_FN_VIO_CLKR, +	GPIO_FN_LCDRD, GPIO_FN_DACK2, GPIO_FN_MSIOF0L_TSYNC, +	GPIO_FN_LCDHSYN, GPIO_FN_LCDCS, GPIO_FN_LCDCS2, GPIO_FN_DACK3, +	GPIO_FN_PORT218_VIO_CKOR, GPIO_FN_PORT218_KEYOUT4, +	GPIO_FN_LCDDISP, GPIO_FN_LCDRS, GPIO_FN_DREQ3, GPIO_FN_MSIOF0L_TSCK, +	G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, +	GPIO_FN_PORT241_IRDA_OUT, GPIO_FN_PORT241_IROUT, GPIO_FN_MFG4_OUT1, +	GPIO_FN_TPU4TO0, +	GPIO_FN_PORT242_IRDA_IN, GPIO_FN_MFG4_IN2, +	GPIO_FN_PORT243_IRDA_FIRSEL, GPIO_FN_PORT243_VIO_CKO2, +	GPIO_FN_PORT244_SCIFA5_CTS, GPIO_FN_MFG2_IN1, GPIO_FN_PORT244_SCIFB_CTS, +	GPIO_FN_PORT244_MSIOF2_RXD, +	GPIO_FN_PORT245_SCIFA5_RTS, GPIO_FN_MFG2_IN2, GPIO_FN_PORT245_SCIFB_RTS, +	GPIO_FN_PORT245_MSIOF2_TXD, +	GPIO_FN_PORT246_SCIFA5_RXD, GPIO_FN_MFG1_OUT1, +	GPIO_FN_PORT246_SCIFB_RXD, GPIO_FN_TPU1TO0, +	GPIO_FN_PORT247_SCIFA5_TXD, GPIO_FN_MFG3_OUT2, +	GPIO_FN_PORT247_SCIFB_TXD, GPIO_FN_TPU3TO1, +	GPIO_FN_PORT248_SCIFA5_SCK, GPIO_FN_MFG2_OUT1, +	GPIO_FN_PORT248_SCIFB_SCK, GPIO_FN_TPU2TO0, +	GPIO_FN_PORT248_MSIOF2_TSCK, +	GPIO_FN_PORT249_IROUT, GPIO_FN_MFG4_IN1, GPIO_FN_PORT249_MSIOF2_TSYNC, +	GPIO_FN_SDHICLK0, GPIO_FN_TCK2_SWCLK_MC0, +	GPIO_FN_SDHICD0, +	GPIO_FN_SDHID0_0, GPIO_FN_TMS2_SWDIO_MC0, +	GPIO_FN_SDHID0_1, GPIO_FN_TDO2_SWO0_MC0, +	GPIO_FN_SDHID0_2, GPIO_FN_TDI2, +	GPIO_FN_SDHID0_3, GPIO_FN_RTCK2_SWO1_MC0, +	GPIO_FN_SDHICMD0, GPIO_FN_TRST2, +	GPIO_FN_SDHIWP0, GPIO_FN_EDBGREQ2, +	GPIO_FN_SDHICLK1, GPIO_FN_TCK3_SWCLK_MC1, +	GPIO_FN_SDHID1_0, GPIO_FN_M11_SLCD_SO2, GPIO_FN_TS_SPSYNC2, +	GPIO_FN_TMS3_SWDIO_MC1, +	GPIO_FN_SDHID1_1, GPIO_FN_M9_SLCD_A02, GPIO_FN_TS_SDAT2, +	GPIO_FN_TDO3_SWO0_MC1, +	GPIO_FN_SDHID1_2, GPIO_FN_M10_SLCD_CK2, GPIO_FN_TS_SDEN2, GPIO_FN_TDI3, +	GPIO_FN_SDHID1_3, GPIO_FN_M12_SLCD_CE2, GPIO_FN_TS_SCK2, +	GPIO_FN_RTCK3_SWO1_MC1, +	GPIO_FN_SDHICMD1, GPIO_FN_TRST3, +	GPIO_FN_RESETOUTS, +}; + +#endif /* __ASM_SH7377_H__ */ diff --git a/arch/arm/mach-shmobile/include/mach/system.h b/arch/arm/mach-shmobile/include/mach/system.h new file mode 100644 index 00000000000..76a687eeaa2 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/system.h @@ -0,0 +1,14 @@ +#ifndef __ASM_ARCH_SYSTEM_H +#define __ASM_ARCH_SYSTEM_H + +static inline void arch_idle(void) +{ +	cpu_do_idle(); +} + +static inline void arch_reset(char mode, const char *cmd) +{ +	cpu_reset(0); +} + +#endif diff --git a/arch/arm/mach-shmobile/include/mach/timex.h b/arch/arm/mach-shmobile/include/mach/timex.h new file mode 100644 index 00000000000..ae0d8d825c2 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/timex.h @@ -0,0 +1,6 @@ +#ifndef __ASM_MACH_TIMEX_H +#define __ASM_MACH_TIMEX_H + +#define CLOCK_TICK_RATE		1193180 /* unused i8253 PIT value */ + +#endif /* __ASM_MACH_TIMEX_H */ diff --git a/arch/arm/mach-shmobile/include/mach/uncompress.h b/arch/arm/mach-shmobile/include/mach/uncompress.h new file mode 100644 index 00000000000..0bd7556b138 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/uncompress.h @@ -0,0 +1,21 @@ +#ifndef __ASM_MACH_UNCOMPRESS_H +#define __ASM_MACH_UNCOMPRESS_H + +/* + * This does not append a newline + */ +static void putc(int c) +{ +} + +static inline void flush(void) +{ +} + +static void arch_decomp_setup(void) +{ +} + +#define arch_decomp_wdog() + +#endif /* __ASM_MACH_UNCOMPRESS_H */ diff --git a/arch/arm/mach-shmobile/include/mach/vmalloc.h b/arch/arm/mach-shmobile/include/mach/vmalloc.h new file mode 100644 index 00000000000..fb3c4f1ab25 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/vmalloc.h @@ -0,0 +1,6 @@ +#ifndef __ASM_MACH_VMALLOC_H +#define __ASM_MACH_VMALLOC_H + +#define VMALLOC_END       (PAGE_OFFSET + 0x24000000) + +#endif /* __ASM_MACH_VMALLOC_H */  |