diff options
author | Wolfgang Wegner <w.wegner@astro-kom.de> | 2010-01-25 10:27:44 (GMT) |
---|---|---|
committer | TsiChung Liew <tsicliew@gmail.com> | 2010-03-24 16:08:28 (GMT) |
commit | 9d79e5758c3a6776be9a86856823d28e7154a481 (patch) | |
tree | 75ce98816a7bbddac92a201f7b7a023243aaa9fa /board/astro/mcf5373l/astro.h | |
parent | 859500a2be94bfa77a845b9c8a4c499587035fd5 (diff) | |
download | u-boot-fsl-qoriq-9d79e5758c3a6776be9a86856823d28e7154a481.tar.xz |
add ASTRO MCF5373L board
This patch adds support for ASTRO board(s) based on MCF5373L.
Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
Diffstat (limited to 'board/astro/mcf5373l/astro.h')
-rw-r--r-- | board/astro/mcf5373l/astro.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/board/astro/mcf5373l/astro.h b/board/astro/mcf5373l/astro.h new file mode 100644 index 0000000..b55a6f7 --- /dev/null +++ b/board/astro/mcf5373l/astro.h @@ -0,0 +1,44 @@ +#ifndef __ASTRO_H__ +#define __ASTRO_H__ + +/* in mcf5373l.c */ +int rs_serial_init(int port, int baud); +void astro_put_char(char ch); +int astro_is_char(void); +int astro_get_char(void); + +/* in fpga.c */ +int astro5373l_altera_load(void); +int astro5373l_xilinx_load(void); + +/* data structures used for communication (update.c) */ +typedef struct card_id { + char card_type; + char hardware_version; + char software_version; + char software_subversion; /* " ","a".."z" */ + char fpga_version_altera; + char fpga_version_xilinx; +} card_id_t; + +typedef struct { + unsigned char mode; + unsigned char deviation; + unsigned short freq; +} __attribute__ ((packed)) output_params_t; + +typedef struct { + unsigned short satfreq; + unsigned char satdatallg; + unsigned short symbolrate; + unsigned char viterbirate; + unsigned char symbolrate_l; + output_params_t output_params; + unsigned char reserve; + unsigned char card_error; + unsigned short dummy_ts_id; + unsigned char dummy_pat_ver; + unsigned char dummy_sdt_ver; +} __attribute__ ((packed)) parameters_t; + +#endif /* __ASTRO_H__ */ |