fix row_diff/col_diff calculations for AXM5500 controller

Signed-off-by: SangeethaRao <sangeetha.rao@lsi.com>