Hi Dirk, On Mon, Jan 25, 2016 at 5:25 PM, Dirk Behme <dirk.behme@xxxxxxxxx> wrote: >> I've been thinking about implementing a "delay callback", which waits >> for bit 13 on previous SoCs and for bit 14 for r8a7795. > > Thinking about this, is there a runtime detection of r8a7795 vs. previous > SoCs? Anything like a function or macro e.g. is_system_gen3() or similar? The proper way to handle this is to make the driver match against "renesas,sdhi-r8a7795", cfr. sh_mobile_sdhi_of_match[]. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds