add r311 dsp changes

This commit is contained in:
wangzijiao 2018-08-13 15:56:06 +08:00
parent 67a767f432
commit e53b5720cd
3 changed files with 1085 additions and 420 deletions

File diff suppressed because it is too large Load Diff

View File

@ -181,12 +181,10 @@ static int i2c_driver_cx20810_probe(struct i2c_client *client,
if (client->adapter->nr == 0 && client->addr == i2c_cx20810_addr[0]) { if (client->adapter->nr == 0 && client->addr == i2c_cx20810_addr[0]) {
g_client_cx20810[1] = client; g_client_cx20810[1] = client;
printk("Timothy:cx20810 (0x%x) init ok\n", client->addr); printk("Timothy:cx20810 (0x%x) init ok\n", client->addr);
cx20810_init(1, CX20810_NORMAL_MODE);
} else if (client->adapter->nr == 0 && } else if (client->adapter->nr == 0 &&
client->addr == i2c_cx20810_addr[1]) { client->addr == i2c_cx20810_addr[1]) {
g_client_cx20810[0] = client; g_client_cx20810[0] = client;
printk("Timothy:cx20810 (0x%x) init ok\n", client->addr); printk("Timothy:cx20810 (0x%x) init ok\n", client->addr);
cx20810_init(0, CX20810_NORMAL_MODE);
} }
return 0; return 0;
} }
@ -285,7 +283,7 @@ static int __init cpld_r311_probe(struct platform_device *pdev) {
devm_gpio_request(dev, gpionum, "gp_adc_rst"); devm_gpio_request(dev, gpionum, "gp_adc_rst");
gpio_direction_output(gpionum, 1); gpio_direction_output(gpionum, 1);
printk("Set gp_adc_rst(%d) to 1\n", gpionum); printk("Set gp_adc_rst(%d) to 1!\n", gpionum);
return 0; return 0;
} }

View File

@ -206,6 +206,7 @@ gmac_mdio = port:PA27<2><default><default><default>
twi0_used = 1 twi0_used = 1
twi0_scl = port:PH0<2><default><default><default> twi0_scl = port:PH0<2><default><default><default>
twi0_sda = port:PH1<2><default><default><default> twi0_sda = port:PH1<2><default><default><default>
clock-frequency = 100000
twi_regulator = "vcc-io" twi_regulator = "vcc-io"
[twi1] [twi1]
@ -1214,6 +1215,7 @@ bt_rst =
;--------------------------------------------------------------------------------- ;---------------------------------------------------------------------------------
[dmic] [dmic]
dmic_used = 1 dmic_used = 1
[snddmic] [snddmic]
snddmic_used = 1 snddmic_used = 1
@ -1246,19 +1248,22 @@ snddmic_used = 1
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
[snddaudio0] [snddaudio0]
snddaudio0_used = 1 snddaudio0_used = 1
sunxi,snddaudio-codec =
sunxi,snddaudio-codec-dai =
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
[daudio0] [daudio0]
daudio0_used = 1 daudio0_used = 1
daudio_master = 4 daudio_master = 4
tdm_config = 1 tdm_config = 1
mclk_div = 2 mclk_div = 2
clk_active = 1 clk_active = 0
audio_format = 1 audio_format = 3
signal_inversion = 1 signal_inversion = 1
pcm_lrck_period = 32 pcm_lrck_period = 32
msb_lsb_first = 0 msb_lsb_first = 0
slot_width_select = 32 slot_width_select = 32
frametype = 1 frametype = 0
;tx_data_mode = 1 ;tx_data_mode = 1
;rx_data_mode = 1 ;rx_data_mode = 1
daudio_regulator = daudio_regulator =