mali: platform rewrite

Signed-off-by: Curtis Menard <curtis.menard@gmail.com>