mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-22 15:42:04 +00:00
musb: sunxi: Add proper macros instead of numericals
- add proper macros for musb_config members - use bool 'true' for multipoint and dyn_fifo instead of numerical 1 Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Acked-by: Jun Nie <jun.nie@linaro.org>
This commit is contained in:
parent
831cc98b1f
commit
ae8b78de30
1 changed files with 8 additions and 4 deletions
|
@ -296,11 +296,15 @@ static const struct musb_platform_ops sunxi_musb_ops = {
|
||||||
.disable = sunxi_musb_disable,
|
.disable = sunxi_musb_disable,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Allwinner OTG supports up to 5 endpoints */
|
||||||
|
#define SUNXI_MUSB_MAX_EP_NUM 6
|
||||||
|
#define SUNXI_MUSB_RAM_BITS 11
|
||||||
|
|
||||||
static struct musb_hdrc_config musb_config = {
|
static struct musb_hdrc_config musb_config = {
|
||||||
.multipoint = 1,
|
.multipoint = true,
|
||||||
.dyn_fifo = 1,
|
.dyn_fifo = true,
|
||||||
.num_eps = 6,
|
.num_eps = SUNXI_MUSB_MAX_EP_NUM,
|
||||||
.ram_bits = 11,
|
.ram_bits = SUNXI_MUSB_RAM_BITS,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct musb_hdrc_platform_data musb_plat = {
|
static struct musb_hdrc_platform_data musb_plat = {
|
||||||
|
|
Loading…
Reference in a new issue