diff options
Diffstat (limited to 'firmware/target/arm/imx233/creative-zenxfi3')
-rw-r--r-- | firmware/target/arm/imx233/creative-zenxfi3/button-zenxfi3.c | 7 | ||||
-rw-r--r-- | firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi3/button-zenxfi3.c b/firmware/target/arm/imx233/creative-zenxfi3/button-zenxfi3.c index c3f1908511..f89297b80c 100644 --- a/firmware/target/arm/imx233/creative-zenxfi3/button-zenxfi3.c +++ b/firmware/target/arm/imx233/creative-zenxfi3/button-zenxfi3.c | |||
@@ -144,7 +144,7 @@ void button_init_device(void) | |||
144 | bool button_hold(void) | 144 | bool button_hold(void) |
145 | { | 145 | { |
146 | /* B0P04: #hold */ | 146 | /* B0P04: #hold */ |
147 | return !imx233_pinctrl_get_gpio_mask(0, 0x10); | 147 | return !imx233_pinctrl_get_gpio(0, 4); |
148 | } | 148 | } |
149 | 149 | ||
150 | int button_read_device(void) | 150 | int button_read_device(void) |
@@ -172,10 +172,9 @@ int button_read_device(void) | |||
172 | /* B2P07: #volume- | 172 | /* B2P07: #volume- |
173 | * B2P08: #volume+ | 173 | * B2P08: #volume+ |
174 | * PSWITCH: power */ | 174 | * PSWITCH: power */ |
175 | uint32_t mask = imx233_pinctrl_get_gpio_mask(2, 0x180); | 175 | if(!imx233_pinctrl_get_gpio(2, 7)) |
176 | if(!(mask & 0x80)) | ||
177 | res |= BUTTON_VOL_DOWN; | 176 | res |= BUTTON_VOL_DOWN; |
178 | if(!(mask & 0x100)) | 177 | if(!imx233_pinctrl_get_gpio(2, 8)) |
179 | res |= BUTTON_VOL_UP; | 178 | res |= BUTTON_VOL_UP; |
180 | if(BF_RD(POWER_STS, PSWITCH) != 0 && power_ignore_counter == 0) | 179 | if(BF_RD(POWER_STS, PSWITCH) != 0 && power_ignore_counter == 0) |
181 | res |= BUTTON_POWER; | 180 | res |= BUTTON_POWER; |
diff --git a/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c b/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c index de9e2df393..7afdaa316e 100644 --- a/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c +++ b/firmware/target/arm/imx233/creative-zenxfi3/lcd-zenxfi3.c | |||
@@ -54,7 +54,7 @@ static void setup_lcd_pins(bool use_lcdif) | |||
54 | imx233_pinctrl_acquire(1, 21, "lcd cs"); | 54 | imx233_pinctrl_acquire(1, 21, "lcd cs"); |
55 | imx233_pinctrl_acquire(1, 23, "lcd enable"); | 55 | imx233_pinctrl_acquire(1, 23, "lcd enable"); |
56 | imx233_pinctrl_acquire(1, 25, "lcd vsync"); | 56 | imx233_pinctrl_acquire(1, 25, "lcd vsync"); |
57 | imx233_pinctrl_acquire_mask(1, 0x3ffff, "lcd data"); | 57 | //imx233_pinctrl_acquire_mask(1, 0x3ffff, "lcd data"); |
58 | if(use_lcdif) | 58 | if(use_lcdif) |
59 | { | 59 | { |
60 | imx233_pinctrl_set_function(1, 25, PINCTRL_FUNCTION_MAIN); /* lcd_vsync */ | 60 | imx233_pinctrl_set_function(1, 25, PINCTRL_FUNCTION_MAIN); /* lcd_vsync */ |
@@ -70,7 +70,7 @@ static void setup_lcd_pins(bool use_lcdif) | |||
70 | else | 70 | else |
71 | { | 71 | { |
72 | HW_PINCTRL_MUXSELn_SET(2) = 0xffffffff; /* lcd_d{0-15} */ | 72 | HW_PINCTRL_MUXSELn_SET(2) = 0xffffffff; /* lcd_d{0-15} */ |
73 | imx233_pinctrl_enable_gpio_mask(1, 0x2bfffff, false); /* lcd_{d{0-17},reset,rs,wr,cs,enable,vsync} */ | 73 | HW_PINCTRL_DOEn_CLR(1) = 0x2bfffff; |
74 | imx233_pinctrl_set_function(1, 16, PINCTRL_FUNCTION_GPIO); /* lcd_d16 */ | 74 | imx233_pinctrl_set_function(1, 16, PINCTRL_FUNCTION_GPIO); /* lcd_d16 */ |
75 | imx233_pinctrl_set_function(1, 17, PINCTRL_FUNCTION_GPIO); /* lcd_d17 */ | 75 | imx233_pinctrl_set_function(1, 17, PINCTRL_FUNCTION_GPIO); /* lcd_d17 */ |
76 | imx233_pinctrl_set_function(1, 19, PINCTRL_FUNCTION_GPIO); /* lcd_rs */ | 76 | imx233_pinctrl_set_function(1, 19, PINCTRL_FUNCTION_GPIO); /* lcd_rs */ |