An engineering-based CS major will require calculus-based physics in college. High school physics is typically a recommended prerequisite (in addition to calculus). AP physics 1 and 2 may be considered like an honors high school physics in this context. AP physics C is sometimes (but often not) allowed to fulfill the physics requirement in college.
A non-engineering-based CS major may not require any physics in college (though there may be science general education requirements). However, taking the usual college prep sciences (a year each of biology, chemistry, and physics, plus an advanced course of your choice if aiming for more selective colleges) is typically a good idea generally for college prep.
Either way, take a year of physics in high school. But there will be diminishing returns for taking additional physics in high school beyond that.