Wei-Ning Huang
7eae5a320f
stm32f4: clock stm32f412 at 96MHz
...
On stm32f412, AHB prescaler must be 1 in order for stm32f412 to be
clocked at greater than 50MHz. APBX prescaler must be 2 so the clocks
can be in the right range. When APBX prescaler != 1, it results in 2x
timer clocks on both APB1 and APB2. We added a new
clock_get_timer_freq() function for stm32 to get timer specific clock
frequency so we can return 2x timer clocks when APBX != 1.
Flash latencies also need to be changed when we clock at 96MHz, the
FLASH_ACR_LATENCY defines are moved into the variant-specific switches
so each board can defined latency when setting CPU clocks.
BUG=b:38077127
TEST=`make BOARD=rose -j`, touch performance improved by 2x.
Change-Id: Ieb211ad80c168d3f57e72a8d16b954b703ee1444
Reviewed-on: https://chromium-review.googlesource.com/539375
Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org >
Tested-by: Wei-Ning Huang <wnhuang@chromium.org >
Reviewed-by: Rong Chang <rongchang@chromium.org >
2017-06-21 01:02:59 -07:00
..
2014-03-20 23:51:28 +00:00
2016-11-15 17:41:53 -08:00
2017-01-02 14:04:10 -08:00
2017-01-02 14:04:10 -08:00
2017-06-03 02:02:42 -07:00
2016-02-26 21:22:07 -08:00
2017-06-21 01:02:59 -07:00
2017-06-21 01:02:59 -07:00
2017-01-26 18:43:53 -08:00
2014-10-07 20:58:52 +00:00
2017-06-21 01:02:59 -07:00
2017-06-21 01:02:59 -07:00
2017-06-21 01:02:59 -07:00
2017-03-28 11:27:57 -07:00
2016-04-19 19:19:10 -07:00
2015-10-19 15:15:36 -07:00
2015-09-16 14:49:33 -07:00
2017-02-27 16:56:24 -08:00
2015-09-16 14:49:33 -07:00
2017-06-03 02:02:42 -07:00
2015-09-16 14:49:33 -07:00
2015-09-16 14:49:33 -07:00
2017-02-17 01:47:29 -08:00
2016-04-25 16:49:02 -07:00
2015-06-18 19:07:00 +00:00
2015-10-19 13:45:49 -07:00
2015-10-19 13:45:49 -07:00
2016-08-17 16:19:07 -07:00
2016-08-17 16:19:07 -07:00
2017-06-03 02:02:42 -07:00
2017-02-25 08:36:41 -08:00
2015-06-30 17:18:59 +00:00
2017-06-03 02:02:42 -07:00
2017-03-24 19:38:04 -07:00
2017-02-12 21:05:11 -08:00
2016-03-02 20:26:20 -08:00
2016-04-27 14:04:07 -07:00
2015-09-29 21:11:40 -07:00
2015-09-29 21:11:40 -07:00
2017-04-26 11:25:57 -07:00
2016-07-29 10:51:20 -07:00
2015-09-29 21:11:40 -07:00
2017-03-01 16:36:24 -08:00
2017-06-21 01:02:59 -07:00
2017-06-21 01:02:59 -07:00
2017-05-18 06:03:50 -07:00
2014-10-07 20:58:52 +00:00
2017-05-23 16:56:55 -07:00
2016-10-05 20:58:20 -07:00
2016-08-24 16:30:10 +00:00
2014-03-11 05:52:44 +00:00
2014-10-07 20:58:52 +00:00
2016-08-17 16:19:07 -07:00
2016-04-25 16:49:02 -07:00
2013-07-08 13:53:58 -07:00
2014-10-02 20:51:05 +00:00
2016-08-24 16:30:10 +00:00
2015-12-04 01:20:33 -08:00
2015-12-04 01:20:33 -08:00
2017-06-21 01:02:59 -07:00
2017-05-22 05:02:46 -07:00
2017-03-13 05:16:04 -07:00
2016-04-25 16:49:01 -07:00
2017-06-12 20:27:55 -07:00
2017-02-23 11:36:21 -08:00
2016-11-15 17:41:53 -08:00
2016-08-24 16:30:10 +00:00
2015-08-24 19:08:35 +00:00
2016-11-15 17:41:53 -08:00
2015-08-10 17:54:17 +00:00
2015-08-10 17:54:17 +00:00
2015-08-24 19:08:35 +00:00
2015-08-24 19:08:35 +00:00
2015-07-21 18:30:40 +00:00
2016-11-15 17:41:53 -08:00
2015-08-24 19:08:35 +00:00
2016-11-15 17:41:53 -08:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-10 17:54:17 +00:00
2015-08-24 19:08:35 +00:00
2017-03-16 11:25:50 -07:00
2016-09-02 21:17:22 -07:00
2016-09-01 22:56:22 -07:00
2016-10-21 21:20:49 -07:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2017-06-13 21:23:56 -07:00
2015-01-05 19:10:22 +00:00
2015-06-18 05:07:55 +00:00
2017-03-16 11:25:50 -07:00
2017-05-18 06:03:52 -07:00
2017-06-02 23:59:05 -07:00
2017-05-18 06:03:52 -07:00
2017-05-18 06:03:52 -07:00
2016-11-22 18:36:36 -08:00
2015-10-23 19:29:27 -07:00
2016-12-26 10:55:08 -08:00
2016-11-11 17:20:19 -08:00
2017-03-16 11:25:50 -07:00
2017-03-16 11:25:50 -07:00
2017-03-01 07:25:03 -08:00
2017-03-01 07:25:03 -08:00
2014-11-11 21:46:16 +00:00
2017-03-01 07:25:03 -08:00
2017-03-22 08:21:00 -07:00
2017-03-16 11:25:50 -07:00
2017-06-13 21:23:56 -07:00
2014-06-20 18:27:26 +00:00