def METHOD_NAME(self, clkin, freq):
    self.clkin = Signal()
    if isinstance(clkin, (Signal, ClockSignal)):
        self.comb += self.clkin.eq(clkin)
    elif isinstance(clkin, Record):
        self.specials += DifferentialInput(clkin.p, clkin.n, self.clkin)
    else:
        raise ValueError
    self.clkin_freq = freq
    register_clkin_log(self.logger, clkin, freq)