[U-Boot] [PATCH v3 1/2] MX25: tx25: Avoid the usage of extern in C file

Fabio Estevam festevam at gmail.com
Mon Sep 5 13:37:17 CEST 2011


On Mon, Sep 5, 2011 at 7:43 AM, Stefano Babic <sbabic at denx.de> wrote:
...
> What about to move the prototype ? For MX5/MX35 there is a sys_proto.h
> (as it is done for other SOCs), in this case, well, it seems too much to
> add a file for a single line. However, we could move it in clock.h and
> creating a sys_proto.h if the number of exported functions will increase.

Ok, I can create a sys_proto.h for MX25 and put the following extern´s there:

extern void mx25_fec_init_pins(void);
extern void imx_get_mac_from_fuse(unsigned char *mac);
extern void mx25_uart1_init_pins(void);

Regards,

Fabio Estevam


More information about the U-Boot mailing list