/openbmc/u-boot/arch/arm/mach-imx/ |
H A D | ddrmc-vf610.c | 110 void ddrmc_ctrl_init_ddr3(struct ddr3_jedec_timings const *timings, in ddrmc_ctrl_init_ddr3() argument 120 writel(DDRMC_CR02_DRAM_TINIT(timings->tinit), &ddrmr->cr[2]); in ddrmc_ctrl_init_ddr3() 121 writel(DDRMC_CR10_TRST_PWRON(timings->trst_pwron), &ddrmr->cr[10]); in ddrmc_ctrl_init_ddr3() 123 writel(DDRMC_CR11_CKE_INACTIVE(timings->cke_inactive), &ddrmr->cr[11]); in ddrmc_ctrl_init_ddr3() 124 writel(DDRMC_CR12_WRLAT(timings->wrlat) | in ddrmc_ctrl_init_ddr3() 125 DDRMC_CR12_CASLAT_LIN(timings->caslat_lin), &ddrmr->cr[12]); in ddrmc_ctrl_init_ddr3() 126 writel(DDRMC_CR13_TRC(timings->trc) | DDRMC_CR13_TRRD(timings->trrd) | in ddrmc_ctrl_init_ddr3() 127 DDRMC_CR13_TCCD(timings->tccd) | in ddrmc_ctrl_init_ddr3() 128 DDRMC_CR13_TBST_INT_INTERVAL(timings->tbst_int_interval), in ddrmc_ctrl_init_ddr3() 130 writel(DDRMC_CR14_TFAW(timings->tfaw) | DDRMC_CR14_TRP(timings->trp) | in ddrmc_ctrl_init_ddr3() [all …]
|
/openbmc/u-boot/board/overo/ |
H A D | spl.c | 24 void get_board_mem_timings(struct board_sdrc_timings *timings) in get_board_mem_timings() argument 26 timings->mr = MICRON_V_MR_165; in get_board_mem_timings() 29 timings->mcfg = MICRON_V_MCFG_165(256 << 20); in get_board_mem_timings() 30 timings->ctrla = MICRON_V_ACTIMA_165; in get_board_mem_timings() 31 timings->ctrlb = MICRON_V_ACTIMB_165; in get_board_mem_timings() 32 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; in get_board_mem_timings() 36 timings->mcfg = MICRON_V_MCFG_200(256 << 20); in get_board_mem_timings() 37 timings->ctrla = MICRON_V_ACTIMA_200; in get_board_mem_timings() 38 timings->ctrlb = MICRON_V_ACTIMB_200; in get_board_mem_timings() 39 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz; in get_board_mem_timings() [all …]
|
/openbmc/u-boot/board/isee/igep00x0/ |
H A D | spl.c | 15 void get_board_mem_timings(struct board_sdrc_timings *timings) in get_board_mem_timings() argument 19 timings->mr = MICRON_V_MR_165; in get_board_mem_timings() 23 timings->mcfg = HYNIX_V_MCFG_200(256 << 20); in get_board_mem_timings() 24 timings->ctrla = HYNIX_V_ACTIMA_200; in get_board_mem_timings() 25 timings->ctrlb = HYNIX_V_ACTIMB_200; in get_board_mem_timings() 28 timings->mcfg = MICRON_V_MCFG_200(256 << 20); in get_board_mem_timings() 29 timings->ctrla = MICRON_V_ACTIMA_200; in get_board_mem_timings() 30 timings->ctrlb = MICRON_V_ACTIMB_200; in get_board_mem_timings() 36 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz; in get_board_mem_timings() 40 timings->mcfg = NUMONYX_V_MCFG_165(256 << 20); in get_board_mem_timings() [all …]
|
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_wp.c | 145 struct omap_video_timings *timings) in hdmi_wp_video_config_interface() argument 151 vsync_pol = timings->vsync_level == OMAPDSS_SIG_ACTIVE_HIGH; in hdmi_wp_video_config_interface() 152 hsync_pol = timings->hsync_level == OMAPDSS_SIG_ACTIVE_HIGH; in hdmi_wp_video_config_interface() 157 r = FLD_MOD(r, timings->interlace, 3, 3); in hdmi_wp_video_config_interface() 163 struct omap_video_timings *timings) in hdmi_wp_video_config_timing() argument 170 timing_h |= FLD_VAL(timings->hbp, 31, 20); in hdmi_wp_video_config_timing() 171 timing_h |= FLD_VAL(timings->hfp, 19, 8); in hdmi_wp_video_config_timing() 172 timing_h |= FLD_VAL(timings->hsw, 7, 0); in hdmi_wp_video_config_timing() 175 timing_v |= FLD_VAL(timings->vbp, 31, 20); in hdmi_wp_video_config_timing() 176 timing_v |= FLD_VAL(timings->vfp, 19, 8); in hdmi_wp_video_config_timing() [all …]
|
H A D | hdmi5_core.c | 284 video_cfg->v_fc_config.timings.hsync_level = cfg->timings.hsync_level; in hdmi_core_init() 285 video_cfg->v_fc_config.timings.x_res = cfg->timings.x_res; in hdmi_core_init() 286 video_cfg->v_fc_config.timings.hsw = cfg->timings.hsw - 1; in hdmi_core_init() 287 video_cfg->v_fc_config.timings.hbp = cfg->timings.hbp; in hdmi_core_init() 288 video_cfg->v_fc_config.timings.hfp = cfg->timings.hfp; in hdmi_core_init() 289 video_cfg->hblank = cfg->timings.hfp + in hdmi_core_init() 290 cfg->timings.hbp + cfg->timings.hsw - 1; in hdmi_core_init() 291 video_cfg->v_fc_config.timings.vsync_level = cfg->timings.vsync_level; in hdmi_core_init() 292 video_cfg->v_fc_config.timings.y_res = cfg->timings.y_res; in hdmi_core_init() 293 video_cfg->v_fc_config.timings.vsw = cfg->timings.vsw; in hdmi_core_init() [all …]
|
/openbmc/qemu/hw/display/ |
H A D | edid-generate.c | 63 static void generate_timings(Timings *timings, uint32_t refresh_rate, in generate_timings() argument 67 timings->xfront = xres * 25 / 100; in generate_timings() 68 timings->xsync = xres * 3 / 100; in generate_timings() 69 timings->xblank = xres * 35 / 100; in generate_timings() 71 timings->yfront = yres * 5 / 1000; in generate_timings() 72 timings->ysync = yres * 5 / 1000; in generate_timings() 73 timings->yblank = yres * 35 / 1000; in generate_timings() 75 timings->clock = ((uint64_t)refresh_rate * in generate_timings() 76 (xres + timings->xblank) * in generate_timings() 77 (yres + timings->yblank)) / 10000000; in generate_timings() [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fbmon.c | 1148 static void fb_timings_vfreq(struct __fb_timings *timings) in fb_timings_vfreq() argument 1150 timings->hfreq = fb_get_hfreq(timings->vfreq, timings->vactive); in fb_timings_vfreq() 1151 timings->vblank = fb_get_vblank(timings->hfreq); in fb_timings_vfreq() 1152 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_vfreq() 1153 timings->hblank = fb_get_hblank_by_hfreq(timings->hfreq, in fb_timings_vfreq() 1154 timings->hactive); in fb_timings_vfreq() 1155 timings->htotal = timings->hactive + timings->hblank; in fb_timings_vfreq() 1156 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq() 1159 static void fb_timings_hfreq(struct __fb_timings *timings) in fb_timings_hfreq() argument 1161 timings->vblank = fb_get_vblank(timings->hfreq); in fb_timings_hfreq() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nand_timings.c | 26 .timings.mode = 0, 27 .timings.sdr = { 71 .timings.mode = 1, 72 .timings.sdr = { 116 .timings.mode = 2, 117 .timings.sdr = { 161 .timings.mode = 3, 162 .timings.sdr = { 206 .timings.mode = 4, 207 .timings.sdr = { [all …]
|
/openbmc/u-boot/board/ti/beagle/ |
H A D | beagle.c | 145 void get_board_mem_timings(struct board_sdrc_timings *timings) in get_board_mem_timings() argument 156 timings->mr = MICRON_V_MR_165; in get_board_mem_timings() 161 timings->mcfg = NUMONYX_V_MCFG_165(512 << 20); in get_board_mem_timings() 162 timings->ctrla = NUMONYX_V_ACTIMA_165; in get_board_mem_timings() 163 timings->ctrlb = NUMONYX_V_ACTIMB_165; in get_board_mem_timings() 164 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; in get_board_mem_timings() 168 timings->mcfg = MICRON_V_MCFG_165(128 << 20); in get_board_mem_timings() 169 timings->ctrla = MICRON_V_ACTIMA_165; in get_board_mem_timings() 170 timings->ctrlb = MICRON_V_ACTIMB_165; in get_board_mem_timings() 171 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; in get_board_mem_timings() [all …]
|
/openbmc/u-boot/arch/arm/mach-omap2/omap3/ |
H A D | sdrc.c | 102 struct board_sdrc_timings *timings) in write_sdrc_timings() argument 105 writel(timings->mcfg, &sdrc_base->cs[cs].mcfg); in write_sdrc_timings() 106 writel(timings->ctrla, &sdrc_actim_base->ctrla); in write_sdrc_timings() 107 writel(timings->ctrlb, &sdrc_actim_base->ctrlb); in write_sdrc_timings() 108 writel(timings->rfr_ctrl, &sdrc_base->cs[cs].rfr_ctrl); in write_sdrc_timings() 113 writel(timings->mr, &sdrc_base->cs[cs].mr); in write_sdrc_timings() 132 struct board_sdrc_timings timings; in do_sdrc_init() local 138 timings.sharing = SDRC_SHARING; in do_sdrc_init() 151 get_board_mem_timings(&timings); in do_sdrc_init() 161 writel(timings.sharing, &sdrc_base->sharing); in do_sdrc_init() [all …]
|
/openbmc/linux/drivers/memory/tegra/ |
H A D | tegra210-emc-table.c | 16 struct tegra210_emc_timing *timings; in tegra210_emc_table_device_init() local 19 timings = memremap(rmem->base, rmem->size, MEMREMAP_WB); in tegra210_emc_table_device_init() 20 if (!timings) { in tegra210_emc_table_device_init() 26 if (timings[i].revision == 0) in tegra210_emc_table_device_init() 42 memunmap(timings); in tegra210_emc_table_device_init() 46 emc->derated = timings; in tegra210_emc_table_device_init() 49 emc->nominal = timings; in tegra210_emc_table_device_init() 54 rmem->priv = timings; in tegra210_emc_table_device_init() 62 struct tegra210_emc_timing *timings = rmem->priv; in tegra210_emc_table_device_release() local 65 if ((emc->nominal && timings != emc->nominal) && in tegra210_emc_table_device_release() [all …]
|
/openbmc/linux/drivers/media/i2c/adv748x/ |
H A D | adv748x-hdmi.c | 48 struct v4l2_dv_timings timings; member 96 fmt->field = hdmi->timings.bt.interlaced ? in adv748x_hdmi_fill_format() 102 fmt->width = hdmi->timings.bt.width; in adv748x_hdmi_fill_format() 103 fmt->height = hdmi->timings.bt.height; in adv748x_hdmi_fill_format() 109 static void adv748x_fill_optional_dv_timings(struct v4l2_dv_timings *timings) in adv748x_fill_optional_dv_timings() argument 111 v4l2_find_dv_timings_cap(timings, &adv748x_hdmi_timings_cap, in adv748x_fill_optional_dv_timings() 172 const struct v4l2_dv_timings *timings) in adv748x_hdmi_set_video_timings() argument 179 if (v4l2_match_dv_timings(timings, &stds[i].timings, 250000, in adv748x_hdmi_set_video_timings() 218 struct v4l2_dv_timings *timings) in adv748x_hdmi_s_dv_timings() argument 224 if (!timings) in adv748x_hdmi_s_dv_timings() [all …]
|
/openbmc/u-boot/drivers/video/ |
H A D | mali_dp.c | 159 struct display_timing *timings) in malidp_setup_timings() argument 161 u32 val = MALIDP_H_SYNCWIDTH(timings->hsync_len.typ) | in malidp_setup_timings() 162 MALIDP_V_SYNCWIDTH(timings->vsync_len.typ); in malidp_setup_timings() 165 val = MALIDP_H_BACKPORCH(timings->hback_porch.typ) | in malidp_setup_timings() 166 MALIDP_H_FRONTPORCH(timings->hfront_porch.typ); in malidp_setup_timings() 169 val = MALIDP_V_BACKPORCH(timings->vback_porch.typ) | in malidp_setup_timings() 170 MALIDP_V_FRONTPORCH(timings->vfront_porch.typ); in malidp_setup_timings() 173 val = MALIDP_H_ACTIVE(timings->hactive.typ) | in malidp_setup_timings() 174 MALIDP_V_ACTIVE(timings->vactive.typ); in malidp_setup_timings() 183 struct display_timing *timings) in malidp_setup_mode() argument [all …]
|
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/displays/ |
H A D | encoder-tfp410.c | 26 struct omap_video_timings timings; member 83 in->ops.dpi->set_timings(in, &ddata->timings); in tfp410_enable() 115 static void tfp410_fix_timings(struct omap_video_timings *timings) in tfp410_fix_timings() argument 117 timings->data_pclk_edge = OMAPDSS_DRIVE_SIG_RISING_EDGE; in tfp410_fix_timings() 118 timings->sync_pclk_edge = OMAPDSS_DRIVE_SIG_RISING_EDGE; in tfp410_fix_timings() 119 timings->de_level = OMAPDSS_SIG_ACTIVE_HIGH; in tfp410_fix_timings() 123 struct omap_video_timings *timings) in tfp410_set_timings() argument 128 tfp410_fix_timings(timings); in tfp410_set_timings() 130 ddata->timings = *timings; in tfp410_set_timings() 131 dssdev->panel.timings = *timings; in tfp410_set_timings() [all …]
|
H A D | connector-analog-tv.c | 22 struct omap_video_timings timings; member 85 in->ops.atv->set_timings(in, &ddata->timings); in tvc_enable() 119 struct omap_video_timings *timings) in tvc_set_timings() argument 124 ddata->timings = *timings; in tvc_set_timings() 125 dssdev->panel.timings = *timings; in tvc_set_timings() 127 in->ops.atv->set_timings(in, timings); in tvc_set_timings() 131 struct omap_video_timings *timings) in tvc_get_timings() argument 135 *timings = ddata->timings; in tvc_get_timings() 139 struct omap_video_timings *timings) in tvc_check_timings() argument 144 return in->ops.atv->check_timings(in, timings); in tvc_check_timings() [all …]
|
H A D | connector-hdmi.c | 43 struct omap_video_timings timings; member 90 in->ops.hdmi->set_timings(in, &ddata->timings); in hdmic_enable() 117 struct omap_video_timings *timings) in hdmic_set_timings() argument 122 ddata->timings = *timings; in hdmic_set_timings() 123 dssdev->panel.timings = *timings; in hdmic_set_timings() 125 in->ops.hdmi->set_timings(in, timings); in hdmic_set_timings() 129 struct omap_video_timings *timings) in hdmic_get_timings() argument 133 *timings = ddata->timings; in hdmic_get_timings() 137 struct omap_video_timings *timings) in hdmic_check_timings() argument 142 return in->ops.hdmi->check_timings(in, timings); in hdmic_check_timings() [all …]
|
/openbmc/u-boot/board/corscience/tricorder/ |
H A D | tricorder.c | 163 void get_board_mem_timings(struct board_sdrc_timings *timings) in get_board_mem_timings() argument 171 timings->mcfg = MCFG((256 << 20), 14); in get_board_mem_timings() 181 timings->ctrla = ACTIM_CTRLA(MT46H64M32_TRFC, MT46H64M32_TRC, in get_board_mem_timings() 191 timings->ctrlb = ACTIM_CTRLB(MT46H64M32_TWTR, MT46H64M32_TCKE, in get_board_mem_timings() 194 timings->mr = MICRON_V_MR_165; in get_board_mem_timings() 195 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; in get_board_mem_timings() 198 timings->mcfg = MICRON_V_MCFG_165(128 << 20); in get_board_mem_timings() 199 timings->ctrla = MICRON_V_ACTIMA_165; in get_board_mem_timings() 200 timings->ctrlb = MICRON_V_ACTIMB_165; in get_board_mem_timings() 201 timings->mr = MICRON_V_MR_165; in get_board_mem_timings() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | rc-ir-raw.c | 317 const struct ir_raw_timings_manchester *timings, in ir_raw_gen_manchester() argument 326 if (timings->leader_pulse) { in ir_raw_gen_manchester() 329 init_ir_raw_event_duration((*ev), 1, timings->leader_pulse); in ir_raw_gen_manchester() 330 if (timings->leader_space) { in ir_raw_gen_manchester() 334 timings->leader_space); in ir_raw_gen_manchester() 344 if (timings->invert) in ir_raw_gen_manchester() 347 (*ev)->duration += timings->clock; in ir_raw_gen_manchester() 352 timings->clock); in ir_raw_gen_manchester() 358 timings->clock); in ir_raw_gen_manchester() 362 if (timings->trailer_space) { in ir_raw_gen_manchester() [all …]
|
/openbmc/linux/Documentation/driver-api/memory-devices/ |
H A D | ti-gpmc.rst | 23 GPMC has certain timings that has to be programmed for proper 25 timings. To have peripheral work with gpmc, peripheral timings has to 28 dependency for certain gpmc timings on gpmc clock frequency. Hence a 31 Generic routine provides a generic method to calculate gpmc timings 32 from gpmc peripheral timings. struct gpmc_device_timings fields has to 33 be updated with timings from the datasheet of the peripheral that is 34 connected to gpmc. A few of the peripheral timings can be fed either 49 on understanding of gpmc timings, peripheral timings, available 54 gpmc timing dependency on peripheral timings: 172 Many of gpmc timings are dependent on other gpmc timings (a few [all …]
|
/openbmc/u-boot/board/logicpd/omap3som/ |
H A D | omap3logic.c | 75 void get_board_mem_timings(struct board_sdrc_timings *timings) in get_board_mem_timings() argument 77 timings->mr = MICRON_V_MR_165; in get_board_mem_timings() 82 timings->mcfg = MICRON_V_MCFG_200(256 << 20); in get_board_mem_timings() 83 timings->ctrla = MICRON_V_ACTIMA_200; in get_board_mem_timings() 84 timings->ctrlb = MICRON_V_ACTIMB_200; in get_board_mem_timings() 85 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz; in get_board_mem_timings() 88 timings->mcfg = MICRON_V_MCFG_165(256 << 20); in get_board_mem_timings() 89 timings->ctrla = MICRON_V_ACTIMA_165; in get_board_mem_timings() 90 timings->ctrlb = MICRON_V_ACTIMB_165; in get_board_mem_timings() 91 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; in get_board_mem_timings()
|
/openbmc/u-boot/board/quipos/cairo/ |
H A D | cairo.c | 69 void get_board_mem_timings(struct board_sdrc_timings *timings) in get_board_mem_timings() argument 71 timings->sharing = SAMSUNG_SHARING; in get_board_mem_timings() 72 timings->mcfg = SAMSUNG_V_MCFG_165(128 << 20); in get_board_mem_timings() 73 timings->ctrla = SAMSUNG_V_ACTIMA_165; in get_board_mem_timings() 74 timings->ctrlb = SAMSUNG_V_ACTIMB_165; in get_board_mem_timings() 75 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; in get_board_mem_timings() 76 timings->mr = SAMSUNG_V_MR_165; in get_board_mem_timings()
|
/openbmc/linux/Documentation/fb/ |
H A D | viafb.modes | 31 timings 39722 48 16 33 10 96 2 endmode mode "480x640-60" 33 geometry 480 640 480 640 32 timings 39722 72 24 19 1 48 3 endmode 54 geometry 640 480 640 480 32 timings 31747 120 16 16 1 64 3 endmode 75 geometry 640 480 640 480 32 timings 27777 80 56 25 1 56 3 endmode 96 geometry 640 480 640 480 32 timings 23168 104 40 25 1 64 3 endmode 117 geometry 640 480 640 480 32 timings 19081 104 40 31 1 64 3 endmode 138 geometry 720 480 720 480 32 timings 37202 88 16 14 1 72 3 endmode 159 geometry 800 480 800 480 32 timings 33805 96 24 10 3 72 7 endmode 180 geometry 720 576 720 576 32 timings 30611 96 24 17 1 72 3 endmode 202 timings 25000 88 40 23 1 128 4 hsync high vsync high endmode [all …]
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | nand_timings.c | 19 .timings.sdr = { 61 .timings.sdr = { 103 .timings.sdr = { 145 .timings.sdr = { 187 .timings.sdr = { 229 .timings.sdr = { 280 return &onfi_sdr_timings[mode].timings.sdr; in onfi_async_timing_mode_to_sdr_timings() 310 struct nand_sdr_timings *timings = &iface->timings.sdr; in onfi_init_data_interface() local 313 timings->tPROG_max = 1000000ULL * le16_to_cpu(params->t_prog); in onfi_init_data_interface() 314 timings->tBERS_max = 1000000ULL * le16_to_cpu(params->t_bers); in onfi_init_data_interface() [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | dv-timings.rst | 3 .. _dv-timings: 10 and the corresponding video timings. Today there are many more different 13 extend the API to select the video timings for these interfaces. Since 16 set/get video timings at the input and output. 18 These ioctls deal with the detailed digital video timings that define 21 widths etc. The ``linux/v4l2-dv-timings.h`` header can be used to get 22 the timings of the formats in the :ref:`cea861` and :ref:`vesadmt` 25 To enumerate and query the attributes of the DV timings supported by a 29 DV timings for the device applications use the 31 current DV timings they use the [all …]
|
/openbmc/linux/drivers/media/spi/ |
H A D | gs1662.c | 229 static int gs_status_format(u16 status, struct v4l2_dv_timings *timings) in gs_status_format() argument 236 *timings = reg_fmt[i].format; in gs_status_format() 244 static u16 get_register_timings(struct v4l2_dv_timings *timings) in get_register_timings() argument 249 if (v4l2_match_dv_timings(timings, ®_fmt[i].format, 0, in get_register_timings() 263 struct v4l2_dv_timings *timings) in gs_s_dv_timings() argument 268 reg_value = get_register_timings(timings); in gs_s_dv_timings() 272 gs->current_timings = *timings; in gs_s_dv_timings() 277 struct v4l2_dv_timings *timings) in gs_g_dv_timings() argument 281 *timings = gs->current_timings; in gs_g_dv_timings() 286 struct v4l2_dv_timings *timings) in gs_query_dv_timings() argument [all …]
|