Lines Matching refs:dm_gpio_set_value
38 dm_gpio_set_value(&priv->mosi, !!(addr & 0x80)); /* MSB first */ in cpld_read()
39 dm_gpio_set_value(&priv->sck, 1); in cpld_read()
41 dm_gpio_set_value(&priv->sck, 0); in cpld_read()
44 dm_gpio_set_value(&priv->mosi, 0); /* READ */ in cpld_read()
45 dm_gpio_set_value(&priv->sstbz, 0); in cpld_read()
46 dm_gpio_set_value(&priv->sck, 1); in cpld_read()
47 dm_gpio_set_value(&priv->sck, 0); in cpld_read()
48 dm_gpio_set_value(&priv->sstbz, 1); in cpld_read()
51 dm_gpio_set_value(&priv->sck, 1); in cpld_read()
54 dm_gpio_set_value(&priv->sck, 0); in cpld_read()
66 dm_gpio_set_value(&priv->mosi, data & (1 << 31)); /* MSB first */ in cpld_write()
67 dm_gpio_set_value(&priv->sck, 1); in cpld_write()
69 dm_gpio_set_value(&priv->sck, 0); in cpld_write()
73 dm_gpio_set_value(&priv->mosi, addr & 0x80); /* MSB first */ in cpld_write()
74 dm_gpio_set_value(&priv->sck, 1); in cpld_write()
76 dm_gpio_set_value(&priv->sck, 0); in cpld_write()
79 dm_gpio_set_value(&priv->mosi, 1); /* WRITE */ in cpld_write()
80 dm_gpio_set_value(&priv->sstbz, 0); in cpld_write()
81 dm_gpio_set_value(&priv->sck, 1); in cpld_write()
82 dm_gpio_set_value(&priv->sck, 0); in cpld_write()
83 dm_gpio_set_value(&priv->sstbz, 1); in cpld_write()