/* The function is used to adjust the AU9110 master oscillator frequency.  */
void SysCtlRCAdjValueSet(unsigned long ulAdj)
/* The function is used to adjust the AU9110 master oscillator frequency.  */
void SysCtlRCAdjValueSet(unsigned long ulAdj)
{
	unsigned long ulRegData;
	if((xHWREG(SYSCLK_CLKSEL0) & 0X01) == 0)
	{
		ulRegData = xHWREG(GCR_OSCTRIM);
		ulRegData &= ~GCR_OSCTRIM_OSCTRIM0TRIM_M;
		ulRegData |= (ulAdj & 0x000000FF);
		xHWREG(GCR_OSCTRIM) = ulRegData;
	}
	else
	{
		ulRegData = xHWREG(GCR_OSCTRIM);
		ulRegData &= ~GCR_OSCTRIM_OSCTRIM1TRIM_M;
		ulRegData |= (ulAdj & 0x00FF0000);
		xHWREG(GCR_OSCTRIM) = ulRegData;
	}
}