Hi,
So, I'm looking into h8 EC access.
Where does ec_set_bit(0x3a, 0) for audio-mute or ec_set_bit(0x3a, 6) for wwan-enable come from (let's keep that as an example)?
On the X230, for example wwan-disable should be on GPIO23 (GPIO023 i guess). In the mec1618 (ok different, but hopefully similar enough) datasheet I can't really find the connection to coreboot's implementation here -.-
So there's the AHB Base Address 0xC400h right? Then for example there's the 4 bytes "GPIO[000:036] Input Register" at base+0x300. According to this "bit indexing example" table, GPIO023 would be Bit 19 of those 4 bytes...
If so (?), how does that relate to ec_set_bit(0x3a, 6)? It all still totally unclear to me, but I might get it all wrong :)
thanks a lot,
martin