Previously , he had been a professor of physics at Stanford University .
Before teaching at Berkeley , he was a professor of physics at Stanford University .