[Mer-discuss] Mer and SmartQ

Maurus Cuelenaere mcuelenaere at gmail.com
Sun Sep 27 14:27:13 EEST 2009


Op 27-09-09 03:06, You Sheng schreef:
>
>      * We would like to do q5/q7 runtime distinction detection - can
>      you suggest the
>      best way to do this? (GPIO pin, SoC system ID, ARM ID, EEPROM, ...?)
>
>  Read: /sys/devices/platform/hhtech_gpio/system_flag
>  Q5: system_flag = 0
>  Q7: system_flag = 1

This is a constant compiled into the kernel based on the fact whether
CONFIG_LCD_4 is defined or not.

I presume this means there's no way to detect whether we're on a Q5 or
Q7 at runtime? (with a kernel compiled for both devices)

Regards,

Maurus Cuelenaere


More information about the Mer-discuss mailing list