| /OK3568_Linux_fs/kernel/drivers/misc/rk628/ |
| H A D | rk628_combtxphy.c | 172 void rk628_combtxphy_set_bus_width(struct rk628 *rk628, u32 bus_width) in rk628_combtxphy_set_bus_width() argument 174 rk628->combtxphy.bus_width = bus_width; in rk628_combtxphy_set_bus_width() 179 return rk628->combtxphy.bus_width; in rk628_combtxphy_get_bus_width() 195 int bus_width = rk628_combtxphy_get_bus_width(rk628); in rk628_combtxphy_set_mode() local 196 unsigned int fhsc = bus_width >> 8; in rk628_combtxphy_set_mode() 197 unsigned int flags = bus_width & 0xff; in rk628_combtxphy_set_mode() 227 combtxphy->bus_width = fhsc; in rk628_combtxphy_set_mode() 233 int bus_width = rk628_combtxphy_get_bus_width(rk628); in rk628_combtxphy_set_mode() local 234 unsigned int flags = bus_width & 0xff; in rk628_combtxphy_set_mode() 235 unsigned int rate = (bus_width >> 8) * 7; in rk628_combtxphy_set_mode() [all …]
|
| H A D | rk628_lvds.c | 71 u32 val, bus_width; in rk628_lvds_enable() local 80 bus_width = COMBTXPHY_MODULEA_EN | COMBTXPHY_MODULEB_EN; in rk628_lvds_enable() 85 bus_width = COMBTXPHY_MODULEA_EN | COMBTXPHY_MODULEB_EN; in rk628_lvds_enable() 92 bus_width = COMBTXPHY_MODULEA_EN | COMBTXPHY_MODULEB_EN; in rk628_lvds_enable() 99 bus_width = COMBTXPHY_MODULEA_EN | COMBTXPHY_MODULEB_EN; in rk628_lvds_enable() 105 bus_width = COMBTXPHY_MODULEA_EN; in rk628_lvds_enable() 113 bus_width |= (mode->clock / 1000) << 8; in rk628_lvds_enable() 114 rk628_combtxphy_set_bus_width(rk628, bus_width); in rk628_lvds_enable()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/lpddr/ |
| H A D | lpddr2_nvm.c | 76 int bus_width; member 94 static inline u_int build_mr_cfgmask(u_int bus_width) in build_mr_cfgmask() argument 98 if (bus_width == 0x0004) /* x32 device */ in build_mr_cfgmask() 107 static inline u_int build_sr_ok_datamask(u_int bus_width) in build_sr_ok_datamask() argument 111 if (bus_width == 0x0004) /* x32 device */ in build_sr_ok_datamask() 125 val = map->pfow_base + offset*pcm_data->bus_width; in ow_reg_add() 140 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, in ow_enable() 155 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, in ow_disable() 172 u_int sr_ok_datamask = build_sr_ok_datamask(pcm_data->bus_width); in lpddr2_nvm_do_op() 191 if (pcm_data->bus_width == 0x0004) { /* 2x16 devices stacked */ in lpddr2_nvm_do_op() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/rk628/ |
| H A D | rk628_combtxphy.c | 13 void rk628_txphy_set_bus_width(struct rk628 *rk628, u32 bus_width) in rk628_txphy_set_bus_width() argument 17 txphy->bus_width = bus_width; in rk628_txphy_set_bus_width() 25 return txphy->bus_width; in rk628_txphy_get_bus_width() 109 int bus_width = rk628_txphy_get_bus_width(rk628); in rk628_txphy_set_mode() local 110 unsigned int fhsc = bus_width >> 8; in rk628_txphy_set_mode() 111 unsigned int flags = bus_width & 0xff; in rk628_txphy_set_mode() 141 txphy->bus_width = fhsc; in rk628_txphy_set_mode() 147 int bus_width = rk628_txphy_get_bus_width(rk628); in rk628_txphy_set_mode() local 148 unsigned int flags = bus_width & 0xff; in rk628_txphy_set_mode() 149 unsigned int rate = (bus_width >> 8) * 7; in rk628_txphy_set_mode() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mmc/ |
| H A D | s5p_sdhci.c | 98 if (host->bus_width == 8) in s5p_sdhci_core_init() 108 int s5p_sdhci_init(u32 regbase, int index, int bus_width) in s5p_sdhci_init() argument 117 host->bus_width = bus_width; in s5p_sdhci_init() 129 flag = host->bus_width == 8 ? PINMUX_FLAG_8BIT_MODE : PINMUX_FLAG_NONE; in do_sdhci_init() 160 int bus_width, dev_id; in sdhci_get_config() local 172 bus_width = fdtdec_get_int(blob, node, "samsung,bus-width", 0); in sdhci_get_config() 173 if (bus_width <= 0) { in sdhci_get_config() 177 host->bus_width = bus_width; in sdhci_get_config()
|
| H A D | fsl_esdhc.c | 108 unsigned int bus_width; member 619 if (mmc->bus_width == 4) in esdhc_set_ios_common() 621 else if (mmc->bus_width == 8) in esdhc_set_ios_common() 836 if (priv->bus_width == 8) in fsl_esdhc_init() 838 else if (priv->bus_width == 4) in fsl_esdhc_init() 846 if (priv->bus_width > 0) { in fsl_esdhc_init() 847 if (priv->bus_width < 8) in fsl_esdhc_init() 849 if (priv->bus_width < 4) in fsl_esdhc_init() 877 priv->bus_width = cfg->max_bus_width; in fsl_esdhc_cfg_to_priv() 1041 priv->bus_width = 8; in fsl_esdhc_probe() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/rk628/ |
| H A D | rk628_combtxphy.c | 290 unsigned int bus_width = phy_get_bus_width(phy); in rk628_combtxphy_set_mode() local 297 unsigned int fhsc = bus_width >> 8; in rk628_combtxphy_set_mode() 298 unsigned int flags = bus_width & 0xff; in rk628_combtxphy_set_mode() 335 unsigned int flags = bus_width & 0xff; in rk628_combtxphy_set_mode() 336 unsigned int rate = (bus_width >> 8) * 7; in rk628_combtxphy_set_mode() 357 if (bus_width < 500000 || bus_width > 4000000) in rk628_combtxphy_set_mode() 359 else if (bus_width < 1000000) in rk628_combtxphy_set_mode() 361 else if (bus_width < 2000000) in rk628_combtxphy_set_mode() 365 fvco = bus_width * combtxphy->rate_div; in rk628_combtxphy_set_mode() 394 bus_width = ref_clk / combtxphy->ref_div * 8; in rk628_combtxphy_set_mode() [all …]
|
| H A D | rk628_lvds.c | 145 u32 val, bus_width; in rk628_lvds_bridge_enable() local 155 bus_width = COMBTXPHY_MODULEA_EN | COMBTXPHY_MODULEB_EN; in rk628_lvds_bridge_enable() 160 bus_width = COMBTXPHY_MODULEA_EN | COMBTXPHY_MODULEB_EN; in rk628_lvds_bridge_enable() 167 bus_width = COMBTXPHY_MODULEA_EN | COMBTXPHY_MODULEB_EN; in rk628_lvds_bridge_enable() 174 bus_width = COMBTXPHY_MODULEA_EN | COMBTXPHY_MODULEB_EN; in rk628_lvds_bridge_enable() 180 bus_width = COMBTXPHY_MODULEA_EN; in rk628_lvds_bridge_enable() 189 bus_width |= (mode->clock / 1000) << 8; in rk628_lvds_bridge_enable() 190 phy_set_bus_width(lvds->phy, bus_width); in rk628_lvds_bridge_enable()
|
| /OK3568_Linux_fs/kernel/drivers/memory/ |
| H A D | mvebu-devbus.c | 64 u32 bus_width; member 115 err = of_property_read_u32(node, "devbus,bus-width", &r->bus_width); in devbus_get_timing_params() 127 if (r->bus_width == 8) { in devbus_get_timing_params() 128 r->bus_width = 0; in devbus_get_timing_params() 129 } else if (r->bus_width == 16) { in devbus_get_timing_params() 130 r->bus_width = 1; in devbus_get_timing_params() 132 dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width); in devbus_get_timing_params() 215 r->bus_width << ORION_DEV_WIDTH_SHIFT | in devbus_orion_set_timing_params() 236 value = r->bus_width << ARMADA_DEV_WIDTH_SHIFT | in devbus_armada_set_timing_params()
|
| /OK3568_Linux_fs/u-boot/drivers/video/ |
| H A D | mxsfb.c | 54 uint32_t word_len = 0, bus_width = 0; in mxs_lcd_init() local 66 bus_width = LCDIF_CTRL_LCD_DATABUS_WIDTH_24BIT; in mxs_lcd_init() 71 bus_width = LCDIF_CTRL_LCD_DATABUS_WIDTH_18BIT; in mxs_lcd_init() 76 bus_width = LCDIF_CTRL_LCD_DATABUS_WIDTH_16BIT; in mxs_lcd_init() 81 bus_width = LCDIF_CTRL_LCD_DATABUS_WIDTH_8BIT; in mxs_lcd_init() 86 writel(bus_width | word_len | LCDIF_CTRL_DOTCLK_MODE | in mxs_lcd_init()
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/rkisp1/ |
| H A D | rkisp1-isp.c | 67 .bus_width = 10, 74 .bus_width = 10, 81 .bus_width = 10, 88 .bus_width = 10, 95 .bus_width = 12, 102 .bus_width = 12, 109 .bus_width = 12, 116 .bus_width = 12, 123 .bus_width = 8, 130 .bus_width = 8, [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-s5pc1xx/include/mach/ |
| H A D | mmc.h | 56 int s5p_sdhci_init(u32 regbase, int index, int bus_width); 58 static inline int s5p_mmc_init(int index, int bus_width) in s5p_mmc_init() argument 63 return s5p_sdhci_init(base, index, bus_width); in s5p_mmc_init()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-exynos/include/mach/ |
| H A D | mmc.h | 58 int s5p_sdhci_init(u32 regbase, int index, int bus_width); 60 static inline int s5p_mmc_init(int index, int bus_width) in s5p_mmc_init() argument 65 return s5p_sdhci_init(base, index, bus_width); in s5p_mmc_init()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp1/ |
| H A D | rkisp1.c | 411 switch (in_fmt->bus_width) { 884 .bus_width = 10, 890 .bus_width = 10, 896 .bus_width = 10, 902 .bus_width = 10, 908 .bus_width = 12, 914 .bus_width = 12, 920 .bus_width = 12, 926 .bus_width = 12, 932 .bus_width = 8, [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-sunxi/ |
| H A D | dram_sun6i.c | 23 u8 bus_width; member 65 if (para->bus_width == 32) { in mctl_dll_init() 75 if (para->bus_width == 32) { in mctl_dll_init() 85 if (para->bus_width == 32) { in mctl_dll_init() 183 para->bus_width = 16; in mctl_channel_init() 244 if (para->bus_width == 16) in mctl_channel_init() 273 ((para->bus_width == 32) ? MCTL_CR_BUSW32 : MCTL_CR_BUSW16) | in mctl_com_init() 338 .bus_width = 32, in sunxi_dram_init() 384 bus = (para.bus_width == 32) ? 2 : 1; in sunxi_dram_init()
|
| H A D | dram_sun8i_a33.c | 29 u8 bus_width; member 41 ((para->bus_width == 16) ? MCTL_CR_BUSW16 : MCTL_CR_BUSW8) | in mctl_set_cr() 234 para->bus_width = 16; in mctl_channel_init() 277 para->bus_width = 8; in mctl_channel_init() 340 .bus_width = 16, in sunxi_dram_init() 360 return para.page_size * (para.bus_width / 8) * in sunxi_dram_init()
|
| H A D | dram_sun8i_a23.c | 91 static void mctl_init(u32 *bus_width) in mctl_init() argument 245 *bus_width = 8; in mctl_init() 252 *bus_width = 16; in mctl_init() 272 u32 bus, bus_width, offset, page_size, rows; in sunxi_dram_init() local 275 mctl_init(&bus_width); in sunxi_dram_init() 277 if (bus_width == 16) { in sunxi_dram_init()
|
| H A D | dram_sun8i_a83t.c | 27 u8 bus_width; member 40 ((para->bus_width == 16) ? MCTL_CR_BUSW16 : MCTL_CR_BUSW8) | in mctl_set_cr() 317 para->bus_width = 16; in mctl_channel_init() 369 para->bus_width = 8; in mctl_channel_init() 417 para->bus_width = 16; in mctl_sys_init() 438 .bus_width = 16, in sunxi_dram_init() 470 return para.page_size * (para.bus_width / 8) * in sunxi_dram_init()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/core/ |
| H A D | mmc.c | 781 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds() argument 786 if (bus_width == MMC_BUS_WIDTH_1) in mmc_compare_ext_csds() 958 unsigned int bus_width) in __mmc_select_powerclass() argument 970 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass() 988 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass() 992 pwrclass_val = (bus_width == EXT_CSD_DDR_BUS_WIDTH_8) ? in __mmc_select_powerclass() 1002 if (bus_width & (EXT_CSD_BUS_WIDTH_8 | EXT_CSD_DDR_BUS_WIDTH_8)) in __mmc_select_powerclass() 1023 u32 bus_width, ext_csd_bits; in mmc_select_powerclass() local 1030 bus_width = host->ios.bus_width; in mmc_select_powerclass() 1032 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_powerclass() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/ddr/fsl/ |
| H A D | ddr3_dimm_params.c | 64 if ((spd->bus_width & 0x7) < 4) in compute_ranksize() 65 nbit_primary_bus_width = (spd->bus_width & 0x7) + 3; in compute_ranksize() 123 pdimm->primary_sdram_width = 1 << (3 + (spd->bus_width & 0x7)); in ddr_compute_dimm_parameters() 124 if ((spd->bus_width >> 3) & 0x3) in ddr_compute_dimm_parameters()
|
| H A D | ddr4_dimm_params.c | 96 if ((spd->bus_width & 0x7) < 4) in compute_ranksize() 97 nbit_primary_bus_width = (spd->bus_width & 0x7) + 3; in compute_ranksize() 166 pdimm->primary_sdram_width = 1 << (3 + (spd->bus_width & 0x7)); in ddr_compute_dimm_parameters() 167 if ((spd->bus_width >> 3) & 0x3) in ddr_compute_dimm_parameters()
|
| /OK3568_Linux_fs/kernel/include/linux/phy/ |
| H A D | phy.h | 122 u32 bus_width; member 230 return phy->attrs.bus_width; in phy_get_bus_width() 232 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument 234 phy->attrs.bus_width = bus_width; in phy_set_bus_width() 389 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/atmel-hlcdc/ |
| H A D | atmel_hlcdc_output.c | 43 u32 bus_width; in atmel_hlcdc_of_bus_fmt() local 46 ret = of_property_read_u32(ep, "bus-width", &bus_width); in atmel_hlcdc_of_bus_fmt() 52 switch (bus_width) { in atmel_hlcdc_of_bus_fmt()
|
| /OK3568_Linux_fs/kernel/drivers/dma/ |
| H A D | img-mdc-dma.c | 142 unsigned int bus_width; member 229 if (IS_ALIGNED(dst, mdma->bus_width) && in mdc_list_desc_config() 230 IS_ALIGNED(src, mdma->bus_width)) in mdc_list_desc_config() 231 max_burst = mdma->bus_width * mdma->max_burst_mult; in mdc_list_desc_config() 233 max_burst = mdma->bus_width * (mdma->max_burst_mult - 1); in mdc_list_desc_config() 238 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config() 246 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config() 252 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config() 253 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config() 360 if (width > mchan->mdma->bus_width) in mdc_check_slave_width() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | cavium.c | 828 int clk_period = 0, power_class = 10, bus_width = 0; in cvm_mmc_set_ios() local 856 switch (ios->bus_width) { in cvm_mmc_set_ios() 858 bus_width = 2; in cvm_mmc_set_ios() 861 bus_width = 1; in cvm_mmc_set_ios() 864 bus_width = 0; in cvm_mmc_set_ios() 869 if (ios->bus_width && ios->timing == MMC_TIMING_MMC_DDR52) in cvm_mmc_set_ios() 870 bus_width |= 4; in cvm_mmc_set_ios() 883 FIELD_PREP(MIO_EMM_SWITCH_BUS_WIDTH, bus_width) | in cvm_mmc_set_ios() 953 u32 id, cmd_skew = 0, dat_skew = 0, bus_width = 0; in cvm_mmc_of_parse() local 987 of_property_read_u32(node, "cavium,bus-max-width", &bus_width); in cvm_mmc_of_parse() [all …]
|