Home
last modified time | relevance | path

Searched refs:spifc (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/linux/drivers/spi/
H A Dspi-amlogic-spifc-a1.c113 static int amlogic_spifc_a1_request(struct amlogic_spifc_a1 *spifc, bool read) in amlogic_spifc_a1_request() argument
120 spifc->base + SPIFC_A1_USER_CTRL0_REG); in amlogic_spifc_a1_request()
122 return readl_poll_timeout(spifc->base + SPIFC_A1_USER_CTRL0_REG, in amlogic_spifc_a1_request()
127 static void amlogic_spifc_a1_drain_buffer(struct amlogic_spifc_a1 *spifc, in amlogic_spifc_a1_drain_buffer() argument
135 spifc->base + SPIFC_A1_DBUF_CTRL_REG); in amlogic_spifc_a1_drain_buffer()
136 ioread32_rep(spifc->base + SPIFC_A1_DBUF_DATA_REG, buf, count); in amlogic_spifc_a1_drain_buffer()
139 data = readl(spifc->base + SPIFC_A1_DBUF_DATA_REG); in amlogic_spifc_a1_drain_buffer()
144 static void amlogic_spifc_a1_fill_buffer(struct amlogic_spifc_a1 *spifc, in amlogic_spifc_a1_fill_buffer() argument
152 spifc->base + SPIFC_A1_DBUF_CTRL_REG); in amlogic_spifc_a1_fill_buffer()
153 iowrite32_rep(spifc->base + SPIFC_A1_DBUF_DATA_REG, buf, count); in amlogic_spifc_a1_fill_buffer()
[all …]
H A Dspi-meson-spifc.c94 static int meson_spifc_wait_ready(struct meson_spifc *spifc) in meson_spifc_wait_ready() argument
100 regmap_read(spifc->regmap, REG_SLAVE, &data); in meson_spifc_wait_ready()
115 static void meson_spifc_drain_buffer(struct meson_spifc *spifc, u8 *buf, in meson_spifc_drain_buffer() argument
122 regmap_read(spifc->regmap, REG_C0 + i, &data); in meson_spifc_drain_buffer()
141 static void meson_spifc_fill_buffer(struct meson_spifc *spifc, const u8 *buf, in meson_spifc_fill_buffer() argument
153 regmap_write(spifc->regmap, REG_C0 + i, data); in meson_spifc_fill_buffer()
165 static void meson_spifc_setup_speed(struct meson_spifc *spifc, u32 speed) in meson_spifc_setup_speed() argument
170 parent = clk_get_rate(spifc->clk); in meson_spifc_setup_speed()
173 dev_dbg(spifc->dev, "parent %lu, speed %u, n %d\n", parent, in meson_spifc_setup_speed()
181 regmap_write(spifc->regmap, REG_CLOCK, value); in meson_spifc_setup_speed()
[all …]
H A DMakefile20 obj-$(CONFIG_SPI_AMLOGIC_SPIFC_A1) += spi-amlogic-spifc-a1.o
80 obj-$(CONFIG_SPI_MESON_SPIFC) += spi-meson-spifc.o
/openbmc/u-boot/drivers/spi/
H A Dmeson_spifc.c80 static void meson_spifc_drain_buffer(struct meson_spifc_priv *spifc, in meson_spifc_drain_buffer() argument
87 regmap_read(spifc->regmap, REG_C0 + i, &data); in meson_spifc_drain_buffer()
106 static void meson_spifc_fill_buffer(struct meson_spifc_priv *spifc, in meson_spifc_fill_buffer() argument
118 regmap_write(spifc->regmap, REG_C0 + i, data); in meson_spifc_fill_buffer()
136 static int meson_spifc_txrx(struct meson_spifc_priv *spifc, in meson_spifc_txrx() argument
145 meson_spifc_fill_buffer(spifc, dout + offset, len); in meson_spifc_txrx()
148 regmap_update_bits(spifc->regmap, REG_USER, USER_UC_MASK, in meson_spifc_txrx()
150 regmap_write(spifc->regmap, REG_USER1, in meson_spifc_txrx()
154 regmap_update_bits(spifc->regmap, REG_USER, USER_DIN_EN_MS, in meson_spifc_txrx()
160 regmap_update_bits(spifc->regmap, REG_USER4, USER4_CS_ACT, in meson_spifc_txrx()
[all …]
/openbmc/linux/arch/arm/boot/dts/amlogic/
H A Dmeson8-minix-neo-x8.dts63 &spifc {
H A Dmeson.dtsi146 spifc: spi@8c80 { label
147 compatible = "amlogic,meson6-spifc";
H A Dmeson8.dtsi749 &spifc {
/openbmc/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-gxl-s905x-libretech-cc-v2.dts23 spi0 = &spifc;
281 &spifc {
H A Dmeson-gxl-s805x-libretech-ac.dts23 spi0 = &spifc;
295 &spifc {
H A Dmeson-g12b-odroid-n2.dtsi274 * and change bus-width to 4 then spifc can be enabled.
277 &spifc {
H A Dmeson-sm1-odroid-hc4.dts125 &spifc {
H A Dmeson-gx-libretech-pc.dtsi30 spi0 = &spifc;
413 &spifc {
H A Dmeson-gxm-khadas-vim2.dts369 * Remove emmc_ds_pins from sd_emmc_c pinctrl-0 then spifc can be enabled
371 &spifc {
H A Dmeson-gxbb.dtsi269 spifc: spi@8c80 { label
270 compatible = "amlogic,meson-gxbb-spifc";
833 &spifc {
H A Dmeson-khadas-vim3.dtsi453 * and change bus-width to 4 then spifc can be enabled.
455 &spifc {
H A Dmeson-gx.dtsi399 spifc: spi@8c80 { label
400 compatible = "amlogic,meson-gxbb-spifc";
H A Dmeson-gxl.dtsi903 &spifc {
H A Dmeson-g12-common.dtsi2227 spifc: spi@14000 { label
2228 compatible = "amlogic,meson-gxbb-spifc";
/openbmc/u-boot/arch/arm/dts/
H A Dmeson-gxbb.dtsi266 spifc: spi@8c80 { label
267 compatible = "amlogic,meson-gxbb-spifc";
744 &spifc {
H A Dmeson-gx.dtsi292 spifc: spi@8c80 { label
293 compatible = "amlogic,meson-gx-spifc", "amlogic,meson-gxbb-spifc";
H A Dmeson-gxm-khadas-vim2.dts393 * Remove emmc_ds_pins from sd_emmc_c pinctrl-0 then spifc can be enabled
395 &spifc {
H A Dmeson-gxl.dtsi745 &spifc {
/openbmc/linux/drivers/clk/meson/
H A Da1-peripherals.c1327 static struct clk_regmap spifc = { variable
1957 [CLKID_SPIFC] = &spifc.hw,
2115 &spifc,
/openbmc/linux/
H A Dopengrok1.0.log[all...]
H A Dopengrok2.0.log[all...]

12