Lines Matching +full:0 +full:xf0
47 #define MLXPLAT_CPLD_LPC_REG_BASE_ADRR 0x2500 /* LPC bus access */
50 #define MLXCPLD_LED_OFFSET_HALF 0x01 /* Offset from solid: 3Hz blink */
51 #define MLXCPLD_LED_OFFSET_FULL 0x02 /* Offset from solid: 6Hz blink */
52 #define MLXCPLD_LED_IS_OFF 0x00 /* Off */
53 #define MLXCPLD_LED_RED_STATIC_ON 0x05 /* Solid red */
58 #define MLXCPLD_LED_GREEN_STATIC_ON 0x0D /* Solid green */
130 0x21, 0xf0, MLXCPLD_LED_GREEN_STATIC_ON, 1,
134 0x21, 0xf0, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
138 0x21, 0x0f, MLXCPLD_LED_GREEN_STATIC_ON, 1,
142 0x21, 0x0f, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
146 0x22, 0xf0, MLXCPLD_LED_GREEN_STATIC_ON, 1,
150 0x22, 0xf0, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
154 0x22, 0x0f, MLXCPLD_LED_GREEN_STATIC_ON, 1,
158 0x22, 0x0f, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
162 0x20, 0x0f, MLXCPLD_LED_GREEN_STATIC_ON, 1,
166 0x20, 0x0f, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
170 0x20, 0xf0, MLXCPLD_LED_GREEN_STATIC_ON, 1,
174 0x20, 0xf0, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
182 0x21, 0xf0, MLXCPLD_LED_GREEN_STATIC_ON, 1,
186 0x21, 0xf0, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
190 0x23, 0xf0, MLXCPLD_LED_GREEN_STATIC_ON, 1,
194 0x23, 0xf0, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
198 0x23, 0x0f, MLXCPLD_LED_GREEN_STATIC_ON, 1,
202 0x23, 0x0f, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
206 0x20, 0xf0, MLXCPLD_LED_GREEN_STATIC_ON, 1,
210 0x20, 0xf0, MLXCPLD_LED_RED_STATIC_ON, LED_OFF,
214 0x24, 0xf0, MLXCPLD_LED_GREEN_STATIC_ON, LED_OFF,
252 if (rw_flag == 0) in mlxcpld_led_bus_access_func()
265 * Parameter vset provides color code: 0x0 for off, 0x5 for solid red, in mlxcpld_led_store_hw()
266 * 0x6 for 3Hz blink red, 0xd for solid green, 0xe for 3Hz blink in mlxcpld_led_store_hw()
269 * 0xf0 - lower nibble is to be used (bits from 0 to 3), mask 0x0f - in mlxcpld_led_store_hw()
275 nib = (mask == 0xf0) ? vset : (vset << 4); in mlxcpld_led_store_hw()
277 mlxcpld_led_bus_access_func(MLXPLAT_CPLD_LPC_REG_BASE_ADRR, off, 0, in mlxcpld_led_store_hw()
307 if (!(*delay_on == 0 && *delay_off == 0) && in mlxcpld_led_blink_set()
323 return 0; in mlxcpld_led_blink_set()
339 for (i = 0; i < cpld->num_led_instances; i++) { in mlxcpld_led_config()
360 return 0; in mlxcpld_led_config()
408 pdev = platform_device_register_simple(KBUILD_MODNAME, -1, NULL, 0); in mlxcpld_led_init()