Skip to content

[WIP] Add MSM8974 #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

[WIP] Add MSM8974 #35

wants to merge 1 commit into from

Conversation

z3ntu
Copy link

@z3ntu z3ntu commented Jun 18, 2025

Need some help figuring out the remaining values marked with FIXME. I think I understand too little about debugcc and these old clock drivers :)

Downstream: https://github.com/FairphoneMirrors/android_kernel_fairphone_msm8974/blob/int/10/fp2/arch/arm/mach-msm/clock-8974.c#L4431

Signed-off-by: Luca Weiss <[email protected]>
.enable_mask = BIT(0), // FIXME

.mux_reg = 0x62024, // FIXME
.mux_mask = 0x3ff, // FIXME
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be:

		.enable_reg = 0x1880,
		.enable_mask = BIT(16),

		.mux_reg = 0x1880,
		.mux_mask = 0xff,

Hope this helps.

I'm not sure about the div_reg / etc, maybe they should be disabled.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x1ff (bits [8:0]) for mux_mask

div_reg is also 0x1880
div_mask is 0xf000 (bits [15:12])
div_val i don't know, you'll figure it out at runtime

},

.xo_div4_reg = 0x62008,
.debug_ctl_reg = 0x62048,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x1884


.xo_div4_reg = 0x62008,
.debug_ctl_reg = 0x62048,
.debug_status_reg = 0x6204c,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x1888

.div_val = 2, // FIXME
},

.xo_div4_reg = 0x62008,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x10c8 i think

* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please switch to an SPDX header instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants