Ground Pound Switch
From the Super Mario Wiki
A Ground Pound Switch is a type of switch that appeared in Super Mario Galaxy. To use this item, Mario must Ground Pound it (hence the name). Upon pressing this switch, a variety of things can happen, mainly making Star Bits or coins appear.
There are also timed ground pound switches, tree stumps which have similar effects, and grey ground-pound switches that make walls fall down, making other areas accessible.
They are also shown again in Super Mario Galaxy 2, having the same functions like in the first game. There is also a new function for Ground Pound Switches in this game. If Mario ground pounds one of the switches, the screen would turn grayscale, and the environment and enemies on the respective planet would slow down greatly. This new function appeared in the Space Storm Galaxy and the Clockwork Ruins Galaxy, and was useful in avoiding stage hazards that would be impossible to dodge otherwise.
Also, Whomps have a switch on their backs similar to the ground pound. Activating the switch with a ground pound will defeat the creature.