Lines Matching +full:0 +full:x00000000 +full:- +full:0 +full:x03ffffff

1 // SPDX-License-Identifier: GPL-2.0
35 #include <linux/dma-map-ops.h>
39 #include <media/drv-intf/renesas-ceu.h>
49 #define DRVCRB 0xA405018C
55 .offset = 0,
57 .mask_flags = MTD_WRITEABLE, /* Read-only */
73 [0] = {
75 .start = 0x00000000,
76 .end = 0x03ffffff,
82 .name = "physmap-flash",
91 [0] = {
93 .start = 0x10000000,
94 .end = 0x1001ffff,
100 .name = "onenand-flash",
106 .mode = SH_KEYSC_MODE_1, /* KEYOUT0->4, KEYIN0->4 */
111 KEY_1, KEY_2, KEY_3, 0, KEY_UP,
112 KEY_4, KEY_5, KEY_6, 0, KEY_LEFT,
115 0, 0, 0, 0, 0
120 [0] = {
122 .start = 0x044b0000,
123 .end = 0x044b000f,
127 .start = evt2irq(0xbe0),
134 .id = 0, /* "keysc0" clock */
147 .left_margin = 0,
150 .upper_margin = 0,
159 .ch[0] = {
174 .ldmt2r = 0x07010904,
175 .ldmt3r = 0x14012914,
183 [0] = {
185 .start = 0xfe940000, /* P4-only space */
186 .end = 0xfe942fff,
190 .start = evt2irq(0xf40),
211 I2C_BOARD_INFO("lv5207lp", 0x75),
220 [0] = {
221 .start = 0x04d80000,
222 .end = 0x04d80123,
226 .start = evt2irq(0xa20),
227 .end = evt2irq(0xa20),
234 .id = 0,
237 .coherent_dma_mask = 0xffffffff,
247 { /* [0] = rj54n1cb0c */
248 .flags = 0,
250 .bus_shift = 0,
252 .i2c_address = 0x50,
258 [0] = {
260 .start = 0xfe910000,
261 .end = 0xfe91009f,
265 .start = evt2irq(0x880),
266 .end = evt2irq(0x880),
272 .name = "renesas-ceu",
273 .id = 0, /* "ceu0" clock */
287 I2C_BOARD_INFO("rj54n1cb0c", 0x50),
292 .dev_id = "1-0050",
304 REGULATOR_SUPPLY("vmmc", "sh_mobile_sdhi.0"),
305 REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.0"),
309 [0] = {
311 .start = 0x04ce0000,
312 .end = 0x04ce00ff,
316 .start = evt2irq(0xe80),
345 #define BSC_CS0BCR 0xfec10004
346 #define BSC_CS0WCR 0xfec10024
347 #define BSC_CS4BCR 0xfec10010
348 #define BSC_CS4WCR 0xfec10030
349 #define PORT_MSELCRB 0xa4050182
359 a = i2c_get_adapter(0); in kfr2r09_usb0_gadget_i2c_setup()
361 return -ENODEV; in kfr2r09_usb0_gadget_i2c_setup()
363 /* set bit 1 (the second bit) of chip at 0x09, register 0x13 */ in kfr2r09_usb0_gadget_i2c_setup()
364 buf[0] = 0x13; in kfr2r09_usb0_gadget_i2c_setup()
365 msg.addr = 0x09; in kfr2r09_usb0_gadget_i2c_setup()
368 msg.flags = 0; in kfr2r09_usb0_gadget_i2c_setup()
371 return -ENODEV; in kfr2r09_usb0_gadget_i2c_setup()
373 buf[0] = 0; in kfr2r09_usb0_gadget_i2c_setup()
374 msg.addr = 0x09; in kfr2r09_usb0_gadget_i2c_setup()
380 return -ENODEV; in kfr2r09_usb0_gadget_i2c_setup()
382 buf[1] = buf[0] | (1 << 1); in kfr2r09_usb0_gadget_i2c_setup()
383 buf[0] = 0x13; in kfr2r09_usb0_gadget_i2c_setup()
384 msg.addr = 0x09; in kfr2r09_usb0_gadget_i2c_setup()
387 msg.flags = 0; in kfr2r09_usb0_gadget_i2c_setup()
390 return -ENODEV; in kfr2r09_usb0_gadget_i2c_setup()
392 return 0; in kfr2r09_usb0_gadget_i2c_setup()
402 a = i2c_get_adapter(0); in kfr2r09_serial_i2c_setup()
404 return -ENODEV; in kfr2r09_serial_i2c_setup()
406 /* set bit 6 (the 7th bit) of chip at 0x09, register 0x13 */ in kfr2r09_serial_i2c_setup()
407 buf[0] = 0x13; in kfr2r09_serial_i2c_setup()
408 msg.addr = 0x09; in kfr2r09_serial_i2c_setup()
411 msg.flags = 0; in kfr2r09_serial_i2c_setup()
414 return -ENODEV; in kfr2r09_serial_i2c_setup()
416 buf[0] = 0; in kfr2r09_serial_i2c_setup()
417 msg.addr = 0x09; in kfr2r09_serial_i2c_setup()
423 return -ENODEV; in kfr2r09_serial_i2c_setup()
425 buf[1] = buf[0] | (1 << 6); in kfr2r09_serial_i2c_setup()
426 buf[0] = 0x13; in kfr2r09_serial_i2c_setup()
427 msg.addr = 0x09; in kfr2r09_serial_i2c_setup()
430 msg.flags = 0; in kfr2r09_serial_i2c_setup()
433 return -ENODEV; in kfr2r09_serial_i2c_setup()
435 return 0; in kfr2r09_serial_i2c_setup()
440 return -ENODEV; in kfr2r09_usb0_gadget_i2c_setup()
445 return -ENODEV; in kfr2r09_serial_i2c_setup()
457 return -ENODEV; /* no cable plugged in */ in kfr2r09_usb0_gadget_setup()
459 if (kfr2r09_usb0_gadget_i2c_setup() != 0) in kfr2r09_usb0_gadget_setup()
460 return -ENODEV; /* unable to configure using i2c */ in kfr2r09_usb0_gadget_setup()
462 __raw_writew((__raw_readw(PORT_MSELCRB) & ~0xc000) | 0x8000, PORT_MSELCRB); in kfr2r09_usb0_gadget_setup()
463 gpio_request(GPIO_FN_PDSTATUS, NULL); /* R-standby disables USB clock */ in kfr2r09_usb0_gadget_setup()
468 __raw_writew(0x0600, 0xa40501d4); in kfr2r09_usb0_gadget_setup()
470 return 0; in kfr2r09_usb0_gadget_setup()
482 /* register board specific self-refresh code */ in kfr2r09_devices_setup()
490 regulator_register_always_on(0, "fixed-3.3V", fixed3v3_power_consumers, in kfr2r09_devices_setup()
501 __raw_writel(0x36db0400, BSC_CS0BCR); in kfr2r09_devices_setup()
502 __raw_writel(0x00000500, BSC_CS0WCR); in kfr2r09_devices_setup()
505 __raw_writel(0x36db0400, BSC_CS4BCR); in kfr2r09_devices_setup()
506 __raw_writel(0x00000500, BSC_CS4WCR); in kfr2r09_devices_setup()
553 if (kfr2r09_usb0_gadget_setup() == 0) in kfr2r09_devices_setup()
580 i2c_register_board_info(0, &kfr2r09_backlight_board_info, 1); in kfr2r09_devices_setup()
589 clk_add_alias(NULL, "1-0050", "video_clk", NULL); in kfr2r09_devices_setup()
596 __raw_writew((__raw_readw(DRVCRB) & ~0x0003) | 0x0001, DRVCRB); in kfr2r09_devices_setup()
618 /* MD0=1, MD1=1, MD2=0: Clock Mode 3 in kfr2r09_mode_pins()
619 * MD3=0: 16-bit Area0 Bus Width in kfr2r09_mode_pins()