mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
23 lines
684 B
C
23 lines
684 B
C
#ifndef __PLATFORM_PB926_PLATFORM_H__
|
|
#define __PLATFORM_PB926_PLATFORM_H__
|
|
/*
|
|
* Platform specific ties between drivers and generic APIs used by the kernel.
|
|
* E.g. system timer and console.
|
|
*
|
|
* Copyright (C) Bahadir Balban 2007
|
|
*/
|
|
|
|
#include INC_PLAT(offsets.h)
|
|
#include INC_GLUE(memlayout.h)
|
|
|
|
#define PLATFORM_CONSOLE_BASE PB926_UART0_VBASE
|
|
#define PLATFORM_TIMER_BASE PB926_TIMER01_VBASE
|
|
#define PLATFORM_SP810_BASE PB926_SYSCTRL_VBASE
|
|
#define PLATFORM_IRQCTRL_BASE PB926_VIC_VBASE
|
|
#define PLATFORM_SIRQCTRL_BASE PB926_SIC_VBASE
|
|
|
|
void platform_irq_enable(int irq);
|
|
void platform_irq_disable(int irq);
|
|
void timer_start(void);
|
|
#endif /* __PLATFORM_PB926_PLATFORM_H__ */
|