[PATCH 6.12 160/393] pwm: rcar: Improve register calculation