FreeCalypso > hg > tcs211-pirelli
diff chipsetsw/drivers/drv_core/armio/armio.c @ 27:176f5b1bc360
first round of changes for the Pirelli
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Tue, 08 Sep 2015 01:16:54 +0000 |
parents | 509db1a7b7b8 |
children |
line wrap: on
line diff
--- a/chipsetsw/drivers/drv_core/armio/armio.c Mon Sep 07 19:26:24 2015 +0000 +++ b/chipsetsw/drivers/drv_core/armio/armio.c Tue Sep 08 01:16:54 2015 +0000 @@ -233,32 +233,31 @@ // CLKM_IO_CNTL register configuration : // select IOs 6,8,9,10,11,12 and 13 on the pins instead of MCSI and MCUEN signals. - #if (CHIPSET != 12) + + // Modified for Pirelli DP-L10 in this version + + AI_EnableBit(0); + AI_EnableBit(1); AI_EnableBit(2); + AI_EnableBit(3); AI_EnableBit(4); - #endif /* Bits 5,6,7,8 are used to output I/O 9,10,11,12 or MCSI pins */ /* If Bluetooth, IO should be disabled, outputting MCSI used for Bluetooth voice */ -#ifdef BTEMOBILE - #if (CHIPSET != 12) + /* MCSI is enabled on the Pirelli */ +#if 1 AI_DisableBit(5); AI_DisableBit(6); AI_DisableBit(7); AI_DisableBit(8); - #endif #else - #if (CHIPSET != 12) AI_EnableBit(5); AI_EnableBit(6); AI_EnableBit(7); AI_EnableBit(8); #endif -#endif - #if (CHIPSET != 12) AI_EnableBit(9); - #endif // ARMIO_OUT register configuration : // set IOs 8,9,10,11,12 and 13 as high @@ -281,30 +280,14 @@ // set IOs 1 and 8 to 13 as high // set IOs 0 and 2 to 7 as low // On D-Sample GPIO 1 must be set to high to enable the audio amplifier. - #if (OP_L1_STANDALONE == 0) -// CC test -#if 1 // Dmitriy: GPIO 1 is the interrupt for the ext host, set it to 0 - *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F00; -#else - *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F02; -#endif - //*((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F01; -// end - #else - *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F01; - #endif + + // Modified for Pirelli DP-L10 in this version - // ARMIO_CNTL_REG register configuration : - // set IOs 1,2,5,7,9,14 and 15 as ouputs. -// CC test 0316 + *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000; + AI_ConfigBitAsOutput(1); -// end - AI_ConfigBitAsOutput(2); - AI_ConfigBitAsOutput(5); + AI_ConfigBitAsOutput(4); AI_ConfigBitAsOutput(7); - AI_ConfigBitAsOutput(9); - AI_ConfigBitAsOutput(14); - AI_ConfigBitAsOutput(15); #endif }