A self-passivated Cu(Mg) gate electrode for an amorphous silicon thin-film transistor