Add bootloader specific code, need to fix bootloader detection code as well
[openwrt-10.03/.git] / target / linux / brcm63xx-2.6 / patches / 001-brcm_boards.patch
1 +    // start from 2nd blk, assume 1st one is always CFE
2 +       if (boot_loader_type == BOOT_CFE) 
3 +    if (boot_loader_type == BOOT_CFE)
4 +  if (boot_loader_type == BOOT_CFE) {
5 +                       if (boot_loader_type == BOOT_CFE) {
6 +                       if (boot_loader_type == BOOT_CFE) {
7 +                       if (boot_loader_type == BOOT_CFE) {
8 +                    case BCM_IMAGE_CFE:
9 +                       if (boot_loader_type == BOOT_CFE) {
10 +                            printk("Illegal CFE size [%d]. Size allowed: [%d]\n",
11 +                       if (boot_loader_type == BOOT_CFE) {
12 +                       if (boot_loader_type == BOOT_CFE) {
13 +                       if (boot_loader_type == BOOT_CFE) {
14 +                       if (boot_loader_type == BOOT_CFE) {
15 +                       if (boot_loader_type == BOOT_CFE) {
16 +                       if (boot_loader_type == BOOT_CFE) {
17 +                       if (boot_loader_type == BOOT_CFE) {
18 +         if (boot_loader_type == BOOT_CFE) {
19 +         if (boot_loader_type == BOOT_CFE) {
20 +         if (boot_loader_type == BOOT_CFE) {
21 +         if (boot_loader_type == BOOT_CFE) {
22 +         if (boot_loader_type == BOOT_CFE) {
23 +         if (boot_loader_type == BOOT_CFE) {
24 +        case BOARD_IOCTL_GET_CFE_VER:
25 +                char *vertag =  (char *)(FLASH_BASE + CFE_VERSION_OFFSET);
26 +                if (ctrlParms.strLen < CFE_VERSION_SIZE) {
27 +                    __copy_to_user(ctrlParms.string, vertag+CFE_VERSION_MARK_SIZE, CFE_VERSION_SIZE);
28 + *              (Linux kernel and CFE share this source file.)
29 +#ifdef _CFE_                                                
30 +    if (boot_loader_type == BOOT_CFE)
31 +    if (boot_loader_type == BOOT_CFE)
32 +    if (boot_loader_type == BOOT_CFE)
33 + * CFE bootline=bcmEnet(0,0)host:vmlinux e=192.169.0.100:ffffff00 h=192.169.0.1