tdc: export recently created functions in tdc.h

Signed-off-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
parent c6be45fb
......@@ -40,16 +40,16 @@ static void tdc_fw_reset(struct spec_dev *dev)
}
/* XXX: Check that the value is properly written? */
static int tdc_set_utc_time(struct spec_tdc *tdc)
int tdc_set_utc_time(struct spec_tdc *tdc)
{
u32 utc_time; /* TODO: fill the variable with a proper value */
u32 utc_time = 0; /* TODO: fill the variable with a proper value */
writel(utc_time, tdc->base + TDC_START_UTC);
writel(TDC_CTRL_LOAD_UTC, tdc->base + TDC_CTRL_REG);
return 0;
}
static u32 tdc_get_utc_time(struct spec_tdc *tdc)
u32 tdc_get_utc_time(struct spec_tdc *tdc)
{
return readl(tdc->base + TDC_CURRENT_UTC);
}
......
......@@ -60,4 +60,16 @@ u32 tdc_acam_read_start01(struct spec_tdc *tdc);
/* Core functions */
int tdc_probe(struct spec_dev *dev);
void tdc_remove(struct spec_dev *dev);
int tdc_set_utc_time(struct spec_tdc *tdc);
u32 tdc_get_utc_time(struct spec_tdc *tdc);
void tdc_set_irq_tstamp_thresh(struct spec_tdc *tdc, u32 val);
void tdc_set_irq_time_thresh(struct spec_tdc *tdc, u32 val);
u32 tdc_get_irq_time_thresh(struct spec_tdc *tdc);
void tdc_set_dac_word(struct spec_tdc *tdc, u32 val);
void tdc_clear_da_capo_flag(struct spec_tdc *tdc);
void tdc_activate_adquisition(struct spec_tdc *tdc);
void tdc_deactivate_adquisition(struct spec_tdc *tdc);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment