return board == MACH_AQUILA;
}
+static int board_is_j1b2(void)
+{
+ int board;
+
+ if (cpu_is_s5pc100())
+ return 0;
+
+ board = gd->bd->bi_arch_number - C110_MACH_START;
+
+ return board == MACH_AQUILA && (board_rev & J1_B2_BOARD_FEATURE);
+}
+
static int board_is_limo_universal(void)
{
int board;
gpio_direction_output(&gpio->gpio_mp0_5, 4, 1);
}
+static void enable_codec_ldo(void)
+{
+ struct s5pc110_gpio *gpio = (struct s5pc110_gpio *)S5PC110_GPIO_BASE;
+
+ if (!(board_is_limo_universal() || board_is_j1b2()))
+ return;
+
+ /* CODEC_LDO_EN: XM0FRNB_2: MP0_3[6] output high */
+ gpio_direction_output(&gpio->gpio_mp0_3, 6, 1);
+}
+
static void setup_limo_real_gpios(void)
{
struct s5pc110_gpio *gpio = (struct s5pc110_gpio *)S5PC110_GPIO_BASE;
/* Enable T-Flash at Limo Universal */
enable_t_flash();
+ /* Enable Codec LDO at Limo Universal an J1_B2 */
+ enable_codec_ldo();
+
/* Setup Limo Real board GPIOs */
setup_limo_real_gpios();