Rudolf Marek wrote:
What about a weak function? I think about this:
Make a non-weak dummy function which will read the original devicetree data. Create a weak function in your mainboard.c which will override it.
[coreboot] [PATCH] [RFC] sata PHY settings callback on SB700
Hmm, that's a nice idea. Another possibility I was thinking about was adding a gpio number field to devicetree.cb, so you'd have a flag 'use gpio' and a register for the gpio number, maybe with negative values meaning 'needs to be inverted' or another flag 'invert gpio', but that assumes it's always connected to one of the southbridge gpios...