The SEP contribution is based on the wages reported on the W-2 income that the shareholder employee received for services performed. 

It does not include ordinary income that flows through to the shareholder on Schedule K-1 [§1402(a) via §401(c)(1)].