GPS frequency control

i want to config the frequency of ubx to 2HZ or more fast,but the gps driver doesn’t seems to support it.how should I config or adjust code ? and if my gps’s baudrate does not marry pixhawk,how do I do to change serial4/5 or serial-gps’s baudrate?