[PATCH qemu 11/38] aspeed/smc: get the number of flash modules from hw strapping

Cédric Le Goater clg at kaod.org
Tue Nov 22 18:21:23 AEDT 2016


>> So we should set or unset these SCU regs when the SoC is created and 
>> derive the wdt2 enablement from them. I suppose that the helper routine 
>> to check for the conditions would be under SCU. 
>>
>> or do we start a simple pinctrl model and slowly add the enablement
>> of the pins we need ? 
>>
> 
> From the discussion on IRC last night between Cédric, Joel and myself
> we decided to start on a pinmux backend to help manage these issues.

Do you have a rough idea of an API that the SoC could use ? 

	enum AspeedAST2500Function {
		FWSPICS0,
		FWSPICS1,
		FWSPICS2,
	};

	enum AspeedAST2400Function {
		ROMCS1,
		ROMCS2,
		ROMCS3,
		ROMCS4,
	};

	bool aspeed_pin_is_enabled(AspeedPinmux *p, int func);

Thanks,

C. 



More information about the openbmc mailing list