Homogenization of a 2D tidal dynamics equation