/* @dev: PCH device @type: PCH type @rev: Minimum required resion  */
static int pch_silicon_supported(struct udevice *dev, int type, int rev)
/* @dev: PCH device @type: PCH type @rev: Minimum required resion  */
static int pch_silicon_supported(struct udevice *dev, int type, int rev)
{
	int cur_type = pch_silicon_type(dev);
	int cur_rev = pch_silicon_revision(dev);
	switch (type) {
	case PCH_TYPE_CPT:
		if (cur_type == PCH_TYPE_CPT && cur_rev >= rev)
			return 1;
		if (cur_type == PCH_TYPE_PPT)
			return 1;
		break;
	case PCH_TYPE_PPT:
		if (cur_type == PCH_TYPE_PPT && cur_rev >= rev)
			return 1;
		break;
	}
	return 0;
}