To motivate, encourage or mentally (emotionally) prepare.
To be courageous; to regain one's courage.
Used when encouraging someone to bear or take up a difficult situation.