axi_generic_adc: pass in number of channels instantiated to up_adc_common. Allows drivers/iio/adc/ad_adc.c driver to be used with this core.

Signed-off-by: Nick Pillitteri <njpillitteri@gmail.com>
main
Nick Pillitteri 2021-03-12 15:08:52 -05:00 committed by Adrian Costina
parent bbb151f9f5
commit 1543eb8881
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ up_adc_common #(.ID(ID)) i_up_adc_common (
.up_drp_ready (1'd0), .up_drp_ready (1'd0),
.up_drp_locked (1'd1), .up_drp_locked (1'd1),
.up_usr_chanmax_out (), .up_usr_chanmax_out (),
.up_usr_chanmax_in (8'd0), .up_usr_chanmax_in (NUM_OF_CHANNELS),
.up_adc_gpio_in (32'b0), .up_adc_gpio_in (32'b0),
.up_adc_gpio_out (), .up_adc_gpio_out (),
.up_rstn (up_rstn), .up_rstn (up_rstn),