-
Notifications
You must be signed in to change notification settings - Fork 14
[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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Luca Weiss <[email protected]>
.enable_mask = BIT(0), // FIXME | ||
|
||
.mux_reg = 0x62024, // FIXME | ||
.mux_mask = 0x3ff, // FIXME |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
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