Tuesday, July 13, 2010

Machine Descriptor

Even though previous image was built successfully, the image crashed while looking for a board irq initialization function. So created a new file (called dummy.c for now) under mach-puppybeagle directory with the following content:

#include
#include
#include
#include
#include


#define    PUPPY_L4_BASE            0x48000000
#define PUPPY_SDRAM_BASE        0x80000000


void arch_reset(char mode, const char *cmd)
{

}

void arch_idle(void)
{

}

void puppy_timer_init(void)
{

}

struct sys_timer puppy_sys_timer = {
    .init = puppy_timer_init,
};


void puppy_irq_init(void)
{
    //printk ("puppy_irq_init++\n");
}

void puppy_board_init(void)
{

}

MACHINE_START(PUPPYBEAGLE, "PuppyBeagle")
    .phys_io    = PUPPY_L4_BASE,
    .boot_params    = PUPPY_SDRAM_BASE + 0x100,
    .timer        = &puppy_sys_timer,
    .init_irq    = puppy_irq_init,
    .init_machine    = puppy_board_init,
MACHINE_END

No comments:

Post a Comment