Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 9fa7eb283c5cdc2b0f4a8cfe6387ed82e5e9a3d3 authored by Linus Torvalds on 03 June 2009, 03:07:25 UTC
Linux 2.6.30-rc8
Tip revision: 9fa7eb2
pxa910.h
#ifndef __ASM_MACH_PXA910_H
#define __ASM_MACH_PXA910_H

#include <mach/devices.h>

extern struct pxa_device_desc pxa910_device_uart1;
extern struct pxa_device_desc pxa910_device_uart2;

static inline int pxa910_add_uart(int id)
{
	struct pxa_device_desc *d = NULL;

	switch (id) {
	case 1: d = &pxa910_device_uart1; break;
	case 2: d = &pxa910_device_uart2; break;
	}

	if (d == NULL)
		return -EINVAL;

	return pxa_register_device(d, NULL, 0);
}
#endif /* __ASM_MACH_PXA910_H */
back to top