Przemyslaw Marczak
1611c8cbcf
exynos5-dt-types: add board detection for Odroid XU3/XU3L/XU4.
...
This commit adds additional file with implementation of board
detection code for Odroid-XU3/XU4.
The detection depends on compatible found in fdt:
- "samsung,exynos5" - uses Exynos5 generic code
- "samsung,odroidxu3" - try detect XU3 revision
There are few revisions of Odroid XU3/XU4, each can be detected
by checking the value of channel 9 of built-in ADC:
Rev ADC Board
0.1 0 XU3 0.1
0.2 372 XU3 0.2 | XU3L - no DISPLAYPORT
0.3 1280 XU4 0.1
The detection code depends on the ADC+10% value.
Implementation of functions:
- set_board_type() - read ADC and set type
- get_board_rev() - returns board revision: 1..3
- get_board_type() - returns board type string
Additional functions with return values of bool:
- board_is_generic() - true if found compatible "samsung,exynos5"
but not "samsung,odroidxu3"
- board_is_odroidxu3() - true if found compatible "samsung,odroidxu3"
and one of XU3 revision.
- board_is_odroidxu4() - true if found compatible "samsung,odroidxu3"
and XU4 revision.
After I2C controller init, the get_board_type() can check
if the XU3 board is a "Lite" variant, by probing chip
0x40 on I2C0 (INA231 - exists only on non-lite).
This is useful for setting fdt file name at misc_init_r().
Enabled configs:
- CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
- CONFIG_ODROID_REV_AIN
- CONFIG_REVISION_TAG
- CONFIG_BOARD_TYPES
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com >
Cc: Minkyu Kang <mk7.kang@samsung.com >
Cc: Simon Glass <sjg@chromium.org >
Tested-by: Anand Moon <linux.amoon@gmail.com >
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com >
2015-11-02 10:38:00 +09:00
..
2014-10-23 11:53:02 -04:00
2014-11-21 04:43:15 +01:00
2014-11-21 04:43:15 +01:00
2014-09-13 16:43:55 -04:00
2015-04-18 11:11:32 -06:00
2015-10-23 14:55:36 +08:00
2015-10-27 12:34:09 +01:00
2015-08-28 11:46:35 -04:00
2015-06-25 22:17:55 -04:00
2015-09-20 10:03:25 +02:00
2015-03-24 10:50:50 -04:00
2015-10-19 17:05:46 -04:00
2015-04-23 14:56:07 -04:00
2014-09-13 16:43:55 -04:00
2015-08-28 12:33:18 -04:00
2015-05-13 09:46:19 -07:00
2014-09-13 16:43:55 -04:00
2015-09-13 11:05:31 +02:00
2015-09-13 10:37:29 +02:00
2014-09-13 16:43:55 -04:00
2015-05-20 11:07:27 -05:00
2014-09-13 16:43:55 -04:00
2015-05-20 11:07:27 -05:00
2014-09-13 16:43:55 -04:00
2015-05-20 11:07:27 -05:00
2014-09-13 16:43:55 -04:00
2015-05-20 11:07:27 -05:00
2014-09-13 16:43:55 -04:00
2014-09-13 16:43:55 -04:00
2014-09-13 16:43:55 -04:00
2015-05-20 11:07:27 -05:00
2015-05-20 11:07:27 -05:00
2015-05-20 11:07:27 -05:00
2015-05-20 11:07:27 -05:00
2014-09-13 16:43:55 -04:00
2014-09-13 16:43:55 -04:00
2014-09-13 16:43:55 -04:00
2014-09-13 16:43:55 -04:00
2015-04-18 11:11:36 -06:00
2015-08-05 17:20:34 +02:00
2014-09-13 16:43:55 -04:00
2014-09-13 16:43:55 -04:00
2014-10-29 09:02:09 -04:00
2015-02-21 08:23:51 -05:00
2015-09-13 11:05:15 +02:00
2014-09-13 16:43:55 -04:00
2015-08-12 20:47:28 -04:00
2015-05-28 08:18:25 -04:00
2015-09-11 14:05:34 -04:00
2015-09-11 17:12:57 -04:00
2015-05-13 13:01:25 +02:00
2014-09-24 18:30:28 -04:00
2014-10-29 09:02:09 -04:00
2014-10-29 09:02:09 -04:00
2014-10-23 09:59:21 -04:00
2015-08-14 11:05:28 -04:00
2015-05-20 11:07:27 -05:00
2014-09-24 18:30:28 -04:00
2015-05-20 11:07:27 -05:00
2015-05-20 11:07:27 -05:00
2014-09-24 18:30:28 -04:00
2014-09-24 18:30:28 -04:00
2015-04-23 14:56:07 -04:00
2015-05-13 09:46:19 -07:00
2015-10-22 14:18:30 -04:00
2015-09-20 11:10:26 +02:00
2015-06-04 03:03:18 -06:00
2015-10-22 14:18:30 -04:00
2014-10-29 09:02:09 -04:00
2015-01-12 09:38:47 -05:00
2015-01-23 16:53:36 -05:00
2015-09-11 14:59:16 -04:00
2015-09-28 10:48:23 -04:00
2015-05-12 18:10:02 -04:00
2015-09-12 20:25:00 +02:00
2015-05-20 11:07:27 -05:00
2015-08-05 08:44:06 -06:00
2015-04-18 11:11:11 -06:00
2015-09-13 10:37:29 +02:00
2015-08-05 08:44:08 -06:00
2015-09-11 14:57:40 -04:00
2015-03-24 10:50:50 -04:00
2015-09-02 21:28:24 -06:00
2015-10-30 09:19:48 -07:00
2014-11-04 15:01:46 -05:00
2015-09-13 10:37:29 +02:00
2014-11-26 11:21:14 -05:00
2015-09-02 21:28:24 -06:00
2015-06-08 17:32:40 -04:00
2015-09-07 13:41:04 +02:00
2015-08-12 12:08:19 -04:00
2015-09-28 10:48:22 -04:00
2015-04-09 16:48:03 -04:00
2014-09-13 16:43:55 -04:00
2014-11-21 04:43:15 +01:00
2015-04-18 11:11:32 -06:00
2015-01-29 13:11:02 +01:00
2014-10-29 09:02:09 -04:00
2015-02-17 22:52:41 +01:00
2015-08-14 16:27:09 -04:00
2015-09-09 07:48:03 -06:00
2014-11-21 04:43:15 +01:00
2015-04-09 09:14:12 +02:00
2015-01-25 23:56:09 +01:00
2015-05-20 11:07:27 -05:00
2015-08-14 16:27:10 -04:00
2015-10-22 14:18:30 -04:00
2014-11-21 04:43:15 +01:00
2015-02-16 15:48:36 -05:00
2014-09-13 16:43:55 -04:00
2015-09-13 10:37:29 +02:00
2015-10-19 11:26:49 -04:00
2015-10-22 14:18:31 -04:00
2015-10-22 14:18:30 -04:00
2015-10-11 17:12:10 -04:00
2015-10-20 07:12:44 +02:00
2015-10-20 07:12:44 +02:00
2015-05-12 18:10:02 -04:00
2015-08-21 15:47:04 +02:00
2014-09-13 16:43:55 -04:00
2014-11-21 04:43:15 +01:00
2014-11-21 04:43:15 +01:00
2015-03-24 10:50:50 -04:00
2014-11-13 08:48:48 +09:00
2014-11-13 08:48:48 +09:00
2015-03-24 10:50:50 -04:00
2015-03-24 10:50:50 -04:00
2014-11-21 04:43:15 +01:00
2015-10-22 14:18:30 -04:00
2015-10-02 11:04:05 -07:00
2014-12-19 15:32:14 +01:00
2014-09-13 16:43:55 -04:00
2014-09-13 16:43:55 -04:00
2015-10-22 14:18:30 -04:00
2015-10-22 14:18:30 -04:00
2014-11-01 18:18:04 +01:00
2014-11-21 04:43:15 +01:00
2015-10-02 10:42:59 +02:00
2014-10-29 09:02:09 -04:00
2014-09-13 16:43:55 -04:00
2014-11-01 18:18:04 +01:00
2015-07-07 11:39:41 +02:00
2015-01-25 23:56:09 +01:00
2015-10-24 13:50:30 -04:00
2015-08-31 17:32:59 +09:00
2015-04-18 11:11:11 -06:00
2015-11-02 10:38:00 +09:00
2015-05-05 20:58:18 -06:00
2014-10-29 09:02:09 -04:00
2014-11-21 04:43:15 +01:00
2014-11-21 04:43:15 +01:00
2015-10-19 17:06:19 -04:00
2014-10-29 09:02:09 -04:00
2015-01-14 11:37:39 -05:00
2015-05-12 18:10:02 -04:00
2015-03-24 10:50:50 -04:00
2015-10-01 09:34:59 +02:00
2015-04-18 11:11:32 -06:00
2015-03-30 23:24:39 -05:00
2015-09-13 10:37:29 +02:00
2015-08-28 12:33:16 -04:00
2015-09-11 14:56:04 -04:00
2015-10-20 22:48:29 +02:00
2015-10-07 18:16:13 +03:00
2015-04-23 14:56:07 -04:00
2015-02-24 17:06:51 -05:00
2014-09-13 16:43:55 -04:00
2015-09-02 15:34:12 +02:00
2015-09-11 17:15:27 -04:00
2015-05-20 11:07:27 -05:00
2015-05-20 11:07:27 -05:00
2015-10-22 14:18:30 -04:00
2015-09-02 15:26:13 +02:00
2015-10-22 14:18:30 -04:00
2015-09-04 11:54:21 +02:00
2015-10-22 14:44:03 -04:00
2015-10-22 14:18:30 -04:00
2015-10-15 11:16:17 +02:00
2015-09-13 11:05:50 +02:00
2015-09-13 11:06:08 +02:00
2014-09-24 18:30:28 -04:00
2014-11-21 04:43:15 +01:00
2015-08-05 17:20:34 +02:00
2015-09-13 10:37:29 +02:00
2015-09-13 10:37:29 +02:00
2015-01-20 10:15:33 -05:00
2015-04-10 14:23:39 +02:00
2015-01-12 09:38:47 -05:00
2015-08-19 11:27:30 +02:00