copied over some more code from asrock e350

Change-Id: I7f6b3ece5374abb644d78019650f3f112b6716c1