s3c2443.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* linux/arch/arm/plat-samsung/include/plat/s3c2443.h
  2. *
  3. * Copyright (c) 2004-2005 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * Header file for s3c2443 cpu support
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifdef CONFIG_CPU_S3C2443
  13. struct s3c2410_uartcfg;
  14. extern int s3c2443_init(void);
  15. extern void s3c2443_map_io(void);
  16. extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no);
  17. extern void s3c2443_init_clocks(int xtal);
  18. extern int s3c2443_baseclk_add(void);
  19. extern void s3c2443_restart(char mode, const char *cmd);
  20. #else
  21. #define s3c2443_init_clocks NULL
  22. #define s3c2443_init_uarts NULL
  23. #define s3c2443_map_io NULL
  24. #define s3c2443_init NULL
  25. #define s3c2443_restart NULL
  26. #endif
  27. /* common code used by s3c2443 and others.
  28. * note, not to be used outside of arch/arm/mach-s3c* */
  29. struct clk; /* some files don't need clk.h otherwise */
  30. typedef unsigned int (*pll_fn)(unsigned int reg, unsigned int base);
  31. extern void s3c2443_common_setup_clocks(pll_fn get_mpll);
  32. extern void s3c2443_common_init_clocks(int xtal, pll_fn get_mpll,
  33. unsigned int *divs, int nr_divs,
  34. int divmask);
  35. extern int s3c2443_clkcon_enable_h(struct clk *clk, int enable);
  36. extern int s3c2443_clkcon_enable_p(struct clk *clk, int enable);
  37. extern int s3c2443_clkcon_enable_s(struct clk *clk, int enable);
  38. extern struct clksrc_clk clk_epllref;
  39. extern struct clksrc_clk clk_esysclk;
  40. extern struct clksrc_clk clk_msysclk;