mirror of https://gitee.com/openkylin/linux.git
[ARM] mmp: update mfp setting
Update mfp setting for mmp2. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
parent
8ae84427bb
commit
7f39403c56
|
@ -9,6 +9,175 @@
|
|||
#define MFP_DRIVE_FAST (0x8 << 13)
|
||||
|
||||
/* GPIO */
|
||||
#define GPIO0_GPIO0 MFP_CFG(GPIO0, AF0)
|
||||
#define GPIO1_GPIO1 MFP_CFG(GPIO1, AF0)
|
||||
#define GPIO2_GPIO2 MFP_CFG(GPIO2, AF0)
|
||||
#define GPIO3_GPIO3 MFP_CFG(GPIO3, AF0)
|
||||
#define GPIO4_GPIO4 MFP_CFG(GPIO4, AF0)
|
||||
#define GPIO5_GPIO5 MFP_CFG(GPIO5, AF0)
|
||||
#define GPIO6_GPIO6 MFP_CFG(GPIO6, AF0)
|
||||
#define GPIO7_GPIO7 MFP_CFG(GPIO7, AF0)
|
||||
#define GPIO8_GPIO8 MFP_CFG(GPIO8, AF0)
|
||||
#define GPIO9_GPIO9 MFP_CFG(GPIO9, AF0)
|
||||
#define GPIO10_GPIO10 MFP_CFG(GPIO10, AF0)
|
||||
#define GPIO11_GPIO11 MFP_CFG(GPIO11, AF0)
|
||||
#define GPIO12_GPIO12 MFP_CFG(GPIO12, AF0)
|
||||
#define GPIO13_GPIO13 MFP_CFG(GPIO13, AF0)
|
||||
#define GPIO14_GPIO14 MFP_CFG(GPIO14, AF0)
|
||||
#define GPIO15_GPIO15 MFP_CFG(GPIO15, AF0)
|
||||
#define GPIO16_GPIO16 MFP_CFG(GPIO16, AF0)
|
||||
#define GPIO17_GPIO17 MFP_CFG(GPIO17, AF0)
|
||||
#define GPIO18_GPIO18 MFP_CFG(GPIO18, AF0)
|
||||
#define GPIO19_GPIO19 MFP_CFG(GPIO19, AF0)
|
||||
#define GPIO20_GPIO20 MFP_CFG(GPIO20, AF0)
|
||||
#define GPIO21_GPIO21 MFP_CFG(GPIO21, AF0)
|
||||
#define GPIO22_GPIO22 MFP_CFG(GPIO22, AF0)
|
||||
#define GPIO23_GPIO23 MFP_CFG(GPIO23, AF0)
|
||||
#define GPIO24_GPIO24 MFP_CFG(GPIO24, AF0)
|
||||
#define GPIO25_GPIO25 MFP_CFG(GPIO25, AF0)
|
||||
#define GPIO26_GPIO26 MFP_CFG(GPIO26, AF0)
|
||||
#define GPIO27_GPIO27 MFP_CFG(GPIO27, AF0)
|
||||
#define GPIO28_GPIO28 MFP_CFG(GPIO28, AF0)
|
||||
#define GPIO29_GPIO29 MFP_CFG(GPIO29, AF0)
|
||||
#define GPIO30_GPIO30 MFP_CFG(GPIO30, AF0)
|
||||
#define GPIO31_GPIO31 MFP_CFG(GPIO31, AF0)
|
||||
#define GPIO32_GPIO32 MFP_CFG(GPIO32, AF0)
|
||||
#define GPIO33_GPIO33 MFP_CFG(GPIO33, AF0)
|
||||
#define GPIO34_GPIO34 MFP_CFG(GPIO34, AF0)
|
||||
#define GPIO35_GPIO35 MFP_CFG(GPIO35, AF0)
|
||||
#define GPIO36_GPIO36 MFP_CFG(GPIO36, AF0)
|
||||
#define GPIO37_GPIO37 MFP_CFG(GPIO37, AF0)
|
||||
#define GPIO38_GPIO38 MFP_CFG(GPIO38, AF0)
|
||||
#define GPIO39_GPIO39 MFP_CFG(GPIO39, AF0)
|
||||
#define GPIO40_GPIO40 MFP_CFG(GPIO40, AF0)
|
||||
#define GPIO41_GPIO41 MFP_CFG(GPIO41, AF0)
|
||||
#define GPIO42_GPIO42 MFP_CFG(GPIO42, AF0)
|
||||
#define GPIO43_GPIO43 MFP_CFG(GPIO43, AF0)
|
||||
#define GPIO44_GPIO44 MFP_CFG(GPIO44, AF0)
|
||||
#define GPIO45_GPIO45 MFP_CFG(GPIO45, AF0)
|
||||
#define GPIO46_GPIO46 MFP_CFG(GPIO46, AF0)
|
||||
#define GPIO47_GPIO47 MFP_CFG(GPIO47, AF0)
|
||||
#define GPIO48_GPIO48 MFP_CFG(GPIO48, AF0)
|
||||
#define GPIO49_GPIO49 MFP_CFG(GPIO49, AF0)
|
||||
#define GPIO50_GPIO50 MFP_CFG(GPIO50, AF0)
|
||||
#define GPIO51_GPIO51 MFP_CFG(GPIO51, AF0)
|
||||
#define GPIO52_GPIO52 MFP_CFG(GPIO52, AF0)
|
||||
#define GPIO53_GPIO53 MFP_CFG(GPIO53, AF0)
|
||||
#define GPIO54_GPIO54 MFP_CFG(GPIO54, AF0)
|
||||
#define GPIO55_GPIO55 MFP_CFG(GPIO55, AF0)
|
||||
#define GPIO56_GPIO56 MFP_CFG(GPIO56, AF0)
|
||||
#define GPIO57_GPIO57 MFP_CFG(GPIO57, AF0)
|
||||
#define GPIO58_GPIO58 MFP_CFG(GPIO58, AF0)
|
||||
#define GPIO59_GPIO59 MFP_CFG(GPIO59, AF0)
|
||||
#define GPIO60_GPIO60 MFP_CFG(GPIO60, AF0)
|
||||
#define GPIO61_GPIO61 MFP_CFG(GPIO61, AF0)
|
||||
#define GPIO62_GPIO62 MFP_CFG(GPIO62, AF0)
|
||||
#define GPIO63_GPIO63 MFP_CFG(GPIO63, AF0)
|
||||
#define GPIO64_GPIO64 MFP_CFG(GPIO64, AF0)
|
||||
#define GPIO65_GPIO65 MFP_CFG(GPIO65, AF0)
|
||||
#define GPIO66_GPIO66 MFP_CFG(GPIO66, AF0)
|
||||
#define GPIO67_GPIO67 MFP_CFG(GPIO67, AF0)
|
||||
#define GPIO68_GPIO68 MFP_CFG(GPIO68, AF0)
|
||||
#define GPIO69_GPIO69 MFP_CFG(GPIO69, AF0)
|
||||
#define GPIO70_GPIO70 MFP_CFG(GPIO70, AF0)
|
||||
#define GPIO71_GPIO71 MFP_CFG(GPIO71, AF0)
|
||||
#define GPIO72_GPIO72 MFP_CFG(GPIO72, AF0)
|
||||
#define GPIO73_GPIO73 MFP_CFG(GPIO73, AF0)
|
||||
#define GPIO74_GPIO74 MFP_CFG(GPIO74, AF0)
|
||||
#define GPIO75_GPIO75 MFP_CFG(GPIO75, AF0)
|
||||
#define GPIO76_GPIO76 MFP_CFG(GPIO76, AF0)
|
||||
#define GPIO77_GPIO77 MFP_CFG(GPIO77, AF0)
|
||||
#define GPIO78_GPIO78 MFP_CFG(GPIO78, AF0)
|
||||
#define GPIO79_GPIO79 MFP_CFG(GPIO79, AF0)
|
||||
#define GPIO80_GPIO80 MFP_CFG(GPIO80, AF0)
|
||||
#define GPIO81_GPIO81 MFP_CFG(GPIO81, AF0)
|
||||
#define GPIO82_GPIO82 MFP_CFG(GPIO82, AF0)
|
||||
#define GPIO83_GPIO83 MFP_CFG(GPIO83, AF0)
|
||||
#define GPIO84_GPIO84 MFP_CFG(GPIO84, AF0)
|
||||
#define GPIO85_GPIO85 MFP_CFG(GPIO85, AF0)
|
||||
#define GPIO86_GPIO86 MFP_CFG(GPIO86, AF0)
|
||||
#define GPIO87_GPIO87 MFP_CFG(GPIO87, AF0)
|
||||
#define GPIO88_GPIO88 MFP_CFG(GPIO88, AF0)
|
||||
#define GPIO89_GPIO89 MFP_CFG(GPIO89, AF0)
|
||||
#define GPIO90_GPIO90 MFP_CFG(GPIO90, AF0)
|
||||
#define GPIO91_GPIO91 MFP_CFG(GPIO91, AF0)
|
||||
#define GPIO92_GPIO92 MFP_CFG(GPIO92, AF0)
|
||||
#define GPIO93_GPIO93 MFP_CFG(GPIO93, AF0)
|
||||
#define GPIO94_GPIO94 MFP_CFG(GPIO94, AF0)
|
||||
#define GPIO95_GPIO95 MFP_CFG(GPIO95, AF0)
|
||||
#define GPIO96_GPIO96 MFP_CFG(GPIO96, AF0)
|
||||
#define GPIO97_GPIO97 MFP_CFG(GPIO97, AF0)
|
||||
#define GPIO98_GPIO98 MFP_CFG(GPIO98, AF0)
|
||||
#define GPIO99_GPIO99 MFP_CFG(GPIO99, AF0)
|
||||
#define GPIO100_GPIO100 MFP_CFG(GPIO100, AF0)
|
||||
#define GPIO101_GPIO101 MFP_CFG(GPIO101, AF0)
|
||||
#define GPIO102_GPIO102 MFP_CFG(GPIO102, AF1)
|
||||
#define GPIO103_GPIO103 MFP_CFG(GPIO103, AF1)
|
||||
#define GPIO104_GPIO104 MFP_CFG(GPIO104, AF1)
|
||||
#define GPIO105_GPIO105 MFP_CFG(GPIO105, AF1)
|
||||
#define GPIO106_GPIO106 MFP_CFG(GPIO106, AF1)
|
||||
#define GPIO107_GPIO107 MFP_CFG(GPIO107, AF1)
|
||||
#define GPIO108_GPIO108 MFP_CFG(GPIO108, AF1)
|
||||
#define GPIO109_GPIO109 MFP_CFG(GPIO109, AF1)
|
||||
#define GPIO110_GPIO110 MFP_CFG(GPIO110, AF1)
|
||||
#define GPIO111_GPIO111 MFP_CFG(GPIO111, AF1)
|
||||
#define GPIO112_GPIO112 MFP_CFG(GPIO112, AF1)
|
||||
#define GPIO113_GPIO113 MFP_CFG(GPIO113, AF1)
|
||||
#define GPIO114_GPIO114 MFP_CFG(GPIO114, AF0)
|
||||
#define GPIO115_GPIO115 MFP_CFG(GPIO115, AF0)
|
||||
#define GPIO116_GPIO116 MFP_CFG(GPIO116, AF0)
|
||||
#define GPIO117_GPIO117 MFP_CFG(GPIO117, AF0)
|
||||
#define GPIO118_GPIO118 MFP_CFG(GPIO118, AF0)
|
||||
#define GPIO119_GPIO119 MFP_CFG(GPIO119, AF0)
|
||||
#define GPIO120_GPIO120 MFP_CFG(GPIO120, AF0)
|
||||
#define GPIO121_GPIO121 MFP_CFG(GPIO121, AF0)
|
||||
#define GPIO122_GPIO122 MFP_CFG(GPIO122, AF0)
|
||||
#define GPIO123_GPIO123 MFP_CFG(GPIO123, AF0)
|
||||
#define GPIO124_GPIO124 MFP_CFG(GPIO124, AF0)
|
||||
#define GPIO125_GPIO125 MFP_CFG(GPIO125, AF0)
|
||||
#define GPIO126_GPIO126 MFP_CFG(GPIO126, AF0)
|
||||
#define GPIO127_GPIO127 MFP_CFG(GPIO127, AF0)
|
||||
#define GPIO128_GPIO128 MFP_CFG(GPIO128, AF0)
|
||||
#define GPIO129_GPIO129 MFP_CFG(GPIO129, AF0)
|
||||
#define GPIO130_GPIO130 MFP_CFG(GPIO130, AF0)
|
||||
#define GPIO131_GPIO131 MFP_CFG(GPIO131, AF0)
|
||||
#define GPIO132_GPIO132 MFP_CFG(GPIO132, AF0)
|
||||
#define GPIO133_GPIO133 MFP_CFG(GPIO133, AF0)
|
||||
#define GPIO134_GPIO134 MFP_CFG(GPIO134, AF0)
|
||||
#define GPIO135_GPIO135 MFP_CFG(GPIO135, AF0)
|
||||
#define GPIO136_GPIO136 MFP_CFG(GPIO136, AF0)
|
||||
#define GPIO137_GPIO137 MFP_CFG(GPIO137, AF0)
|
||||
#define GPIO138_GPIO138 MFP_CFG(GPIO138, AF0)
|
||||
#define GPIO139_GPIO139 MFP_CFG(GPIO139, AF0)
|
||||
#define GPIO140_GPIO140 MFP_CFG(GPIO140, AF0)
|
||||
#define GPIO141_GPIO141 MFP_CFG(GPIO141, AF0)
|
||||
#define GPIO142_GPIO142 MFP_CFG(GPIO142, AF1)
|
||||
#define GPIO143_GPIO143 MFP_CFG(GPIO143, AF1)
|
||||
#define GPIO144_GPIO144 MFP_CFG(GPIO144, AF1)
|
||||
#define GPIO145_GPIO145 MFP_CFG(GPIO145, AF1)
|
||||
#define GPIO146_GPIO146 MFP_CFG(GPIO146, AF1)
|
||||
#define GPIO147_GPIO147 MFP_CFG(GPIO147, AF1)
|
||||
#define GPIO148_GPIO148 MFP_CFG(GPIO148, AF1)
|
||||
#define GPIO149_GPIO149 MFP_CFG(GPIO149, AF1)
|
||||
#define GPIO150_GPIO150 MFP_CFG(GPIO150, AF1)
|
||||
#define GPIO151_GPIO151 MFP_CFG(GPIO151, AF1)
|
||||
#define GPIO152_GPIO152 MFP_CFG(GPIO152, AF1)
|
||||
#define GPIO153_GPIO153 MFP_CFG(GPIO153, AF1)
|
||||
#define GPIO154_GPIO154 MFP_CFG(GPIO154, AF1)
|
||||
#define GPIO155_GPIO155 MFP_CFG(GPIO155, AF1)
|
||||
#define GPIO156_GPIO156 MFP_CFG(GPIO156, AF1)
|
||||
#define GPIO157_GPIO157 MFP_CFG(GPIO157, AF1)
|
||||
#define GPIO158_GPIO158 MFP_CFG(GPIO158, AF1)
|
||||
#define GPIO159_GPIO159 MFP_CFG(GPIO159, AF1)
|
||||
#define GPIO160_GPIO160 MFP_CFG(GPIO160, AF1)
|
||||
#define GPIO161_GPIO161 MFP_CFG(GPIO161, AF1)
|
||||
#define GPIO162_GPIO162 MFP_CFG(GPIO162, AF1)
|
||||
#define GPIO163_GPIO163 MFP_CFG(GPIO163, AF1)
|
||||
#define GPIO164_GPIO164 MFP_CFG(GPIO164, AF1)
|
||||
#define GPIO165_GPIO165 MFP_CFG(GPIO165, AF1)
|
||||
#define GPIO166_GPIO166 MFP_CFG(GPIO166, AF1)
|
||||
#define GPIO167_GPIO167 MFP_CFG(GPIO167, AF1)
|
||||
#define GPIO168_GPIO168 MFP_CFG(GPIO168, AF1)
|
||||
|
||||
/* DFI */
|
||||
#define GPIO108_DFI_D15 MFP_CFG(GPIO108, AF0)
|
||||
|
@ -47,7 +216,6 @@
|
|||
|
||||
/* Ethernet */
|
||||
#define GPIO155_SM_ADVMUX MFP_CFG(GPIO155, AF2)
|
||||
#define GPIO155_GPIO155 MFP_CFG(GPIO155, AF1)
|
||||
|
||||
/* UART1 */
|
||||
#define GPIO45_UART1_RXD MFP_CFG(GPIO45, AF1)
|
||||
|
@ -159,6 +327,8 @@
|
|||
#define GPIO44_TWSI2_SDA MFP_CFG_DRV(GPIO44, AF1, SLOW)
|
||||
#define GPIO71_TWSI3_SCL MFP_CFG_DRV(GPIO71, AF1, SLOW)
|
||||
#define GPIO72_TWSI3_SDA MFP_CFG_DRV(GPIO72, AF1, SLOW)
|
||||
#define TWSI4_SCL MFP_CFG_DRV(TWSI4_SCL, AF0, SLOW)
|
||||
#define TWSI4_SDA MFP_CFG_DRV(TWSI4_SDA, AF0, SLOW)
|
||||
#define GPIO99_TWSI5_SCL MFP_CFG_DRV(GPIO99, AF4, SLOW)
|
||||
#define GPIO100_TWSI5_SDA MFP_CFG_DRV(GPIO100, AF4, SLOW)
|
||||
#define GPIO97_TWSI6_SCL MFP_CFG_DRV(GPIO97, AF2, SLOW)
|
||||
|
@ -218,21 +388,6 @@
|
|||
#define GPIO69_CAM_MCLK MFP_CFG_DRV(GPIO69, AF1, FAST)
|
||||
#define GPIO70_CAM_PCLK MFP_CFG_DRV(GPIO70, AF1, FAST)
|
||||
|
||||
/* Wifi */
|
||||
#define GPIO45_GPIO45 MFP_CFG(GPIO45, AF0)
|
||||
#define GPIO46_GPIO46 MFP_CFG(GPIO46, AF0)
|
||||
#define GPIO21_GPIO21 MFP_CFG(GPIO21, AF0)
|
||||
#define GPIO22_GPIO22 MFP_CFG(GPIO22, AF0)
|
||||
#define GPIO55_GPIO55 MFP_CFG(GPIO55, AF0)
|
||||
#define GPIO56_GPIO56 MFP_CFG(GPIO56, AF0)
|
||||
#define GPIO57_GPIO57 MFP_CFG(GPIO57, AF0)
|
||||
#define GPIO58_GPIO58 MFP_CFG(GPIO58, AF0)
|
||||
|
||||
/* Codec*/
|
||||
#define GPIO23_GPIO23 MFP_CFG(GPIO23, AF0)
|
||||
|
||||
#define GPIO101_GPIO101 MFP_CFG(GPIO101, AF0)
|
||||
|
||||
/* PMIC */
|
||||
#define PMIC_PMIC_INT MFP_CFG(PMIC_INT, AF0)
|
||||
|
||||
|
|
|
@ -34,7 +34,50 @@
|
|||
#define APMASK(i) (GPIO_REGS_VIRT + BANK_OFF(i) + 0x9c)
|
||||
|
||||
static struct mfp_addr_map mmp2_addr_map[] __initdata = {
|
||||
|
||||
MFP_ADDR_X(GPIO0, GPIO58, 0x54),
|
||||
MFP_ADDR_X(GPIO59, GPIO73, 0x280),
|
||||
MFP_ADDR_X(GPIO74, GPIO101, 0x170),
|
||||
|
||||
MFP_ADDR(GPIO102, 0x0),
|
||||
MFP_ADDR(GPIO103, 0x4),
|
||||
MFP_ADDR(GPIO104, 0x1fc),
|
||||
MFP_ADDR(GPIO105, 0x1f8),
|
||||
MFP_ADDR(GPIO106, 0x1f4),
|
||||
MFP_ADDR(GPIO107, 0x1f0),
|
||||
MFP_ADDR(GPIO108, 0x21c),
|
||||
MFP_ADDR(GPIO109, 0x218),
|
||||
MFP_ADDR(GPIO110, 0x214),
|
||||
MFP_ADDR(GPIO111, 0x200),
|
||||
MFP_ADDR(GPIO112, 0x244),
|
||||
MFP_ADDR(GPIO113, 0x25c),
|
||||
MFP_ADDR(GPIO114, 0x164),
|
||||
MFP_ADDR_X(GPIO115, GPIO122, 0x260),
|
||||
|
||||
MFP_ADDR(GPIO123, 0x148),
|
||||
MFP_ADDR_X(GPIO124, GPIO141, 0xc),
|
||||
|
||||
MFP_ADDR(GPIO142, 0x8),
|
||||
MFP_ADDR_X(GPIO143, GPIO151, 0x220),
|
||||
MFP_ADDR_X(GPIO152, GPIO153, 0x248),
|
||||
MFP_ADDR_X(GPIO154, GPIO155, 0x254),
|
||||
MFP_ADDR_X(GPIO156, GPIO159, 0x14c),
|
||||
|
||||
MFP_ADDR(GPIO160, 0x250),
|
||||
MFP_ADDR(GPIO161, 0x210),
|
||||
MFP_ADDR(GPIO162, 0x20c),
|
||||
MFP_ADDR(GPIO163, 0x208),
|
||||
MFP_ADDR(GPIO164, 0x204),
|
||||
MFP_ADDR(GPIO165, 0x1ec),
|
||||
MFP_ADDR(GPIO166, 0x1e8),
|
||||
MFP_ADDR(GPIO167, 0x1e4),
|
||||
MFP_ADDR(GPIO168, 0x1e0),
|
||||
|
||||
MFP_ADDR_X(TWSI1_SCL, TWSI1_SDA, 0x140),
|
||||
MFP_ADDR_X(TWSI4_SCL, TWSI4_SDA, 0x2bc),
|
||||
|
||||
MFP_ADDR(PMIC_INT, 0x2c4),
|
||||
MFP_ADDR(CLK_REQ, 0x160),
|
||||
|
||||
MFP_ADDR_END,
|
||||
};
|
||||
|
|
|
@ -316,6 +316,13 @@ enum {
|
|||
MFP_PIN_PMIC_INT,
|
||||
MFP_PIN_RDY,
|
||||
|
||||
/* additional pins on MMP2 */
|
||||
MFP_PIN_TWSI1_SCL,
|
||||
MFP_PIN_TWSI1_SDA,
|
||||
MFP_PIN_TWSI4_SCL,
|
||||
MFP_PIN_TWSI4_SDA,
|
||||
MFP_PIN_CLK_REQ,
|
||||
|
||||
MFP_PIN_MAX,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue