All pastes #755900 Raw Edit

mazzanet

public text v1 · immutable
#755900 ·published 2007-10-30 23:58 UTC
rendered paste body
/*
 * linux/arch/arm/mach-pxa/xda_atom/xda_atom.c
 *
 *  Support for the XDA Atom.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 */

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/fb.h>
#include <linux/platform_device.h>
#include <linux/gpio_keys.h>
#include <linux/input.h>
#include <linux/input_pda.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>

#include <asm/arch/hardware.h>
#include <asm/arch/pxafb.h>
#include <asm/arch/pxa-regs.h>

#include "../generic.h"

#define DEBUG


static struct pxafb_mach_info xda_atom_lcd initdata = {
 .pixclock = 103448,
 .xres = 240,
 .yres = 320,
 .bpp = 16,
 .hsync_len = 6,
 .vsync_len = 4,
 .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
 .lccr0 = 0x07b008f9,
 .lccr3 = 0x04300003,
};

static void __init xda_atom_init(void)
{
    set_pxa_fb_info( &xda_atom_lcd );
}

MACHINE_START(XDA_ATOM, "XDA Atom")
    .phys_io    = 0x40000000,
    .io_pg_offst    = io_p2v(0x40000000),
    .boot_params    = 0xa0000100,
    .map_io     = pxa_map_io,
    .init_irq   = pxa_init_irq,
    .timer      = &pxa_timer,
    .init_machine   = xda_atom_init,
MACHINE_END