The Compatibility Support Module (CSM) is a component of the UEFI firmware that provides legacy BIOS compatibility by emulating a BIOS environment, allowing legacy operating systems and some option ROMs that do not support UEFI to still be used. In other words, you are using EFI. On the other hand you seem to have figured out something that no one else managed to do. The web is full of users who are struggling to get AHCI working on the Boot Camp partition. Google "enable sata ahci in windows bootcamp" and you see what I mean. The usual solution involves quite complicated Windows registry changes, MBR changes and boot from external volume. That enables AHCI and TRIM in Windows but gives problems with sleep mode and sound card drivers etc. I have tried this on a Samsung EVO 840 256 GB SSD OSX 10.9-10.10, and now recently on a Crucial MX200 512 GB SSD OSX 10.11 in a MBP late 2011, with Windows 7. It all becomes virtual ATA IDE disks and judging from the many web discussions in the matter everyone else except you have the same problem. Would you please be so kind as to share with all of us what you did?
http://forums.macrumors.com/threads/tutorial-enable-sata-ahci-mode-in-windows-7- 8-8-1-10.1908034/
http://www.adminsehow.com/2012/10/how-to-enable-ahci-support-for-windows-on-an-i mac-macbook-or-etc/
TRIM in 3d party disks is no longer a problem in OSX since Apple included a new command named “trimforce” in a minor update to OS X 10.10 Yosemite — OS X 10.10.4. This utility is also included in OS X 10.11 El Capitan. All you need to do to enable that is to open Terminal and write the command - sudo trimforce enable. Works perfectly well without KEXT signing changes in most modern SSDs (there are some exceptions like the Samsung 8** series).
http://www.howtogeek.com/222077/how-to-enable-trim-for-third-party-ssds-on-mac-o s-x/