ok it works now. shows up in sysfs, but spidev doesnt bind to it :/
This commit is contained in:
parent
9e0bd0e42e
commit
b5bd526476
|
@ -295,7 +295,7 @@ static int dmj_spi_get_caps(struct dmj_spi *dmjs)
|
|||
dmjs->caps.min_bpw = rbuf[12];
|
||||
dmjs->caps.max_bpw = rbuf[13];
|
||||
|
||||
dev_dbg(dev, "got caps: freq=%d..%d, flgcaps=%04hx, bpw=%d..%d, num cs=%d\n",
|
||||
dev_info(dev, " capabilities: freq=%d..%d, flgcaps=%04hx, bpw=%d..%d, num cs=%d\n",
|
||||
dmjs->caps.freq_min, dmjs->caps.freq_max, dmjs->caps.flgcaps,
|
||||
dmjs->caps.min_bpw, dmjs->caps.max_bpw, dmjs->caps.num_cs);
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ static const uint8_t serprog_cmdmap[32] = {
|
|||
0, // 20..27
|
||||
0, // 28..2f
|
||||
0, // 30..37
|
||||
0, // 38..3f
|
||||
0xff, // cmd 40..47
|
||||
0, // rest is 0
|
||||
};
|
||||
|
@ -350,7 +351,7 @@ static uint32_t vnd_flushpkt(uint8_t ud) {
|
|||
return 0;
|
||||
}
|
||||
void sp_spi_bulk_cmd(void) {
|
||||
uint8_t cmd = read_byte_cdc();
|
||||
uint8_t cmd = vnd_cfg_read_byte();
|
||||
handle_cmd(cmd, VND_N_CFG, vnd_cfg_read_byte, vnd_writepkt, vnd_flushpkt,
|
||||
vnd_cfg_write_resp);
|
||||
|
||||
|
|
Loading…
Reference in New Issue