Everything that you can feed boars to tame them can also be fed to them when they're tamed. This includes carrots, raspberries, mushrooms, and blueberries. But, not cloudberries from the Plains, so don't try feeding them those. Boars will ignore the cloudberries, unfortunately.
Do boar eat berries Valheim?
Tamed Boars eat the same food as Wild Boars - Mushrooms, Carrots, and berries. You should periodically approach your Boar pen and see if any of them have become hungry. If so, feed them. Lack of food will eventually result in death by starvation, so keep on top of your responsibilities here.
What do you feed boars Valheim?
To tame a boar in Valheim and gain their trust, you need to use food from your supplies — namely carrots and turnips ("roots of the ground"), though mushrooms, raspberries, and blueberries actually work as well. The tricky part is working out how close you need to be to the boar when you place the food down.