/linux-6.12.1/drivers/spi/ |
D | spi-amlogic-spifc-a1.c | 113 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 …]
|
D | spi-meson-spifc.c | 94 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 …]
|
D | Makefile | 21 obj-$(CONFIG_SPI_AMLOGIC_SPIFC_A1) += spi-amlogic-spifc-a1.o 83 obj-$(CONFIG_SPI_MESON_SPIFC) += spi-meson-spifc.o
|
/linux-6.12.1/arch/arm64/boot/dts/amlogic/ |
D | amlogic-c3-c302x-aw409.dts | 19 spi0 = &spifc; 198 &spifc {
|
D | amlogic-c3-c308l-aw419.dts | 19 spi0 = &spifc; 198 &spifc {
|
D | meson-gxl-s905x-libretech-cc-v2.dts | 23 spi0 = &spifc; 285 &spifc {
|
D | meson-a1.dtsi | 93 spifc: spi@fd000400 { label 94 compatible = "amlogic,a1-spifc"; 274 spifc_pins: spifc {
|
D | meson-libretech-cottonwood.dtsi | 19 spi0 = &spifc; 511 * and change bus-width to 4 then spifc can be enabled. 531 &spifc {
|
D | meson-g12b-odroid-n2.dtsi | 290 * and change bus-width to 4 then spifc can be enabled. 293 &spifc {
|
D | meson-gxl-s805x-libretech-ac.dts | 23 spi0 = &spifc; 299 &spifc {
|
D | amlogic-c3.dtsi | 400 spifc_pins: spifc-pins { 493 spifc: spi@56000 { label 494 compatible = "amlogic,a1-spifc";
|
D | meson-sm1-odroid-hc4.dts | 125 &spifc {
|
D | meson-gxm-khadas-vim2.dts | 373 * Remove emmc_ds_pins from sd_emmc_c pinctrl-0 then spifc can be enabled 375 &spifc {
|
D | meson-gx-libretech-pc.dtsi | 30 spi0 = &spifc; 417 &spifc {
|
D | meson-a1-ad402.dts | 149 &spifc {
|
D | meson-gxbb.dtsi | 269 spifc: spi@8c80 { label 270 compatible = "amlogic,meson-gxbb-spifc"; 833 &spifc {
|
D | meson-khadas-vim3.dtsi | 457 * and change bus-width to 4 then spifc can be enabled. 459 &spifc {
|
D | meson-gx.dtsi | 399 spifc: spi@8c80 { label 400 compatible = "amlogic,meson-gxbb-spifc";
|
D | meson-gxl.dtsi | 903 &spifc {
|
D | meson-g12-common.dtsi | 2294 spifc: spi@14000 { label 2295 compatible = "amlogic,meson-gxbb-spifc";
|
/linux-6.12.1/arch/arm/boot/dts/amlogic/ |
D | meson8-minix-neo-x8.dts | 63 &spifc {
|
D | meson.dtsi | 146 spifc: spi@8c80 { label 147 compatible = "amlogic,meson6-spifc";
|
D | meson8.dtsi | 748 &spifc {
|
/linux-6.12.1/drivers/clk/meson/ |
D | a1-peripherals.c | 1327 static struct clk_regmap spifc = { variable 1957 [CLKID_SPIFC] = &spifc.hw, 2115 &spifc,
|
D | c3-peripherals.c | 820 static struct clk_regmap spifc = { variable 2034 [CLKID_SPIFC] = &spifc.hw, 2239 &spifc,
|