Merge branch 'soc' into pinmux-base
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-shmobile / include / mach / sh73a0.h
index f1b85ffd640ea0d2475717490dc33a43f127495d..eb7a4320d487e1327dc6c961fa5bbae033f0770d 100644 (file)
@@ -94,8 +94,7 @@ enum {
        GPIO_PORT305, GPIO_PORT306, GPIO_PORT307, GPIO_PORT308, GPIO_PORT309,
 
        /* Table 25-1 (Function 0-7) */
-       GPIO_FN_VBUS_0 = 310,
-       GPIO_FN_GPI0,
+       GPIO_FN_GPI0 = 310,
        GPIO_FN_GPI1,
        GPIO_FN_GPI2,
        GPIO_FN_GPI3,
@@ -125,13 +124,13 @@ enum {
        GPIO_FN_XWUP,
        GPIO_FN_VACK,
        GPIO_FN_XTAL1L,
-       GPIO_FN_PORT49_IRDA_OUT, GPIO_FN_PORT49_IROUT,
+       GPIO_FN_PORT49_IROUT,
        GPIO_FN_BBIF2_TSYNC2, GPIO_FN_TPU2TO2,
 
        GPIO_FN_BBIF2_TSCK2, GPIO_FN_TPU2TO3,
        GPIO_FN_BBIF2_TXD2,
-       GPIO_FN_PORT53_IRDA_IN, GPIO_FN_TPU3TO3,
-       GPIO_FN_PORT54_IRDA_FIRSEL, GPIO_FN_TPU3TO2,
+       GPIO_FN_TPU3TO3,
+       GPIO_FN_TPU3TO2,
        GPIO_FN_TPU0TO0,
        GPIO_FN_A0, GPIO_FN_BS_,
        GPIO_FN_A12, GPIO_FN_TPU4TO2,
@@ -149,31 +148,10 @@ enum {
        GPIO_FN_A24, GPIO_FN_MSIOF0_RXD,
        GPIO_FN_A25, GPIO_FN_MSIOF0_SS2,
        GPIO_FN_A26,
-       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,
-       GPIO_FN_CS4_,
-       GPIO_FN_CS5A_, GPIO_FN_PORT91_RDWR,
-       GPIO_FN_CS5B_, GPIO_FN_FCE1_,
-       GPIO_FN_CS6B_, GPIO_FN_DACK0,
-       GPIO_FN_FCE0_, GPIO_FN_CS6A_,
+       GPIO_FN_FCE1_,
+       GPIO_FN_DACK0,
+       GPIO_FN_FCE0_,
        GPIO_FN_WAIT_, GPIO_FN_DREQ0,
-       GPIO_FN_RD__FSC,
-       GPIO_FN_WE0__FWE, GPIO_FN_RDWR_FWE,
-       GPIO_FN_WE1_,
        GPIO_FN_FRB,
        GPIO_FN_CKO,
        GPIO_FN_NBRSTOUT_,
@@ -219,7 +197,7 @@ enum {
        GPIO_FN_VIO2_CLK,
        GPIO_FN_VIO_FIELD, GPIO_FN_VIO2_FIELD,
        GPIO_FN_VIO_CKO,
-       GPIO_FN_A27, GPIO_FN_PORT149_RDWR, GPIO_FN_MFG0_IN1, \
+       GPIO_FN_A27, GPIO_FN_MFG0_IN1,
        GPIO_FN_MFG0_IN2,
        GPIO_FN_TS_SPSYNC3, GPIO_FN_MSIOF2_RSCK,
        GPIO_FN_TS_SDAT3, GPIO_FN_MSIOF2_RSYNC,
@@ -277,10 +255,10 @@ enum {
        GPIO_FN_MSIOF1_MCK1,
        GPIO_FN_MSIOF1_SS1, GPIO_FN_VIO2_FIELD2,
        GPIO_FN_MSIOF1_SS2, GPIO_FN_VIO2_HD2,
-       GPIO_FN_PORT241_IRDA_OUT, GPIO_FN_PORT241_IROUT, GPIO_FN_MFG4_OUT1, \
+       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_MFG4_IN2,
+       GPIO_FN_PORT243_VIO_CKO2,
        GPIO_FN_MFG2_IN1,
        GPIO_FN_MSIOF2R_RXD,
        GPIO_FN_MFG2_IN2,
@@ -466,6 +444,21 @@ enum {
 #define SH73A0_PINT0_IRQ(irq) ((irq) + 700)
 #define SH73A0_PINT1_IRQ(irq) ((irq) + 732)
 
+extern void sh73a0_init_delay(void);
+extern void sh73a0_init_irq(void);
+extern void sh73a0_init_irq_dt(void);
+extern void sh73a0_map_io(void);
+extern void sh73a0_earlytimer_init(void);
+extern void sh73a0_add_early_devices(void);
+extern void sh73a0_add_standard_devices(void);
+extern void sh73a0_add_standard_devices_dt(void);
+extern void sh73a0_clock_init(void);
+extern void sh73a0_pinmux_init(void);
+extern void sh73a0_pm_init(void);
+extern struct clk sh73a0_extal1_clk;
+extern struct clk sh73a0_extal2_clk;
+extern struct clk sh73a0_extcki_clk;
+extern struct clk sh73a0_extalr_clk;
 extern struct smp_operations sh73a0_smp_ops;
 
 #endif /* __ASM_SH73A0_H__ */