FS#10219 - AMSSansa Debug Clocks

Attached to Project: Rockbox
Opened by Jack Halpin (FlynDice) - Tuesday, 19 May 2009, 07:27 GMT
Last edited by Rafaël Carré (funman) - Tuesday, 19 May 2009, 14:44 GMT
Task Type Patches
Category Operating System/Drivers
Status Closed
Assigned To No-one
Operating System Another
Severity Low
Priority Normal
Reported Version Version 3.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This patch adds a display of the various clock frequencies that various components are getting. The only assumed frequency now is 24MHz for the internal oscillator as clk_main. Every other frequency is calculated using the actual dividers read from the appropriate CGU_ registers. It figures out input frequencies and accounts for different bus modes. I have tried to make it page the information so that it should be useable on a clip but I can't test that myself. The down button should page through and the left button should exit. This area needs a bit of work, it seems a bit balky when paging or exiting but it works. The only clock I know has been left out is the CGU_MS (Memory Stick) which we don't use. I have mostly used the names from the datasheet. For clk_mpmc I use CLK_EXTMEM and SD=NAND=internal and MSD=SD=external on the memory cards.
This task depends upon

Closed by  Rafaël Carré (funman)
Tuesday, 19 May 2009, 14:44 GMT
Reason for closing:  Accepted