Commit a2062807 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk

into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents 77eb3558 ad51287b
......@@ -35,21 +35,15 @@ __XScale_start:
mcr p15, 0, r0, c1, c0, 0
#ifdef CONFIG_ARCH_IQ80321
orr pc, pc, #PHYS_OFFSET @ jump to physical memory if we are not there.
nop
mov r7, #MACH_TYPE_IQ80321
#endif
#ifdef CONFIG_ARCH_IQ31244
orr pc, pc, #PHYS_OFFSET @ jump to physical memory if we are not there.
nop
mov r7, #(MACH_TYPE_IQ31244 & 0xff)
orr r7, r7, #(MACH_TYPE_IQ31244 & 0xff00)
#endif
#ifdef CONFIG_ARCH_IQ80331
orr pc, pc, #PHYS_OFFSET @ jump to physical memory if we are not there.
nop
mov r7, #(MACH_TYPE_IQ80331 & 0xff)
orr r7, r7, #(MACH_TYPE_IQ80331 & 0xff00)
#endif
......
......@@ -23,17 +23,17 @@ unsigned int __machine_arch_type;
#include <asm/arch/uncompress.h>
#ifdef STANDALONE_DEBUG
#define puts printf
#define putstr printf
#endif
#ifdef CONFIG_DEBUG_ICEDCC
#define puts icedcc_puts
#define putstr icedcc_putstr
#define putc icedcc_putc
extern void idedcc_putc(int ch);
static void
icedcc_puts(const char *ptr)
icedcc_putstr(const char *ptr)
{
for (; *ptr != '\0'; ptr++) {
icedcc_putc(*ptr);
......@@ -191,7 +191,7 @@ static void error(char *m);
static void gzip_mark(void **);
static void gzip_release(void **);
static void puts(const char *);
static void putstr(const char *);
extern int end;
static ulg free_mem_ptr;
......@@ -280,14 +280,14 @@ void flush_window(void)
bytes_out += (ulg)outcnt;
output_ptr += (ulg)outcnt;
outcnt = 0;
puts(".");
putstr(".");
}
static void error(char *x)
{
puts("\n\n");
puts(x);
puts("\n\n -- System halted");
putstr("\n\n");
putstr(x);
putstr("\n\n -- System halted");
while(1); /* Halt */
}
......@@ -306,9 +306,9 @@ decompress_kernel(ulg output_start, ulg free_mem_ptr_p, ulg free_mem_ptr_end_p,
arch_decomp_setup();
makecrc();
puts("Uncompressing Linux...");
putstr("Uncompressing Linux...");
gunzip();
puts(" done, booting the kernel.\n");
putstr(" done, booting the kernel.\n");
return output_ptr;
}
#else
......@@ -320,9 +320,9 @@ int main()
output_data = output_buffer;
makecrc();
puts("Uncompressing Linux...");
putstr("Uncompressing Linux...");
gunzip();
puts("done.\n");
putstr("done.\n");
return 0;
}
#endif
......
......@@ -35,6 +35,10 @@
#include <asm/hardware/sa1111.h>
#ifdef CONFIG_ARCH_PXA
#include <asm/arch/pxa-regs.h>
#endif
extern void __init sa1110_mb_enable(void);
/*
......
......@@ -23,6 +23,7 @@
#include <asm/hardware.h>
#include <asm/dma.h>
#include <asm/arch/pxa-regs.h>
static struct dma_channel {
char *name;
......
......@@ -30,6 +30,7 @@
#include <asm/pgtable.h>
#include <asm/mach/map.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/udc.h>
#include <asm/arch/pxafb.h>
#include <asm/arch/mmc.h>
......
......@@ -27,6 +27,7 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/idp.h>
#include "generic.h"
......
......@@ -20,6 +20,7 @@
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/arch/pxa-regs.h>
#include "generic.h"
......
......@@ -17,6 +17,7 @@
#include <asm/hardware.h>
#include <asm/leds.h>
#include <asm/system.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/lubbock.h>
#include "leds.h"
......
......@@ -17,6 +17,7 @@
#include <asm/leds.h>
#include <asm/system.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/mainstone.h>
#include "leds.h"
......
......@@ -29,6 +29,7 @@
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/lubbock.h>
#include <asm/arch/udc.h>
#include <asm/arch/pxafb.h>
......
......@@ -31,6 +31,7 @@
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/mainstone.h>
#include <asm/arch/pxafb.h>
......
......@@ -19,6 +19,7 @@
#include <asm/hardware.h>
#include <asm/memory.h>
#include <asm/system.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/lubbock.h>
......
......@@ -22,6 +22,7 @@
#include <linux/pm.h>
#include <asm/hardware.h>
#include <asm/arch/pxa-regs.h>
#include "generic.h"
......
......@@ -14,6 +14,7 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <asm/arch/pxa-regs.h>
#include <linux/init.h>
#include <linux/pm.h>
......
......@@ -27,6 +27,7 @@
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
#include <asm/arch/pxa-regs.h>
static inline unsigned long pxa_get_rtc_time(void)
......
......@@ -33,6 +33,7 @@
#include <asm/irq.h>
#include <asm/sizes.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/mmc.h>
#include "pxamci.h"
......
......@@ -28,6 +28,7 @@
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/system.h>
#include <asm/arch/pxa-regs.h>
#include <pcmcia/cs_types.h>
#include <pcmcia/ss.h>
......@@ -178,39 +179,6 @@ int pxa2xx_drv_pcmcia_probe(struct device *dev)
first = ops->first;
nr = ops->nr;
/* Setup GPIOs for PCMCIA/CF alternate function mode.
*
* It would be nice if set_GPIO_mode included support
* for driving GPIO outputs to default high/low state
* before programming GPIOs as outputs. Setting GPIO
* outputs to default high/low state via GPSR/GPCR
* before defining them as outputs should reduce
* the possibility of glitching outputs during GPIO
* setup. This of course assumes external terminators
* are present to hold GPIOs in a defined state.
*
* In the meantime, setup default state of GPIO
* outputs before we enable them as outputs.
*/
GPSR(GPIO48_nPOE) = GPIO_bit(GPIO48_nPOE) |
GPIO_bit(GPIO49_nPWE) |
GPIO_bit(GPIO50_nPIOR) |
GPIO_bit(GPIO51_nPIOW) |
GPIO_bit(GPIO52_nPCE_1) |
GPIO_bit(GPIO53_nPCE_2);
pxa_gpio_mode(GPIO48_nPOE_MD);
pxa_gpio_mode(GPIO49_nPWE_MD);
pxa_gpio_mode(GPIO50_nPIOR_MD);
pxa_gpio_mode(GPIO51_nPIOW_MD);
pxa_gpio_mode(GPIO52_nPCE_1_MD);
pxa_gpio_mode(GPIO53_nPCE_2_MD);
pxa_gpio_mode(GPIO54_pSKTSEL_MD); /* REVISIT: s/b dependent on num sockets */
pxa_gpio_mode(GPIO55_nPREG_MD);
pxa_gpio_mode(GPIO56_nPWAIT_MD);
pxa_gpio_mode(GPIO57_nIOIS16_MD);
/* Provide our PXA2xx specific timing routines. */
ops->set_timing = pxa2xx_pcmcia_set_timing;
#ifdef CONFIG_CPU_FREQ
......
......@@ -25,10 +25,40 @@
#include <asm/hardware.h>
#include <asm/hardware/sa1111.h>
#include <asm/mach-types.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/lubbock.h>
#include "sa1111_generic.h"
static int
lubbock_pcmcia_hw_init(struct soc_pcmcia_socket *skt)
{
/*
* Setup default state of GPIO outputs
* before we enable them as outputs.
*/
GPSR(GPIO48_nPOE) =
GPIO_bit(GPIO48_nPOE) |
GPIO_bit(GPIO49_nPWE) |
GPIO_bit(GPIO50_nPIOR) |
GPIO_bit(GPIO51_nPIOW) |
GPIO_bit(GPIO52_nPCE_1) |
GPIO_bit(GPIO53_nPCE_2);
pxa_gpio_mode(GPIO48_nPOE_MD);
pxa_gpio_mode(GPIO49_nPWE_MD);
pxa_gpio_mode(GPIO50_nPIOR_MD);
pxa_gpio_mode(GPIO51_nPIOW_MD);
pxa_gpio_mode(GPIO52_nPCE_1_MD);
pxa_gpio_mode(GPIO53_nPCE_2_MD);
pxa_gpio_mode(GPIO54_pSKTSEL_MD);
pxa_gpio_mode(GPIO55_nPREG_MD);
pxa_gpio_mode(GPIO56_nPWAIT_MD);
pxa_gpio_mode(GPIO57_nIOIS16_MD);
return sa1111_pcmcia_hw_init(skt);
}
static int
lubbock_pcmcia_configure_socket(struct soc_pcmcia_socket *skt,
const socket_state_t *state)
......@@ -201,7 +231,7 @@ lubbock_pcmcia_configure_socket(struct soc_pcmcia_socket *skt,
static struct pcmcia_low_level lubbock_pcmcia_ops = {
.owner = THIS_MODULE,
.hw_init = sa1111_pcmcia_hw_init,
.hw_init = lubbock_pcmcia_hw_init,
.hw_shutdown = sa1111_pcmcia_hw_shutdown,
.socket_state = sa1111_pcmcia_socket_state,
.configure_socket = lubbock_pcmcia_configure_socket,
......
......@@ -24,6 +24,7 @@
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/mainstone.h>
#include "soc_common.h"
......@@ -38,6 +39,29 @@ static struct pcmcia_irqs irqs[] = {
static int mst_pcmcia_hw_init(struct soc_pcmcia_socket *skt)
{
/*
* Setup default state of GPIO outputs
* before we enable them as outputs.
*/
GPSR(GPIO48_nPOE) =
GPIO_bit(GPIO48_nPOE) |
GPIO_bit(GPIO49_nPWE) |
GPIO_bit(GPIO50_nPIOR) |
GPIO_bit(GPIO51_nPIOW) |
GPIO_bit(GPIO85_nPCE_1) |
GPIO_bit(GPIO54_nPCE_2);
pxa_gpio_mode(GPIO48_nPOE_MD);
pxa_gpio_mode(GPIO49_nPWE_MD);
pxa_gpio_mode(GPIO50_nPIOR_MD);
pxa_gpio_mode(GPIO51_nPIOW_MD);
pxa_gpio_mode(GPIO85_nPCE_1_MD);
pxa_gpio_mode(GPIO54_nPCE_2_MD);
pxa_gpio_mode(GPIO79_pSKTSEL_MD);
pxa_gpio_mode(GPIO55_nPREG_MD);
pxa_gpio_mode(GPIO56_nPWAIT_MD);
pxa_gpio_mode(GPIO57_nIOIS16_MD);
skt->irq = (skt->nr == 0) ? MAINSTONE_S0_IRQ : MAINSTONE_S1_IRQ;
return soc_pcmcia_request_irqs(skt, irqs, ARRAY_SIZE(irqs));
}
......
......@@ -49,6 +49,11 @@
#include "soc_common.h"
/* FIXME: platform dependent resource declaration has to move out of this file */
#ifdef CONFIG_ARCH_PXA
#include <asm/arch/pxa-regs.h>
#endif
#ifdef DEBUG
static int pc_debug;
......
......@@ -40,6 +40,7 @@
#include <asm/io.h>
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/arch/pxa-regs.h>
#if defined(CONFIG_SERIAL_PXA_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
#define SUPPORT_SYSRQ
......
......@@ -54,6 +54,7 @@
#include <asm/mach-types.h>
#include <asm/unaligned.h>
#include <asm/hardware.h>
#include <asm/arch/pxa-regs.h>
#include <linux/usb_ch9.h>
#include <linux/usb_gadget.h>
......
......@@ -43,6 +43,7 @@
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/bitfield.h>
#include <asm/arch/pxafb.h>
......
......@@ -16,7 +16,7 @@ static __inline__ void putc(char c)
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
putc(*s);
......
......@@ -40,7 +40,7 @@
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
char c;
......
......@@ -11,7 +11,7 @@
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
unsigned long tmp1, tmp2;
__asm__ __volatile__(
......
......@@ -29,7 +29,7 @@ static __inline__ void putc(char c)
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
putc(*s);
......
......@@ -26,7 +26,7 @@
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
while ((*UART_TSR(EXC_UART00_BASE) &
......
......@@ -40,7 +40,7 @@
* This does not append a newline
*/
static void
puts(const char *s)
putstr(const char *s)
{
unsigned long serial_port;
......
......@@ -28,7 +28,7 @@
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
while (AMBA_UART_FR & (1 << 5));
......
......@@ -4,6 +4,8 @@
#ifndef __ASM_ARCH_HARDWARE_H
#define __ASM_ARCH_HARDWARE_H
#include <asm/types.h>
/*
* Note about PCI IO space mappings
*
......
......@@ -26,7 +26,7 @@ static __inline__ void putc(char c)
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
putc(*s);
......
......@@ -37,7 +37,7 @@ static __inline__ void putc(char c)
*UARTDR = c;
}
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s)
{
......
......@@ -32,7 +32,7 @@ static __inline__ void putc(char c)
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s)
{
......
......@@ -23,7 +23,7 @@ static __inline__ void putc(char c)
__raw_writeb(c, IO_UART + 0x00);
}
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
if (*s == 10) { /* If a LF, add CR */
......
......@@ -29,7 +29,7 @@ static __inline__ void putc (char ch)
UART_DATA = ch;
}
static void puts (const char* sz)
static void putstr (const char* sz)
{
for (; *sz; ++sz) {
putc (*sz);
......
......@@ -28,7 +28,7 @@
#define omap_get_id() ((*(volatile unsigned int *)(0xfffed404)) >> 12) & ID_MASK
static void
puts(const char *s)
putstr(const char *s)
{
volatile u8 * uart = 0;
int shift = 0;
......
......@@ -72,8 +72,6 @@ typedef struct { volatile u32 offset[4096]; } __regbase;
#endif
#include "pxa-regs.h"
#ifndef __ASSEMBLY__
/*
......
......@@ -15,17 +15,6 @@
#include <linux/config.h>
// FIXME hack so that SA-1111.h will work [cb]
#ifndef __ASSEMBLY__
typedef unsigned short Word16 ;
typedef unsigned int Word32 ;
typedef Word32 Word ;
typedef Word Quad [4] ;
typedef void *Address ;
typedef void (*ExcpHndlr) (void) ;
#endif
/*
* PXA Chip selects
*/
......@@ -962,7 +951,7 @@ typedef void (*ExcpHndlr) (void) ;
#define ICCR0_LBM (1 << 1) /* Loopback mode */
#define ICCR0_ITR (1 << 0) /* IrDA transmission */
#ifdef CONFIG_CPU_BULVERDE
#ifdef CONFIG_PXA27x
#define ICCR2_RXP (1 << 3) /* Receive Pin Polarity select */
#define ICCR2_TXP (1 << 2) /* Transmit Pin Polarity select */
#define ICCR2_TRIG (3 << 0) /* Receive FIFO Trigger threshold */
......@@ -971,7 +960,7 @@ typedef void (*ExcpHndlr) (void) ;
#define ICCR2_TRIG_32 (2 << 0) /* >= 32 bytes */
#endif
#ifdef CONFIG_CPU_BULVERDE
#ifdef CONFIG_PXA27x
#define ICSR0_EOC (1 << 6) /* DMA End of Descriptor Chain */
#endif
#define ICSR0_FRE (1 << 5) /* Framing error */
......@@ -1185,6 +1174,7 @@ typedef void (*ExcpHndlr) (void) ;
#define GPIO30_SDATA_OUT 30 /* AC97/I2S Sdata_out */
#define GPIO31_SYNC 31 /* AC97/I2S sync */
#define GPIO32_SDATA_IN1 32 /* AC97 Sdata_in1 */
#define GPIO32_MMCCLK 32 /* MMC Clock (PXA270) */
#define GPIO33_nCS_5 33 /* chip select 5 */
#define GPIO34_FFRXD 34 /* FFUART receive */
#define GPIO34_MMCCS0 34 /* MMC Chip Select 0 */
......@@ -1213,6 +1203,7 @@ typedef void (*ExcpHndlr) (void) ;
#define GPIO53_MMCCLK 53 /* MMC Clock */
#define GPIO54_MMCCLK 54 /* MMC Clock */
#define GPIO54_pSKTSEL 54 /* Socket Select for Card Space */
#define GPIO54_nPCE_2 54 /* Card Enable for Card Space (PXA27x) */
#define GPIO55_nPREG 55 /* Card Address bit 26 */
#define GPIO56_nPWAIT 56 /* Wait signal for Card Space */
#define GPIO57_nIOIS16 57 /* Bus Width select for I/O Card Space */
......@@ -1247,6 +1238,15 @@ typedef void (*ExcpHndlr) (void) ;
#define GPIO78_nCS_2 78 /* chip select 2 */
#define GPIO79_nCS_3 79 /* chip select 3 */
#define GPIO80_nCS_4 80 /* chip select 4 */
#define GPIO85_nPCE_1 85 /* Card Enable for Card Space (PXA27x) */
#define GPIO92_MMCDAT0 92 /* MMC DAT0 (PXA27x) */
#define GPIO109_MMCDAT1 109 /* MMC DAT1 (PXA27x) */
#define GPIO110_MMCDAT2 110 /* MMC DAT2 (PXA27x) */
#define GPIO110_MMCCS0 110 /* MMC Chip Select 0 (PXA27x) */
#define GPIO111_MMCDAT3 111 /* MMC DAT3 (PXA27x) */
#define GPIO111_MMCCS1 111 /* MMC Chip Select 1 (PXA27x) */
#define GPIO112_MMCCMD 112 /* MMC CMD (PXA27x) */
#define GPIO113_AC97_RESET_N 113 /* AC97 NRESET on (PXA27x) */
/* GPIO alternate function mode & direction */
......@@ -1292,6 +1292,7 @@ typedef void (*ExcpHndlr) (void) ;
#define GPIO31_SYNC_AC97_MD (31 | GPIO_ALT_FN_2_OUT)
#define GPIO31_SYNC_I2S_MD (31 | GPIO_ALT_FN_1_OUT)
#define GPIO32_SDATA_IN1_AC97_MD (32 | GPIO_ALT_FN_1_IN)
#define GPIO32_MMCCLK_MD ( 32 | GPIO_ALT_FN_2_OUT)
#define GPIO33_nCS_5_MD (33 | GPIO_ALT_FN_2_OUT)
#define GPIO34_FFRXD_MD (34 | GPIO_ALT_FN_1_IN)
#define GPIO34_MMCCS0_MD (34 | GPIO_ALT_FN_2_OUT)
......@@ -1319,6 +1320,7 @@ typedef void (*ExcpHndlr) (void) ;
#define GPIO53_nPCE_2_MD (53 | GPIO_ALT_FN_2_OUT)
#define GPIO53_MMCCLK_MD (53 | GPIO_ALT_FN_1_OUT)
#define GPIO54_MMCCLK_MD (54 | GPIO_ALT_FN_1_OUT)
#define GPIO54_nPCE_2_MD (54 | GPIO_ALT_FN_2_OUT)
#define GPIO54_pSKTSEL_MD (54 | GPIO_ALT_FN_2_OUT)
#define GPIO55_nPREG_MD (55 | GPIO_ALT_FN_2_OUT)
#define GPIO56_nPWAIT_MD (56 | GPIO_ALT_FN_1_IN)
......@@ -1353,7 +1355,17 @@ typedef void (*ExcpHndlr) (void) ;
#define GPIO77_LCD_ACBIAS_MD (77 | GPIO_ALT_FN_2_OUT)
#define GPIO78_nCS_2_MD (78 | GPIO_ALT_FN_2_OUT)
#define GPIO79_nCS_3_MD (79 | GPIO_ALT_FN_2_OUT)
#define GPIO79_pSKTSEL_MD (79 | GPIO_ALT_FN_1_OUT)
#define GPIO80_nCS_4_MD (80 | GPIO_ALT_FN_2_OUT)
#define GPIO85_nPCE_1_MD (85 | GPIO_ALT_FN_1_OUT)
#define GPIO92_MMCDAT0_MD (92 | GPIO_ALT_FN_1_OUT)
#define GPIO109_MMCDAT1_MD (109 | GPIO_ALT_FN_1_OUT)
#define GPIO110_MMCDAT2_MD (110 | GPIO_ALT_FN_1_OUT)
#define GPIO110_MMCCS0_MD (110 | GPIO_ALT_FN_1_OUT)
#define GPIO111_MMCDAT3_MD (111 | GPIO_ALT_FN_1_OUT)
#define GPIO110_MMCCS1_MD (111 | GPIO_ALT_FN_1_OUT)
#define GPIO112_MMCCMD_MD (112 | GPIO_ALT_FN_1_OUT)
#define GPIO113_AC97_RESET_N_MD (113 | GPIO_ALT_FN_2_OUT)
/*
......
......@@ -11,6 +11,7 @@
*/
#include "hardware.h"
#include "pxa-regs.h"
static inline void arch_idle(void)
{
......
......@@ -25,7 +25,7 @@ static __inline__ void putc(char c)
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
putc(*s);
......
......@@ -67,7 +67,7 @@ extern struct param_struct params_phys;
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
extern void ll_write_char(char *, char c, char white);
int x,y;
......
/* linux/include/asm-arm/arch-s3c2410/nand.h
*
* (c) 2004 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
*
* S3C2410 - NAND device controller platfrom_device info
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Changelog:
* 23-Sep-2004 BJD Created file
*/
/* struct s3c2410_nand_set
*
* define an set of one or more nand chips registered with an unique mtd
*
* nr_chips = number of chips in this set
* nr_partitions = number of partitions pointed to be partitoons (or zero)
* name = name of set (optional)
* nr_map = map for low-layer logical to physical chip numbers (option)
* partitions = mtd partition list
*/
struct s3c2410_nand_set {
int nr_chips;
int nr_partitions;
char *name;
int *nr_map;
struct mtd_partition *partitions;
};
struct s3c2410_platform_nand {
/* timing information for controller, all times in nanoseconds */
int tacls; /* time for active CLE/ALE to nWE/nOE */
int twrph0; /* active time for nWE/nOE */
int twrph1; /* time for release CLE/ALE from nWE/nOE inactive */
int nr_sets;
struct s3c2410_nand_set *sets;
void (*select_chip)(struct s3c2410_nand_set *,
int chip);
};
......@@ -14,10 +14,9 @@
* 08-Aug-2004 Herbert Ptzl Added CLKCON definitions
* 19-06-2003 Ben Dooks Created file
* 12-03-2004 Ben Dooks Updated include protection
* 29-Sep-2004 Ben Dooks Fixed usage for assembly inclusion
*/
#ifndef __ASM_ARM_REGS_CLOCK
#define __ASM_ARM_REGS_CLOCK "$Id: clock.h,v 1.4 2003/04/30 14:50:51 ben Exp $"
......@@ -73,6 +72,8 @@
#define S3C2410_CLKDIVN_PDIVN (1<<0)
#define S3C2410_CLKDIVN_HDIVN (1<<1)
#ifndef __ASSEMBLY__
static inline unsigned int
s3c2410_get_pll(int pllval, int baseclk)
{
......@@ -89,6 +90,8 @@ s3c2410_get_pll(int pllval, int baseclk)
return (baseclk * (mdiv + 8)) / ((pdiv + 2) << sdiv);
}
#endif /* __ASSEMBLY__ */
#ifdef CONFIG_CPU_S3C2440
/* extra registers */
......
......@@ -100,7 +100,7 @@ putc(char ch)
}
static void
puts(const char *ptr)
putstr(const char *ptr)
{
for (; *ptr != '\0'; ptr++) {
putc(*ptr);
......
......@@ -17,7 +17,7 @@
#define UART(x) (*(volatile unsigned long *)(serial_port + (x)))
static void puts( const char *s )
static void putstr( const char *s )
{
unsigned long serial_port;
......
......@@ -21,7 +21,7 @@ static __inline__ void putc(char c)
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
putc(*s);
......
......@@ -25,7 +25,7 @@
/*
* This does not append a newline
*/
static void puts(const char *s)
static void putstr(const char *s)
{
while (*s) {
while (AMBA_UART_FR & (1 << 5))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment