This patch uses pin number in bank rather than pin number passed to APIs and changed the mask value. Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>