コード例 #1
0
static void bfin_spi_disable(struct driver_data *drv_data)
{
	u16 cr;

	cr = read_CTRL(drv_data);
	write_CTRL(drv_data, (cr & (~BIT_CTL_ENABLE)));
}
コード例 #2
0
static void bfin_spi_enable(struct bfin_spi_master_data *drv_data)
{
    u16 cr;

    cr = read_CTRL(drv_data);
    write_CTRL(drv_data, (cr | BIT_CTL_ENABLE));
}