]> git.sur5r.net Git - u-boot/commitdiff
mx23: ssp: Fix ssp-regs.h for MX23
authorMarek Vasut <marex@denx.de>
Fri, 11 Jan 2013 03:19:07 +0000 (03:19 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 21 Jan 2013 11:05:20 +0000 (12:05 +0100)
Disable SSP2 and SSP3 ports on MX23.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/include/asm/arch-mxs/regs-ssp.h

index 4a75029221b7bf21b2f214581a10876194d80e90..b97ac352dd6c4999cc461fdd016a2765158c4540 100644 (file)
@@ -58,10 +58,12 @@ static inline struct mxs_ssp_regs *mxs_ssp_regs_by_bus(unsigned int port)
                return (struct mxs_ssp_regs *)MXS_SSP0_BASE;
        case 1:
                return (struct mxs_ssp_regs *)MXS_SSP1_BASE;
+#ifdef CONFIG_MX28
        case 2:
                return (struct mxs_ssp_regs *)MXS_SSP2_BASE;
        case 3:
                return (struct mxs_ssp_regs *)MXS_SSP3_BASE;
+#endif
        default:
                return NULL;
        }