The deal for next-generation chips is a boon for Samsung.