try typing ledctl on your command line, should give you the help for it
the led is software based connected to the pxa io pins so asm code should be able to switch it i belive,mabey ethier way that led program allows you to change it
if i rember corectly the 2.6 kerenel has support for led's throght the device /dev/led, cant remeber the major/minor thogh