diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2011-04-12 20:55:03 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2011-04-12 20:55:03 (GMT) |
commit | 81dab211200deb1f6b665810ab0e430181cf7bfd (patch) | |
tree | 1bc72e789dda7952551b58c5b4684456b692b602 /uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/uncompress.c | |
parent | 53d491d04770dac7e402b20340561ccb399981c9 (diff) | |
download | openipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.zip openipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.tar.gz openipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.tar.bz2 |
Architecture specific stuff, basically, without drivers.
Diffstat (limited to 'uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/uncompress.c')
-rw-r--r-- | uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/uncompress.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/uncompress.c b/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/uncompress.c new file mode 100644 index 0000000..02f7e36 --- /dev/null +++ b/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/uncompress.c @@ -0,0 +1,28 @@ +/* + * linux/include/asm/arch-W90N745/uncompress.c + * 2003 winbond + */ + +#include <asm/hardware.h> + +static int s3c4510b_decomp_setup() +{ + CSR_WRITE(DEBUG_UARTLCON_BASE, DEBUG_ULCON_REG_VAL); + CSR_WRITE(DEBUG_UARTCONT_BASE, DEBUG_UCON_REG_VAL); + CSR_WRITE(DEBUG_UARTBRD_BASE, DEBUG_UBRDIV_REG_VAL); +} + +static int s3c4510b_putc(char c) +{ + CSR_WRITE(DEBUG_TX_BUFF_BASE, c); + while(!(CSR_READ(DEBUG_CHK_STAT_BASE) & DEBUG_TX_DONE_CHECK_BIT)); + + if(c == '\n') + s3c4510b_putc('\r'); +} + +static void s3c4510b_puts(const char *s) +{ + while(*s != '\0') + s3c4510b_putc(*s++); +} |