lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202309231601.Uu6qcRnU-lkp@intel.com>
Date:   Sat, 23 Sep 2023 16:38:03 +0800
From:   kernel test robot <lkp@...el.com>
To:     Thomas Zimmermann <tzimmermann@...e.de>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Sam Ravnborg <sam@...nborg.org>,
        Daniel Thompson <daniel.thompson@...aro.org>
Subject: arch/sh/boards/mach-ecovec24/setup.c:1223:37: error: 'struct
 gpio_backlight_platform_data' has no member named 'fbdev'; did you mean
 'dev'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d90b0276af8f25a0b8ae081a30d1b2a61263393b
commit: ed369def91c1579a34cd6f9494e4614745430322 backlight/gpio_backlight: Rename field 'fbdev' to 'dev'
date:   3 months ago
config: sh-ecovec24_defconfig (https://download.01.org/0day-ci/archive/20230923/202309231601.Uu6qcRnU-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230923/202309231601.Uu6qcRnU-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309231601.Uu6qcRnU-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/sh/boards/mach-ecovec24/setup.c:622:27: warning: initialized field overwritten [-Woverride-init]
     622 |         .type           = "tsc2007",
         |                           ^~~~~~~~~
   arch/sh/boards/mach-ecovec24/setup.c:622:27: note: (near initialization for 'ts_i2c_clients.type')
   arch/sh/boards/mach-ecovec24/setup.c: In function 'arch_setup':
>> arch/sh/boards/mach-ecovec24/setup.c:1223:37: error: 'struct gpio_backlight_platform_data' has no member named 'fbdev'; did you mean 'dev'?
    1223 |                 gpio_backlight_data.fbdev = NULL;
         |                                     ^~~~~
         |                                     dev


vim +1223 arch/sh/boards/mach-ecovec24/setup.c

eb0cd9e88c6a656 Magnus Damm           2009-10-30  1101  
4907d57f76dc1d6 Kuninori Morimoto     2009-09-10  1102  static int __init arch_setup(void)
4138b74066cc33e Kuninori Morimoto     2009-08-19  1103  {
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1104  	struct clk *clk;
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1105  	bool cn12_enabled = false;
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1106  
eb0cd9e88c6a656 Magnus Damm           2009-10-30  1107  	/* register board specific self-refresh code */
2839bd61f671d3d Magnus Damm           2010-02-25  1108  	sh_mobile_register_self_refresh(SUSP_SH_STANDBY | SUSP_SH_SF |
2839bd61f671d3d Magnus Damm           2010-02-25  1109  					SUSP_SH_RSTANDBY,
eb0cd9e88c6a656 Magnus Damm           2009-10-30  1110  					&ecovec24_sdram_enter_start,
eb0cd9e88c6a656 Magnus Damm           2009-10-30  1111  					&ecovec24_sdram_enter_end,
eb0cd9e88c6a656 Magnus Damm           2009-10-30  1112  					&ecovec24_sdram_leave_start,
eb0cd9e88c6a656 Magnus Damm           2009-10-30  1113  					&ecovec24_sdram_leave_end);
eb0cd9e88c6a656 Magnus Damm           2009-10-30  1114  
f78bab30707e043 Magnus Damm           2009-10-07  1115  	/* enable STATUS0, STATUS2 and PDSTATUS */
f78bab30707e043 Magnus Damm           2009-10-07  1116  	gpio_request(GPIO_FN_STATUS0, NULL);
f78bab30707e043 Magnus Damm           2009-10-07  1117  	gpio_request(GPIO_FN_STATUS2, NULL);
f78bab30707e043 Magnus Damm           2009-10-07  1118  	gpio_request(GPIO_FN_PDSTATUS, NULL);
f78bab30707e043 Magnus Damm           2009-10-07  1119  
4138b74066cc33e Kuninori Morimoto     2009-08-19  1120  	/* enable SCIFA0 */
4138b74066cc33e Kuninori Morimoto     2009-08-19  1121  	gpio_request(GPIO_FN_SCIF0_TXD, NULL);
4138b74066cc33e Kuninori Morimoto     2009-08-19  1122  	gpio_request(GPIO_FN_SCIF0_RXD, NULL);
4138b74066cc33e Kuninori Morimoto     2009-08-19  1123  
4138b74066cc33e Kuninori Morimoto     2009-08-19  1124  	/* enable debug LED */
4138b74066cc33e Kuninori Morimoto     2009-08-19  1125  	gpio_request(GPIO_PTG0, NULL);
4138b74066cc33e Kuninori Morimoto     2009-08-19  1126  	gpio_request(GPIO_PTG1, NULL);
4138b74066cc33e Kuninori Morimoto     2009-08-19  1127  	gpio_request(GPIO_PTG2, NULL);
4138b74066cc33e Kuninori Morimoto     2009-08-19  1128  	gpio_request(GPIO_PTG3, NULL);
b7056bc1943ec85 Kuninori Morimoto     2009-08-26  1129  	gpio_direction_output(GPIO_PTG0, 0);
b7056bc1943ec85 Kuninori Morimoto     2009-08-26  1130  	gpio_direction_output(GPIO_PTG1, 0);
b7056bc1943ec85 Kuninori Morimoto     2009-08-26  1131  	gpio_direction_output(GPIO_PTG2, 0);
b7056bc1943ec85 Kuninori Morimoto     2009-08-26  1132  	gpio_direction_output(GPIO_PTG3, 0);
9d56dd3b083a3be Paul Mundt            2010-01-26  1133  	__raw_writew((__raw_readw(PORT_HIZA) & ~(0x1 << 1)) , PORT_HIZA);
4138b74066cc33e Kuninori Morimoto     2009-08-19  1134  
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1135  	/* enable SH-Eth */
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1136  	gpio_request(GPIO_PTA1, NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1137  	gpio_direction_output(GPIO_PTA1, 1);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1138  	mdelay(20);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1139  
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1140  	gpio_request(GPIO_FN_RMII_RXD0,    NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1141  	gpio_request(GPIO_FN_RMII_RXD1,    NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1142  	gpio_request(GPIO_FN_RMII_TXD0,    NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1143  	gpio_request(GPIO_FN_RMII_TXD1,    NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1144  	gpio_request(GPIO_FN_RMII_REF_CLK, NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1145  	gpio_request(GPIO_FN_RMII_TX_EN,   NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1146  	gpio_request(GPIO_FN_RMII_RX_ER,   NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1147  	gpio_request(GPIO_FN_RMII_CRS_DV,  NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1148  	gpio_request(GPIO_FN_MDIO,         NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1149  	gpio_request(GPIO_FN_MDC,          NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1150  	gpio_request(GPIO_FN_LNKSTA,       NULL);
35a35408914bcd2 Kuninori Morimoto     2009-08-26  1151  
907050a33d3b6a9 Kuninori Morimoto     2009-08-26  1152  	/* enable USB */
9d56dd3b083a3be Paul Mundt            2010-01-26  1153  	__raw_writew(0x0000, 0xA4D80000);
9d56dd3b083a3be Paul Mundt            2010-01-26  1154  	__raw_writew(0x0000, 0xA4D90000);
907050a33d3b6a9 Kuninori Morimoto     2009-08-26  1155  	gpio_request(GPIO_PTB3,  NULL);
907050a33d3b6a9 Kuninori Morimoto     2009-08-26  1156  	gpio_request(GPIO_PTB4,  NULL);
907050a33d3b6a9 Kuninori Morimoto     2009-08-26  1157  	gpio_request(GPIO_PTB5,  NULL);
907050a33d3b6a9 Kuninori Morimoto     2009-08-26  1158  	gpio_direction_input(GPIO_PTB3);
907050a33d3b6a9 Kuninori Morimoto     2009-08-26  1159  	gpio_direction_output(GPIO_PTB4, 0);
907050a33d3b6a9 Kuninori Morimoto     2009-08-26  1160  	gpio_direction_output(GPIO_PTB5, 0);
9d56dd3b083a3be Paul Mundt            2010-01-26  1161  	__raw_writew(0x0600, 0xa40501d4);
9d56dd3b083a3be Paul Mundt            2010-01-26  1162  	__raw_writew(0x0600, 0xa4050192);
907050a33d3b6a9 Kuninori Morimoto     2009-08-26  1163  
3714a9a026bba09 Kuninori Morimoto     2009-10-28  1164  	if (gpio_get_value(GPIO_PTB3)) {
3714a9a026bba09 Kuninori Morimoto     2009-10-28  1165  		printk(KERN_INFO "USB1 function is selected\n");
3714a9a026bba09 Kuninori Morimoto     2009-10-28  1166  		usb1_common_device.name = "r8a66597_udc";
3714a9a026bba09 Kuninori Morimoto     2009-10-28  1167  	} else {
3714a9a026bba09 Kuninori Morimoto     2009-10-28  1168  		printk(KERN_INFO "USB1 host is selected\n");
3714a9a026bba09 Kuninori Morimoto     2009-10-28  1169  		usb1_common_device.name = "r8a66597_hcd";
3714a9a026bba09 Kuninori Morimoto     2009-10-28  1170  	}
3714a9a026bba09 Kuninori Morimoto     2009-10-28  1171  
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1172  	/* enable LCDC */
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1173  	gpio_request(GPIO_FN_LCDD23,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1174  	gpio_request(GPIO_FN_LCDD22,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1175  	gpio_request(GPIO_FN_LCDD21,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1176  	gpio_request(GPIO_FN_LCDD20,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1177  	gpio_request(GPIO_FN_LCDD19,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1178  	gpio_request(GPIO_FN_LCDD18,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1179  	gpio_request(GPIO_FN_LCDD17,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1180  	gpio_request(GPIO_FN_LCDD16,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1181  	gpio_request(GPIO_FN_LCDD15,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1182  	gpio_request(GPIO_FN_LCDD14,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1183  	gpio_request(GPIO_FN_LCDD13,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1184  	gpio_request(GPIO_FN_LCDD12,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1185  	gpio_request(GPIO_FN_LCDD11,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1186  	gpio_request(GPIO_FN_LCDD10,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1187  	gpio_request(GPIO_FN_LCDD9,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1188  	gpio_request(GPIO_FN_LCDD8,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1189  	gpio_request(GPIO_FN_LCDD7,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1190  	gpio_request(GPIO_FN_LCDD6,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1191  	gpio_request(GPIO_FN_LCDD5,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1192  	gpio_request(GPIO_FN_LCDD4,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1193  	gpio_request(GPIO_FN_LCDD3,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1194  	gpio_request(GPIO_FN_LCDD2,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1195  	gpio_request(GPIO_FN_LCDD1,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1196  	gpio_request(GPIO_FN_LCDD0,    NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1197  	gpio_request(GPIO_FN_LCDDISP,  NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1198  	gpio_request(GPIO_FN_LCDHSYN,  NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1199  	gpio_request(GPIO_FN_LCDDCK,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1200  	gpio_request(GPIO_FN_LCDVSYN,  NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1201  	gpio_request(GPIO_FN_LCDDON,   NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1202  	gpio_request(GPIO_FN_LCDLCLK,  NULL);
9d56dd3b083a3be Paul Mundt            2010-01-26  1203  	__raw_writew((__raw_readw(PORT_HIZA) & ~0x0001), PORT_HIZA);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1204  
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1205  	gpio_request(GPIO_PTE6, NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1206  	gpio_request(GPIO_PTU1, NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1207  	gpio_request(GPIO_PTA2, NULL);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1208  	gpio_direction_input(GPIO_PTE6);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1209  	gpio_direction_output(GPIO_PTU1, 0);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1210  	gpio_direction_output(GPIO_PTA2, 0);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1211  
82b33221784850c Kuninori Morimoto     2009-12-02  1212  	/* I/O buffer drive ability is high */
9d56dd3b083a3be Paul Mundt            2010-01-26  1213  	__raw_writew((__raw_readw(IODRIVEA) & ~0x00c0) | 0x0080 , IODRIVEA);
ea15edb292197aa Kuninori Morimoto     2009-08-26  1214  
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1215  	if (gpio_get_value(GPIO_PTE6)) {
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1216  		/* DVI */
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1217  		lcdc_info.clock_source			= LCDC_CLK_EXTERNAL;
44432407d9f5e4b Guennadi Liakhovetski 2010-09-03  1218  		lcdc_info.ch[0].clock_divider		= 1;
93ff259846a774f Laurent Pinchart      2011-11-29  1219  		lcdc_info.ch[0].lcd_modes		= ecovec_dvi_modes;
93ff259846a774f Laurent Pinchart      2011-11-29  1220  		lcdc_info.ch[0].num_modes		= ARRAY_SIZE(ecovec_dvi_modes);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1221  
fe79f919f47eabf Laurent Pinchart      2013-07-04  1222  		/* No backlight */
fe79f919f47eabf Laurent Pinchart      2013-07-04 @1223  		gpio_backlight_data.fbdev = NULL;
fe79f919f47eabf Laurent Pinchart      2013-07-04  1224  
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1225  		gpio_set_value(GPIO_PTA2, 1);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1226  		gpio_set_value(GPIO_PTU1, 1);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1227  	} else {
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1228  		/* Panel */
ea15edb292197aa Kuninori Morimoto     2009-08-26  1229  		lcdc_info.clock_source			= LCDC_CLK_PERIPHERAL;
44432407d9f5e4b Guennadi Liakhovetski 2010-09-03  1230  		lcdc_info.ch[0].clock_divider		= 2;
93ff259846a774f Laurent Pinchart      2011-11-29  1231  		lcdc_info.ch[0].lcd_modes		= ecovec_lcd_modes;
93ff259846a774f Laurent Pinchart      2011-11-29  1232  		lcdc_info.ch[0].num_modes		= ARRAY_SIZE(ecovec_lcd_modes);
ea15edb292197aa Kuninori Morimoto     2009-08-26  1233  
ea15edb292197aa Kuninori Morimoto     2009-08-26  1234  		/* FIXME
ea15edb292197aa Kuninori Morimoto     2009-08-26  1235  		 *
ea15edb292197aa Kuninori Morimoto     2009-08-26  1236  		 * LCDDON control is needed for Panel,
ea15edb292197aa Kuninori Morimoto     2009-08-26  1237  		 * but current sh_mobile_lcdc driver doesn't control it.
ea15edb292197aa Kuninori Morimoto     2009-08-26  1238  		 * It is temporary correspondence
ea15edb292197aa Kuninori Morimoto     2009-08-26  1239  		 */
ea15edb292197aa Kuninori Morimoto     2009-08-26  1240  		gpio_request(GPIO_PTF4, NULL);
ea15edb292197aa Kuninori Morimoto     2009-08-26  1241  		gpio_direction_output(GPIO_PTF4, 1);
8810e0553fec6ff Kuninori Morimoto     2009-09-28  1242  
8810e0553fec6ff Kuninori Morimoto     2009-09-28  1243  		/* enable TouchScreen */
8810e0553fec6ff Kuninori Morimoto     2009-09-28  1244  		i2c_register_board_info(0, &ts_i2c_clients, 1);
fcb8918fd242f39 Thomas Gleixner       2011-03-24  1245  		irq_set_irq_type(IRQ0, IRQ_TYPE_LEVEL_LOW);
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1246  	}
fa3ba51bcf2351d Kuninori Morimoto     2009-08-26  1247  
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1248  	/* enable CEU0 */
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1249  	gpio_request(GPIO_FN_VIO0_D15, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1250  	gpio_request(GPIO_FN_VIO0_D14, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1251  	gpio_request(GPIO_FN_VIO0_D13, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1252  	gpio_request(GPIO_FN_VIO0_D12, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1253  	gpio_request(GPIO_FN_VIO0_D11, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1254  	gpio_request(GPIO_FN_VIO0_D10, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1255  	gpio_request(GPIO_FN_VIO0_D9,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1256  	gpio_request(GPIO_FN_VIO0_D8,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1257  	gpio_request(GPIO_FN_VIO0_D7,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1258  	gpio_request(GPIO_FN_VIO0_D6,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1259  	gpio_request(GPIO_FN_VIO0_D5,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1260  	gpio_request(GPIO_FN_VIO0_D4,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1261  	gpio_request(GPIO_FN_VIO0_D3,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1262  	gpio_request(GPIO_FN_VIO0_D2,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1263  	gpio_request(GPIO_FN_VIO0_D1,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1264  	gpio_request(GPIO_FN_VIO0_D0,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1265  	gpio_request(GPIO_FN_VIO0_VD,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1266  	gpio_request(GPIO_FN_VIO0_CLK, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1267  	gpio_request(GPIO_FN_VIO0_FLD, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1268  	gpio_request(GPIO_FN_VIO0_HD,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1269  
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1270  	/* enable CEU1 */
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1271  	gpio_request(GPIO_FN_VIO1_D7,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1272  	gpio_request(GPIO_FN_VIO1_D6,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1273  	gpio_request(GPIO_FN_VIO1_D5,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1274  	gpio_request(GPIO_FN_VIO1_D4,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1275  	gpio_request(GPIO_FN_VIO1_D3,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1276  	gpio_request(GPIO_FN_VIO1_D2,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1277  	gpio_request(GPIO_FN_VIO1_D1,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1278  	gpio_request(GPIO_FN_VIO1_D0,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1279  	gpio_request(GPIO_FN_VIO1_FLD, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1280  	gpio_request(GPIO_FN_VIO1_HD,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1281  	gpio_request(GPIO_FN_VIO1_VD,  NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1282  	gpio_request(GPIO_FN_VIO1_CLK, NULL);
2153ad3294e3e1e Kuninori Morimoto     2009-08-26  1283  
e9103e74907d748 Kuninori Morimoto     2009-09-14  1284  	/* enable KEYSC */
e9103e74907d748 Kuninori Morimoto     2009-09-14  1285  	gpio_request(GPIO_FN_KEYOUT5_IN5, NULL);
e9103e74907d748 Kuninori Morimoto     2009-09-14  1286  	gpio_request(GPIO_FN_KEYOUT4_IN6, NULL);
e9103e74907d748 Kuninori Morimoto     2009-09-14  1287  	gpio_request(GPIO_FN_KEYOUT3,     NULL);
e9103e74907d748 Kuninori Morimoto     2009-09-14  1288  	gpio_request(GPIO_FN_KEYOUT2,     NULL);
e9103e74907d748 Kuninori Morimoto     2009-09-14  1289  	gpio_request(GPIO_FN_KEYOUT1,     NULL);
e9103e74907d748 Kuninori Morimoto     2009-09-14  1290  	gpio_request(GPIO_FN_KEYOUT0,     NULL);
e9103e74907d748 Kuninori Morimoto     2009-09-14  1291  	gpio_request(GPIO_FN_KEYIN0,      NULL);
e9103e74907d748 Kuninori Morimoto     2009-09-14  1292  
064a16dc41be879 Kuninori Morimoto     2009-09-16  1293  	/* enable user debug switch */
064a16dc41be879 Kuninori Morimoto     2009-09-16  1294  	gpio_request(GPIO_PTR0, NULL);
064a16dc41be879 Kuninori Morimoto     2009-09-16  1295  	gpio_request(GPIO_PTR4, NULL);
064a16dc41be879 Kuninori Morimoto     2009-09-16  1296  	gpio_request(GPIO_PTR5, NULL);
064a16dc41be879 Kuninori Morimoto     2009-09-16  1297  	gpio_request(GPIO_PTR6, NULL);
064a16dc41be879 Kuninori Morimoto     2009-09-16  1298  	gpio_direction_input(GPIO_PTR0);
064a16dc41be879 Kuninori Morimoto     2009-09-16  1299  	gpio_direction_input(GPIO_PTR4);
064a16dc41be879 Kuninori Morimoto     2009-09-16  1300  	gpio_direction_input(GPIO_PTR5);
064a16dc41be879 Kuninori Morimoto     2009-09-16  1301  	gpio_direction_input(GPIO_PTR6);
064a16dc41be879 Kuninori Morimoto     2009-09-16  1302  
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1303  	/* SD-card slot CN11 */
5744c88111f076c Guennadi Liakhovetski 2011-04-15  1304  #if defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
1ce4da7a502ea63 Magnus Damm           2009-12-07  1305  	/* enable SDHI0 on CN11 (needs DS2.4 set to ON) */
96987d96f0058d8 Kuninori Morimoto     2009-10-02  1306  	gpio_request(GPIO_FN_SDHI0WP,  NULL);
96987d96f0058d8 Kuninori Morimoto     2009-10-02  1307  	gpio_request(GPIO_FN_SDHI0CMD, NULL);
96987d96f0058d8 Kuninori Morimoto     2009-10-02  1308  	gpio_request(GPIO_FN_SDHI0CLK, NULL);
96987d96f0058d8 Kuninori Morimoto     2009-10-02  1309  	gpio_request(GPIO_FN_SDHI0D3,  NULL);
96987d96f0058d8 Kuninori Morimoto     2009-10-02  1310  	gpio_request(GPIO_FN_SDHI0D2,  NULL);
96987d96f0058d8 Kuninori Morimoto     2009-10-02  1311  	gpio_request(GPIO_FN_SDHI0D1,  NULL);
96987d96f0058d8 Kuninori Morimoto     2009-10-02  1312  	gpio_request(GPIO_FN_SDHI0D0,  NULL);
1ce4da7a502ea63 Magnus Damm           2009-12-07  1313  #else
1ce4da7a502ea63 Magnus Damm           2009-12-07  1314  	/* enable MSIOF0 on CN11 (needs DS2.4 set to OFF) */
1ce4da7a502ea63 Magnus Damm           2009-12-07  1315  	gpio_request(GPIO_FN_MSIOF0_TXD, NULL);
1ce4da7a502ea63 Magnus Damm           2009-12-07  1316  	gpio_request(GPIO_FN_MSIOF0_RXD, NULL);
1ce4da7a502ea63 Magnus Damm           2009-12-07  1317  	gpio_request(GPIO_FN_MSIOF0_TSCK, NULL);
1ce4da7a502ea63 Magnus Damm           2009-12-07  1318  	gpio_request(GPIO_PTB6, NULL); /* 3.3V power control */
1ce4da7a502ea63 Magnus Damm           2009-12-07  1319  	gpio_direction_output(GPIO_PTB6, 0); /* disable power by default */
1ce4da7a502ea63 Magnus Damm           2009-12-07  1320  
5716fb9bd9c6d3e Linus Walleij         2018-12-02  1321  	gpiod_add_lookup_table(&mmc_spi_gpio_table);
9fda6693335cd51 Geert Uytterhoeven    2019-04-03  1322  	gpiod_add_lookup_table(&msiof_gpio_table);
1ce4da7a502ea63 Magnus Damm           2009-12-07  1323  	spi_register_board_info(spi_bus, ARRAY_SIZE(spi_bus));
1ce4da7a502ea63 Magnus Damm           2009-12-07  1324  #endif
96987d96f0058d8 Kuninori Morimoto     2009-10-02  1325  
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1326  	/* MMC/SD-card slot CN12 */
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1327  #if defined(CONFIG_MMC_SH_MMCIF) || defined(CONFIG_MMC_SH_MMCIF_MODULE)
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1328  	/* enable MMCIF (needs DS2.6,7 set to OFF,ON) */
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1329  	gpio_request(GPIO_FN_MMC_D7, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1330  	gpio_request(GPIO_FN_MMC_D6, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1331  	gpio_request(GPIO_FN_MMC_D5, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1332  	gpio_request(GPIO_FN_MMC_D4, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1333  	gpio_request(GPIO_FN_MMC_D3, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1334  	gpio_request(GPIO_FN_MMC_D2, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1335  	gpio_request(GPIO_FN_MMC_D1, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1336  	gpio_request(GPIO_FN_MMC_D0, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1337  	gpio_request(GPIO_FN_MMC_CLK, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1338  	gpio_request(GPIO_FN_MMC_CMD, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1339  
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1340  	cn12_enabled = true;
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1341  #elif defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1342  	/* enable SDHI1 on CN12 (needs DS2.6,7 set to ON,OFF) */
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1343  	gpio_request(GPIO_FN_SDHI1WP,  NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1344  	gpio_request(GPIO_FN_SDHI1CMD, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1345  	gpio_request(GPIO_FN_SDHI1CLK, NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1346  	gpio_request(GPIO_FN_SDHI1D3,  NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1347  	gpio_request(GPIO_FN_SDHI1D2,  NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1348  	gpio_request(GPIO_FN_SDHI1D1,  NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1349  	gpio_request(GPIO_FN_SDHI1D0,  NULL);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1350  
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1351  	cn12_enabled = true;
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1352  #endif
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1353  
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1354  	if (cn12_enabled)
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1355  		/* I/O buffer drive ability is high for CN12 */
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1356  		__raw_writew((__raw_readw(IODRIVEA) & ~0x3000) | 0x2000,
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1357  			     IODRIVEA);
4eb80146f8ccd4e Guennadi Liakhovetski 2012-01-28  1358  
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1359  	/* enable FSI */
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1360  	gpio_request(GPIO_FN_FSIMCKB,    NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1361  	gpio_request(GPIO_FN_FSIIBSD,    NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1362  	gpio_request(GPIO_FN_FSIOBSD,    NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1363  	gpio_request(GPIO_FN_FSIIBBCK,   NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1364  	gpio_request(GPIO_FN_FSIIBLRCK,  NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1365  	gpio_request(GPIO_FN_FSIOBBCK,   NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1366  	gpio_request(GPIO_FN_FSIOBLRCK,  NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1367  	gpio_request(GPIO_FN_CLKAUDIOBO, NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1368  
16afc9fb0298a66 Kuninori Morimoto     2010-02-22  1369  	/* set SPU2 clock to 83.4 MHz */
16afc9fb0298a66 Kuninori Morimoto     2010-02-22  1370  	clk = clk_get(NULL, "spu_clk");
56ea510962ec690 Guennadi Liakhovetski 2010-10-15  1371  	if (!IS_ERR(clk)) {
16afc9fb0298a66 Kuninori Morimoto     2010-02-22  1372  		clk_set_rate(clk, clk_round_rate(clk, 83333333));
16afc9fb0298a66 Kuninori Morimoto     2010-02-22  1373  		clk_put(clk);
103058536300f80 Kuninori Morimoto     2010-05-13  1374  	}
16afc9fb0298a66 Kuninori Morimoto     2010-02-22  1375  
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1376  	/* change parent of FSI B */
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1377  	clk = clk_get(NULL, "fsib_clk");
56ea510962ec690 Guennadi Liakhovetski 2010-10-15  1378  	if (!IS_ERR(clk)) {
4bd5d259e451d35 Kuninori Morimoto     2010-11-26  1379  		/* 48kHz dummy clock was used to make sure 1/1 divide */
4bd5d259e451d35 Kuninori Morimoto     2010-11-26  1380  		clk_set_rate(&sh7724_fsimckb_clk, 48000);
4bd5d259e451d35 Kuninori Morimoto     2010-11-26  1381  		clk_set_parent(clk, &sh7724_fsimckb_clk);
4bd5d259e451d35 Kuninori Morimoto     2010-11-26  1382  		clk_set_rate(clk, 48000);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1383  		clk_put(clk);
103058536300f80 Kuninori Morimoto     2010-05-13  1384  	}
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1385  
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1386  	gpio_request(GPIO_PTU0, NULL);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1387  	gpio_direction_output(GPIO_PTU0, 0);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1388  	mdelay(20);
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1389  
ea4407834118405 NISHIMOTO Hiroki      2010-01-15  1390  	/* enable motion sensor */
ea4407834118405 NISHIMOTO Hiroki      2010-01-15  1391  	gpio_request(GPIO_FN_INTC_IRQ1, NULL);
ea4407834118405 NISHIMOTO Hiroki      2010-01-15  1392  	gpio_direction_input(GPIO_FN_INTC_IRQ1);
ea4407834118405 NISHIMOTO Hiroki      2010-01-15  1393  
6f26d19fce5907c Magnus Damm           2010-02-19  1394  	/* set VPU clock to 166 MHz */
6f26d19fce5907c Magnus Damm           2010-02-19  1395  	clk = clk_get(NULL, "vpu_clk");
56ea510962ec690 Guennadi Liakhovetski 2010-10-15  1396  	if (!IS_ERR(clk)) {
6f26d19fce5907c Magnus Damm           2010-02-19  1397  		clk_set_rate(clk, clk_round_rate(clk, 166000000));
6f26d19fce5907c Magnus Damm           2010-02-19  1398  		clk_put(clk);
103058536300f80 Kuninori Morimoto     2010-05-13  1399  	}
6f26d19fce5907c Magnus Damm           2010-02-19  1400  
263657168549075 Kuninori Morimoto     2010-02-24  1401  	/* enable IrDA */
263657168549075 Kuninori Morimoto     2010-02-24  1402  	gpio_request(GPIO_FN_IRDA_OUT, NULL);
263657168549075 Kuninori Morimoto     2010-02-24  1403  	gpio_request(GPIO_FN_IRDA_IN,  NULL);
263657168549075 Kuninori Morimoto     2010-02-24  1404  	gpio_request(GPIO_PTU5, NULL);
263657168549075 Kuninori Morimoto     2010-02-24  1405  	gpio_direction_output(GPIO_PTU5, 0);
263657168549075 Kuninori Morimoto     2010-02-24  1406  
c2f9b05fd5c1290 Jacopo Mondi          2018-03-12  1407  	/* Register gpio lookup tables for cameras and video decoder */
c2f9b05fd5c1290 Jacopo Mondi          2018-03-12  1408  	gpiod_add_lookup_table(&tw9910_gpios);
c2f9b05fd5c1290 Jacopo Mondi          2018-03-12  1409  	gpiod_add_lookup_table(&mt9t112_0_gpios);
c2f9b05fd5c1290 Jacopo Mondi          2018-03-12  1410  	gpiod_add_lookup_table(&mt9t112_1_gpios);
c2f9b05fd5c1290 Jacopo Mondi          2018-03-12  1411  
125ecce6960e336 Kuninori Morimoto     2009-09-10  1412  	/* enable I2C device */
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1413  	i2c_register_board_info(0, i2c0_devices,
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1414  				ARRAY_SIZE(i2c0_devices));
1980fdc4df47787 Kuninori Morimoto     2009-12-15  1415  
125ecce6960e336 Kuninori Morimoto     2009-09-10  1416  	i2c_register_board_info(1, i2c1_devices,
125ecce6960e336 Kuninori Morimoto     2009-09-10  1417  				ARRAY_SIZE(i2c1_devices));
125ecce6960e336 Kuninori Morimoto     2009-09-10  1418  

:::::: The code at line 1223 was first introduced by commit
:::::: fe79f919f47eabf6eae08414dcc078b0d89dfd8e sh: ecovec24: Use gpio-backlight

:::::: TO: Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>
:::::: CC: Simon Horman <horms+renesas@...ge.net.au>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ