Ticket #1380: pr1380.diff
File pr1380.diff, 4.0 KB (added by Joel Sherrill, on 03/02/09 at 16:04:56) |
---|
-
c/src/lib/libbsp/arm/rtl22xx/include/bsp.h
RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/arm/rtl22xx/include/bsp.h,v retrieving revision 1.6 diff -u -r1.6 bsp.h
30 30 /* cclk=cco/(2*P) */ 31 31 /* cco = cclk*2*P */ 32 32 33 #define LPC22xx_Fcclk CONFIG_ARM_CLK /* system clk frequecy,<=60Mhz, defined in system configuration */ 33 /* system clk frequecy,<=60Mhz, defined in system configuration */ 34 #define LPC22xx_Fcclk CONFIG_ARM_CLK 34 35 35 36 /* Fcco 156M~320Mhz*/ 36 #define LPC22xx_Fcclk CONFIG_ARM_CLK /* system clk frequecy,<=60Mhz, defined in system configuration */ 37 /* system clk frequecy,<=60Mhz, defined in system configuration */ 38 #define LPC22xx_Fcclk CONFIG_ARM_CLK 37 39 #define LPC22xx_Fcco LPC22xx_Fcclk * 4 38 #define LPC22xx_Fpclk (LPC22xx_Fcclk /4) *1 /*VPB clk frequency,1,1/2,1/4 times of Fcclk */ 40 /*VPB clk frequency,1,1/2,1/4 times of Fcclk */ 41 #define LPC22xx_Fpclk (LPC22xx_Fcclk /4) *1 39 42 40 43 41 44 … … 76 79 /** 77 80 * help file 78 81 */ 79 /* ϵͳÉèÖÃ, Fosc¡¢Fcclk¡¢Fcco¡¢Fpclk±ØÐ붚Òå*/ 80 #define Fosc 11059200 //Ÿ§ÕñƵÂÊ,10MHz~25MHz£¬ÓŠµ±ÓëʵŒÊÒ»ÖÁ 81 #define Fcclk (Fosc << 2) //ϵͳƵÂÊ£¬±ØÐëΪFoscµÄÕûÊý±¶(1~32)£¬ÇÒ<=60MHZ 82 #define Fcco (Fcclk <<2) //CCOƵÂÊ£¬±ØÐëΪFcclkµÄ2¡¢4¡¢8¡¢16±¶£¬·¶Î§Îª156MHz~320MHz 83 #define Fpclk (Fcclk >>2) * 1 //VPBʱÖÓƵÂÊ£¬Ö»ÄÜΪ(Fcclk / 4)µÄ1 ~ 4±¶ 84 #define M Fcclk / Fosc; 85 #define P_min Fcco_MIN / (2*Fcclk) + 1; 86 #define P_max Fcco_MAX / (2*Fcclk); 82 /* System configure, Fosc Fcclk Fcco Fpclk must be defined*/ 83 #define Fosc 11059200 // osc freq,10MHz~25MHz, 84 // change to real one if needed 85 #define Fcclk (Fosc << 2) //system freq 2^n time of Fosc(1~32) <=60MHZ 86 #define Fcco (Fcclk <<2) //CCO freq 2,4,8,16 time of Fcclk 156MHz~320MHz 87 #define Fpclk (Fcclk >>2) * 1 //VPB freq only(Fcclk / 4) 1~4 88 #define M Fcclk / Fosc 89 #define P_min Fcco_MIN / (2*Fcclk) + 1; 90 #define P_max Fcco_MAX / (2*Fcclk); 87 91 88 92 89 93 … … 106 110 #define SPI_CS_PIN_FUNC PINSEL0_bit.SPI_CS_PIN 107 111 108 112 // Flash definition 109 //#define FLASH_SIZE 110 #define FLASH_SIZE 111 //#define FLASH_SIZE 112 #define FLASH_BEGIN 113 #define FLASH_BASE 113 //#define FLASH_SIZE (0x200000-FLASH_BOOT) // Total area of Flash region in words 8 bit 114 #define FLASH_SIZE (0x80000-FLASH_BOOT) // Total area of Flash region in words 8 bit 115 //#define FLASH_SIZE (0x80000-FLASH_BOOT) // Total area of Flash region in words 8 bit 116 #define FLASH_BEGIN 0x80000000 117 #define FLASH_BASE (FLASH_BEGIN+FLASH_BOOT) //First 0x8000 bytes reserved for boot loader etc. 114 118 115 119 // SRAM definition 116 #define SRAM_SIZE 117 #define SRAM_BASE 120 #define SRAM_SIZE 0x100000 // Total area of Flash region in words 8 bit 121 #define SRAM_BASE 0x81000000 //First 0x8000 bytes reserved for boot loader etc. 118 122 119 123 // CS8900A definition 120 #define CS8900A_BASE 0x82000000 //124 #define CS8900A_BASE 0x82000000 121 125 // RTL8019AS definition 122 #define RTL8019AS_BASE 0x82000000 //126 #define RTL8019AS_BASE 0x82000000 123 127 124 128 struct rtems_bsdnet_ifconfig; 125 129 int cs8900_driver_attach (struct rtems_bsdnet_ifconfig *config,