浏览代码

avr32: Fix bug in LCD pin setup on port C

Bug was introduced with the new at32_select_periph function.

Signed-off-by: Alex Raimondi <mailinglist@miromico.ch>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Alex Raimondi 16 年之前
父节点
当前提交
6090065663
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/avr32/mach-at32ap/at32ap700x.c

+ 1 - 1
arch/avr32/mach-at32ap/at32ap700x.c

@@ -1470,7 +1470,7 @@ at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data,
 			pin_mask = ATMEL_LCDC_PRI_24BIT | ATMEL_LCDC_PRI_CONTROL;
 			pin_mask = ATMEL_LCDC_PRI_24BIT | ATMEL_LCDC_PRI_CONTROL;
 
 
 		/* LCDC on port C */
 		/* LCDC on port C */
-		portc_mask = (pin_mask & 0xfff80000) >> 19;
+		portc_mask = pin_mask & 0xfff80000;
 		select_peripheral(PIOC, portc_mask, PERIPH_A, 0);
 		select_peripheral(PIOC, portc_mask, PERIPH_A, 0);
 
 
 		/* LCDC on port D */
 		/* LCDC on port D */